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

Improve prevent-refresh #464

Open
AdamWr opened this issue Oct 31, 2024 · 0 comments
Open

Improve prevent-refresh #464

AdamWr opened this issue Oct 31, 2024 · 0 comments
Assignees

Comments

@AdamWr
Copy link
Member

AdamWr commented Oct 31, 2024

On this website filmy4wap.co.in there is (I have redacted URL to example.org):

<meta http-equiv="refresh" content="1; URL=https://example.org"/>

and filmy4wap.co.in#%#//scriptlet('prevent-refresh') breaks loading images (not always happen on my end, but if I enable "throttling" in network panel in devtools then it occurs every time).

According to - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#refresh:

The timer starts when the page is completely loaded, which is after the load and pageshow events have both fired.

So maybe we could change it, so window.stop will be called only after load event was fired.
Or just add additional option to delay argument, like for example load and window.stop() would be called when load event was fired.

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

3 participants