Scriptlets
Scriptlets copied to clipboard
disable-newtab-links not preventing ad popups
URL= https://cimanow.cc/home/
- add these filters
cimanow.cc#@%#//scriptlet('abort-on-stack-trace', 'Image', '?v=')
cimanow.cc#@%#//scriptlet("set-constant", "zJSYdQ", "true")
cimanow.cc#%#//scriptlet('disable-newtab-links')
cimanow.cc#@#main > a[id][target="_blank"]
- select any movie to stream/download eg
https://cimanow.cc/%d9%85%d8%b3%d9%84%d8%b3%d9%84-%d8%a7%d9%84%d9%85%d8%af%d8%a7%d8%ad-%d8%ac5-%d8%ad1/watching/ - observe ad popups opening despite
cimanow.cc#%#//scriptlet('disable-newtab-links') - AdGuard Browser extension Version 4.4.49 (mv2) and firefox
Another steps to reproduce (just in case if website will change their code or something):
- Add these rules:
example.org#%#//scriptlet('trusted-set-attr', 'a', 'target', '_blank')
example.org#%#//scriptlet('disable-newtab-links')
- Go to - https://example.org/
- Click on the
More information...link - Opening link is blocked (it's correct behaviour)
- Now run in console:
document.querySelector('a').addEventListener('click', (event) => {
event.preventDefault();
window.open(event.target.href, event.target);
});
- Click on the link again
- Opening link is not blocked now
uBO solution - https://github.com/gorhill/uBlock/commit/d41989e62a78380cac32962311fdc14b5e1e67cb