Block javascript:window.opener ?

Ask for help about NoScript, no registration needed to post
tom2017

Block javascript:window.opener ?

Post by tom2017 »

Hey,
I visit this regularly where I need to allow JS to have it working. However they have this very annoying script:

Code: Select all

javascript:window.opener=null;setTimeout(function(){window.location.href='http://random-ad-site.xyz'},250)
Which opens a new tab every 250 seconds by click anywhere on the site.

Neither FF nor ABP detect or block these pop-ups. I guess it's because it only happens on-click, so they cannot detect if it is wanted or unwanted popup.

So I was wondering can I block this specif function on this specific site in NS? (or would an ABP-filter better?)

Thanks.
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: Block javascript:window.opener ?

Post by barbaz »

*Always* check the changelogs BEFORE updating that important software!
-
Post Reply