AdguardTeam / AdguardTeam/Scriptlets

Improve 'prevent-refresh' — customize 'delay' to postpone window.stop()

Aberta
#464 0 comentários 0 reações 1 responsável Reivindicada por @maximtop Ver no GitHub
enhancement Priority: P4
Linguagem predominante
JavaScript
Estrelas
195
Forks
33
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

On this website `filmy4wap.co.in` there is (I have redacted URL to `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](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event) and [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event) 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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.