How to block popups that appear after clicking?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Morisato
Posts: 2
Joined: Sat Apr 05, 2008 1:15 am

How to block popups that appear after clicking?

Post by Morisato »

There are some sites that show a popup after you click accept/download button. I was wondering how to block these. Yes adblock can block popups other than ads itself.

<script language="JavaScript">
<!-- Begin
function openpage() {
window.open('http://www.139flash.com','','scrollbars=1,resizable=1,width=1024,height=768').blur();
window.focus();
}
// End -->
</script>

This is what I found in the source from one particular site. After click ok/accept/download, the 139flash.com site popups in a new window. Tried adding the site to the adblock filters but it still gets through. If anyone knows of any tricks or methods, please feel free to share :)

Thanks.
asdfasdf

noscript

Post by asdfasdf »

So you want to block links like

<a href="javascript:openpage()">download</a> ?

This sounds more like a job for the extension NoScript. Probably also a greasemonkey script to handle it. In NoScript, open the options, then go to advanced > untrusted and check "attempt to fix javascript links." Then in about:config change noscript.allowurlbarjs to "false".
Morisato
Posts: 2
Joined: Sat Apr 05, 2008 1:15 am

Post by Morisato »

Cool. Thanks for the tip. I just thought it was possible to block the site alone even though JS gives an open window command.
Locked