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

buttplug-tampermonkey-ui may fail to do anything if the page finishes loading before the script runs #2

Open
Baguettedood opened this issue Sep 2, 2020 · 1 comment

Comments

@Baguettedood
Copy link

Baguettedood commented Sep 2, 2020

If the page finishes loading, buttplug-tampermonkey-ui will not do anything. When the script runs, it adds an event listener to the "load" event, but by the time the script has run, the event has already fired, so it will fail to do anything.

This may affect some webpages but not others. Replicating this is somewhat annoying since it's inconsistent. Seems to work best if the browser is under heavy CPU load from lots of tabs?

A Stack Overflow question had similar problems and should help find a solution.

@Baguettedood
Copy link
Author

Baguettedood commented Sep 3, 2020

Can be mitigated by setting @run-at document-end in my userscript.

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

No branches or pull requests

1 participant