Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 pushstate support #200

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Closed

HTML5 pushstate support #200

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant