You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Install this youtube user script
https://greasyfork.org/en/scripts/4712-clean-loopy-for-youtube
2. Go to youtube and click a video. The userscript is not executed.
3. If you refresh the youtube video page, the userscript is executed.
What is the desired output? What do you see instead?
Userscripts should execute on sites that uses AJAX and HTML5 pushstate
What version of the product are you using? On what operating system?
Tampermonkey 3.9 in Chrome 38.0.2125.111 m on Windows 8.1 64-bit (with latest
updates).
Please provide any additional information below.
Youtube loads new pages using AJAX and then changes the URL using HTML5
pushstate. Tampermonkey is not able to detect this change via pushstate, so
scripts for youtube video pages do not work without refreshing.
Original issue reported on code.google.com by infected...@gmail.com on 5 Nov 2014 at 5:53
The text was updated successfully, but these errors were encountered:
history.pushState only modifies the displayed URL there is no real page
(re-)load.
That's why this must completely be handled (via a listener or by disabling) by
the script itself. Tampermonkey is not the right place to take care of this,
cause the userscripts would be injected multiple times into the same
environment.
Please see http://forum.tampermonkey.net/viewtopic.php?p=3038#p3038 for more
information.
Original comment by derj...@googlemail.com on 5 Nov 2014 at 7:06
Original issue reported on code.google.com by
infected...@gmail.com
on 5 Nov 2014 at 5:53The text was updated successfully, but these errors were encountered: