New way to detect ABP?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
bymuc
Posts: 5
Joined: Fri Nov 16, 2007 10:01 pm

New way to detect ABP?

Post by bymuc »

Hi all,

since a few days, two websites i more or less regular visit, have a probably new method to detect ABP. Each time i get there, a message window appear with the blabla to shutdown ABP.

I've searched the forum before i posted this, but i couldn't find any post including the term "spScriptLoaded" so i was so free to open a new topic.

I did also read the other posts mentioning detection-methods, but they all differ from this method. I also added easylist, didn't help.

This i think is the detection-code:
"<script type="text/javascript">
if(typeof(spScriptLoaded) == 'undefined') {
alert('Bitte Deinen Werbeblocker abschalten, sonst sind nicht alle Funktionen verfügbar!');
}"
</script>

Disabling Java-Script didn't help either.

Any hint on how to get rid of this annoying message blabla?

Thanks in advance
bymuc
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Re: New way to detect ABP?

Post by chewey »

Disaling JS has to work - without JS enabled, this script wouldn't even run.

Can you share a link to the site you mean please?
bymuc
Posts: 5
Joined: Fri Nov 16, 2007 10:01 pm

Post by bymuc »

This site for example is using it:
http://www.the-new-generation.ws/

Correction to Javascript:
Yes, disabling helps. Don't know why it
didn't yesterday.

This is, i think, where this crap came from:
http://forum.layer-ads.de/programmierun ... ideen.html
Not really helpful i guess since this site is in german.

Any other workaround besides disabling JS?

Thanks
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Post by chewey »

bymuc wrote:This site for example is using it:
http://www.the-new-generation.ws/
Thanks.
This is, i think, where this crap came from:
http://forum.layer-ads.de/programmierun ... ideen.html
Not really helpful i guess since this site is in german.
No problem, I'm pretty fluent in my native tongue ;-)
Any other workaround besides disabling JS?
Sort of. This detection method checks for ABP the usual way, looking for a variable set in an adscript.
(lines 10 and 11 in http://layer-ads.de/ia1-12824-7189df09f ... 60f5c88.js ), so if you
whitelist that script, it will stop nagging you. But then you'll probably see some ads too.
bymuc
Posts: 5
Joined: Fri Nov 16, 2007 10:01 pm

Post by bymuc »

Hi,

like you suggested i tried to whitelist. The following whitelisting worked:
http://layer-ads.de/la-12824.js

not working:
"http://layer-ads.de/la-12824-8b2e4d63b1 ... de680f2.js"
Okay, which i guess is logic, since with the blacklisting of "http://layer-ads.de/la-12824.js" the script doesn't even come that far.
Sorry if i write dumb things - my Programming-Skills are still based and limited to good 'ol DOS :))

Damn thing on allowing "la-12824.js" is, as you already suspected, i get an even more annyoing white pop-up over half the screen. The ads within this white pop-up are still blocked! :)

Thanks for the help so far.
Maybe i should try this ff-addon "Noscript".
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Post by fanboy »

nasty, the url http://layer-ads.de/la-12824.js keeps randomly changing.

I wonder if it would be as easy to whitelist

Code: Select all

@@http://layer-ads.de/la-$script
or.. maybe not *ugly popup shows*, unfortunately the popup will show up, no way around it if you use that whitelist.
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Post by fanboy »

for something like this, I'd just block the use of javascript using either Noscript or YesScript
jamieplucinski
Posts: 183
Joined: Thu Aug 16, 2007 4:42 pm
Location: Toronto, Ontario, Canada
Contact:

Post by jamieplucinski »

I tried whitelisting their scripts with a blanked $script filter but that opens up no end of nasty crap (that is blocked) and a boat load of DIV's with random ID's and classes along with an animated window that you can element hide, but first it'll animate it's way across the screen... I'm bored and have nothing to do so I think I'll sit on this for a bit and see if I can get any definitive block list setup for it. Now if only ABP allowed you to spoof script variable values... ;)
jamieplucinski
Posts: 183
Joined: Thu Aug 16, 2007 4:42 pm
Location: Toronto, Ontario, Canada
Contact:

Post by jamieplucinski »

Right the following filters might break some other sites but for now they have (after 1,000+ page refreshed) held up against layer ads' randomization.

Code: Select all

@@layer-ads.de/$script
#DIV(id=)(class=)(style=display: block; left: 10px;)
#DIV(id=)(class=)(style=display: block; top: 10px;)
#DIV(onmouseout*=t0)(onmouseover*=t0)(onclick^=return )
#DIV(id=)(style=display:block;left:10px;top:10px;)
#DIV(id=)(style=display: block; left: 10px; top: 10px;)
##DIV[id][style="display: block; left: 10px;"]
*layer-ads*
These would of course need testing extensively before they made it into a filter list but they're working fine here and any divs at those positions listed above will be annoying advertisements anyway from experience... so all should be well. Like I said it's not perfect but it'll do for a quick fix, the big white div on the page linked by the OP is not blockable due to the random ID/CLASS and nothing of use to block :(
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Post by fanboy »

i found this code the most effective,

Code: Select all

the-new-generation.ws##DIV[id]
@@http://layer-ads.de/la-$script
*layer-ads.*
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Code: Select all

@@|http://layer-ads.de/la-$script
/layer-ads.
the-new-generation.ws#div(style^=display: block)
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Post by fanboy »

hehe

so much better than Jamie's 8 lines of code ;)
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

fanboy wrote:hehe

so much better than Jamie's 8 lines of code ;)
It was a little tricky .... ya just got to find that 'magic' line. I always try to work from the top level down. Cutting pieces out one-by-one just isn't the way to do it. Jamie had it ... he just didn't find that one common 'upper level' piece. :wink:
jamieplucinski
Posts: 183
Joined: Thu Aug 16, 2007 4:42 pm
Location: Toronto, Ontario, Canada
Contact:

Post by jamieplucinski »

:lol: yeah my 8 lines... at least it was headed in the right direction :P Nice work rick :)
bymuc
Posts: 5
Joined: Fri Nov 16, 2007 10:01 pm

Post by bymuc »

works like a charm :D really good work!

many thanks for the help!!

bymuc
Post Reply