Greasy Fork is available in English.

Disable AutoRefresh

Disable AutoRefresh est un user script pour annuler et désactiver le tag html Meta refresh sur tous les sites web et empêcher le rafraîchissement automatique ou la redirection vers une autre page / site web.

< Commentaires sur Disable AutoRefresh

Question / commentaire

§
Posté le: 05/06/2020

Warning and error indicated when adding this userscript to Tampermonkey.

I recently installed this script by copy/pasting it as a new userscript to Tampermonkey (on FireFox).

During this process, Tampermonkey indicated a "Warning", and an "Error".

The warning was indicated on line 44: 42 rules = [{ 43 host : 'moviesvids.blogspot.co.uk', 44 timeout : .5 45 } 46 ]; and the warning recommended to add a leading "0" (number 0) before the decimal point, to avoid confusion: ("A leading decimal point can be confused with a dot:") 44 timeout : 0.5

The error indicated a missing semi-colon (";") on line 61: 59 return false; 60 } 61 }) 62 timeout_ms = (timeout > 0) ? (timeout * 1e3) : 0; 63 setTimeout(function () { It seems there should be a semi-colon at the end of line 61, following the closing parenthesis: 61 });

Perhaps you could confirm all this, and if correct, make the change in the code

Poster une réponse

Connectez-vous pour poster une réponse.