How to block an script popup

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
master256

How to block an script popup

Post by master256 »

Hello,
i have a site which i use nearly each day,
there is an scripted button which displays needed informations
on each click on an reloaded site it resets an variable and everytime opens
a popup ad window

i tried to block it but didn't work, the code i found is:

Code: Select all

<script>
$(function(){
 var pppDone=false;
 $('a.ddl-mirror-box,.link-stream-files a.button,a.ddl-mirror-box-stream-direct').click(function(){
 if(!pppDone&&Math.random()<=0.5){
 window.open('http://popads.ero-advertising.com/popads/in.php?siteid=30329&spaceid=107863','fsdagaf','width='+screen.width+',height='+screen.height+',status=yes,scrollbars=yes,resizable=yes,location=yes');
 pppDone=true;
 }
 });
});
</script>
i tried to block *popads*, but this dont work for this type of popup...

Please help me
what do i have to do to block such shit....

THX
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: How to block an script popup

Post by Hubird »

Example site ?
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: How to block an script popup

Post by Hubird »

The following filters did the trick for me

Code: Select all

||Iload.to/img/ul/impopi.js
||iload.to/php/static/$subdocument
||tldadserv.com^
master256

Re: How to block an script popup

Post by master256 »

Hello,

sorry dont't working for me.

Please retry, popup not comes every time, when you click on " >> Alle Mirrors anzeigen "
you can easy "reset" to ppdone when you choose another rease from the release list
then again on " >> Alle Mirrors anzeigen "

Or may it be an problem with my firefox itself?
should firefox be able to block this popup:

Code: Select all

window.open('http://popads.ero-advertising.com/popads/in.php?siteid=30329&spaceid=107863','fsdagaf','width='+screen.width+',height='+screen.height+',status=yes,scrollbars=yes,resizable=yes,location=yes');
by itself?

I'm using:
Build-Identifikator: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
master256

Re: How to block an script popup

Post by master256 »

Found something on google to firefox and popups,
so if i got it right this type of popup can not be blocked automatically by firefox
Unfortunately other browsers, web designers and popup killer softwares define popups differently. They distinguish 2 types of popups: requested popups and unrequested popups. This distinction is more suitable, useful and to the point. The popups Firefox can block and suppress are unrequested popups via the Tools/Options.../Content category/Block pop-up windows setting.

Requested popups are windows created as a result of clicking a link or clicking a button. One mouse click, only one popup.

Unrequested popups are windows created automatically without any user interaction. Often, such unrequested popups have advertisement content. They often "pop up" as you arrive at a site or as you close a window. One mouse click, more than one popup.
i remembered another extension where you can modify the source code of an website before loading,
would it make sense to try this way and set

Code: Select all

pppDone=true;
?!
But the var is reinititialized every thime the function is called to "false",
so i think this would not help...

is there no way to filter out only this block

Code: Select all

if(!pppDone&&Math.random()<=0.5){
window.open('http://popads.ero-advertising.com/popads/in.php?siteid=30329&spaceid=107863','fsdagaf','width='+screen.width+',height='+screen.height+',status=yes,scrollbars=yes,resizable=yes,location=yes');
from the source code through adblock?

if this would be cut out all would be work correct just eliminating the popup...
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: How to block an script popup

Post by Hubird »

I don't think that pop up can be blocked with ABP.
master256

Re: How to block an script popup

Post by master256 »

hmm, , that makes me little sad :-(
Thanks so far buddie...

Maybe anyone other has an idea for that.

I see this tecnique on more and more websites week by week.

So hopefully there will be someone who will find smth to block those horrible new kind of popup ads
before they start screwing up every second site on the net...

I will go on for searching for an solution or workaround, also for generally stopping such popups...
If i find something that works i will post it here...
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: How to block an script popup

Post by Hubird »

If you search the ABP forums you will see posts about a pop up block add-on. You might have more luck with that.
master256

Re: How to block an script popup

Post by master256 »

Yes, thats working, man.

Just installed, without any configuration and its working...

THX...
Locked