Disable AutoRefresh

Disable AutoRefresh is a user script to override and disable meta refresh html tag on all websites to prevent the automatic refresh or redirection.

< Feedback on Disable AutoRefresh

Câu hỏi/Bình luận

§
Posted: 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

Post reply

Đăng nhập để bình luận