Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

disable-newtab-links not preventing ad popups

Open ghajini opened this issue 11 months ago • 1 comments

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

ghajini avatar Mar 12 '25 13:03 ghajini

Another steps to reproduce (just in case if website will change their code or something):

  1. Add these rules:
example.org#%#//scriptlet('trusted-set-attr', 'a', 'target', '_blank')
example.org#%#//scriptlet('disable-newtab-links')
  1. Go to - https://example.org/
  2. Click on the More information... link
  3. Opening link is blocked (it's correct behaviour)
  4. Now run in console:
document.querySelector('a').addEventListener('click', (event) => {
    event.preventDefault();
    window.open(event.target.href, event.target);
});
  1. Click on the link again
  2. Opening link is not blocked now

uBO solution - https://github.com/gorhill/uBlock/commit/d41989e62a78380cac32962311fdc14b5e1e67cb

AdamWr avatar Mar 16 '25 11:03 AdamWr