These pairs should work the same way
rules pair
#%#//scriptlet("prevent-setTimeout", ".css('display','block');")
#%#//scriptlet('prevent-setTimeout', '.css(\'display\',\'block\');')
should block setTimeout with stringified callback containing the next substring:
and pair
#%#//scriptlet("prevent-setTimeout", ".css(\"display\",\"block\");")
#%#//scriptlet('prevent-setTimeout', '.css("display","block");')
should block setTimeout with stringified callback containing the next substring
How to check if they work
- add a rule
#%#//scriptlet('prevent-setTimeout', '.css(\'display\',\'block\');')
- go to any site, run in the console
setTimeout(() => { console.log(`.css('display','block');`)}, 500);
set timeout should not be executed
after that
- add a rule
#%#//scriptlet('prevent-setTimeout', ".css('display','block');")
- go to any site, run in the console
setTimeout(() => { console.log(`.css('display','block');`)}, 500);
set timeout should not be executed
These pairs should work the same way
rules pair
should block setTimeout with stringified callback containing the next substring:
and pair
should block setTimeout with stringified callback containing the next substring
How to check if they work
#%#//scriptlet('prevent-setTimeout', '.css(\'display\',\'block\');')set timeout should not be executed
after that
#%#//scriptlet('prevent-setTimeout', ".css('display','block');")set timeout should not be executed