[Resolved] q.gs -Anti-Adblock Warning

Blaz

Moderator & Translator
Staff member
Moderator
I don't see the adblock detection, but this rule blocks the loaded content there while maintaining the counter at top right corner (blocking 1market.php breaks the counter):
Code:
q.gs##body > iframe[src^="http"]
Regarding detection you may try:
Code:
||adf.ly/fp.rev3.php
Regarding ad site which gets opened when skipping ad:
Code:
||adf.ly/puopen.php?attempt
||adf.ly/puscript
EDIT: After a while I saw the detection, please try to disable the following rules in English filter:
Code:
##.textad
##.TextAd
##.textAd
##.text_ads
##.text_ad
##.text-ads
##.text-ad-links
##.text-ad
##.pub_728x90
##.pub_300x250m
##.pub_300x250
So in total you need to add the following rules:
Code:
q.gs##body > iframe[src^="http"]
||adf.ly/puopen.php?attempt
||adf.ly/puscript
@@||adf.ly/1market.php <- for an adf.ly link (sites seem to use the same filters etc.)
EDIT2: Please try to add the following rules (in addition to the ones above) without disabling those rules above (if not working without disabling, try to add "||" after the @@:
Code:
@@##.textad^$domain=adf.ly|q.gs
@@##.TextAd^$domain=adf.ly|q.gs
@@##.textAd^$domain=adf.ly|q.gs
@@##.text_ads^$domain=adf.ly|q.gs
@@##.text_ad^$domain=adf.ly|q.gs
@@##.text-ads^$domain=adf.ly|q.gs
@@##.text-ad-links^$domain=adf.ly|q.gs
@@##.text-ad^$domain=adf.ly|q.gs
@@##.pub_728x90^$domain=adf.ly|q.gs
@@##.pub_300x250m^$domain=adf.ly|q.gs
@@##.pub_300x250^$domain=adf.ly|q.gs

I wonder where exactly the anti-adblocker script checks those strings as a little search for text didn't reveal it :(
 
Last edited by a moderator:

avatar

Administrator
Staff member
Administrator
Hi Blaz!

Elemehide rules aren't disabled that way.

What should you do instead is:
Code:
adf.ly,q.gs#@#.textad
...
Also in the latest AG versions we have added support for $generichide modifier which disables ALL generic elemehide rules. By generic I mean rules without specified domain.

So you can try something like that:
Code:
@@||q.gs^$generichide
And then hide everything with non-generic elemehide rules:
Code:
q.gs##some_banner_selector
 

Blaz

Moderator & Translator
Staff member
Moderator
Thanks avatar, I prefer manual rules like adf.ly,q.gs#@#.textad:
Code:
adf.ly,q.gs#@#.textad
adf.ly,q.gs#@#.TextAd
adf.ly,q.gs#@#.textAd
adf.ly,q.gs#@#.text_ads
adf.ly,q.gs#@#.text_ad
adf.ly,q.gs#@#.text-ads
adf.ly,q.gs#@#.text-ad-links
adf.ly,q.gs#@#.text-ad
adf.ly,q.gs#@#.pub_728x90
adf.ly,q.gs#@#.pub_300x250m
adf.ly,q.gs#@#.pub_300x250
With $generichide we may disable to many rules xD

Any idea where to find the code of those rules the anti-adblock script doesn't like?
 

avatar

Administrator
Staff member
Administrator
Any idea where to find the code of those rules the anti-adblock script doesn't like?
Oh, I have just realized that q.gs is any.gs mirror.

I've looked into it recently and you know, I give up:) At least for now. Their anti-adblock message is not that bad, the only thing we really need to do is block the iframe. We already do it for any.gs, seems that we've missed it here.

I'll tell you what I discovered while researching this issue.
1. They are using encrypted JS:
https://adf.ly/fp.rev3.php?nocache=1

2. This is not a standard encryptor, so you can't just apply jsbeautifier.

3. Step 1, decrypt JS. To do this I'll execute their JS, but I'll override "eval" function to see the parameter value:
https://jsfiddle.net/1q8qopx8/

4. Now we can put this JS to jsbeautifier.org and try to analyze.

It is still semi-encrypted and it uses properties, set by the previous script.

Last time I've stopped at this point. To crack this encryption we now need to override window object before executing their code and see the properties values.
And then, maybe, we'll understand the encryption method (or maybe not).
 

Alex302

Filters Developer
Staff member
Administrator
Added to English filter:
Code:
||adf.ly/puopen.php$popup
||q.gs/1market.php$subdocument
Added to Experimental filter:
Code:
@@http://q.gs^$elemhide
Please, check the result.
 

Blaz

Moderator & Translator
Staff member
Moderator
Alex, in the last rule you included http, correct?
Also blocking that PHP file is not starting the countdown when I tested.
 

Alex302

Filters Developer
Staff member
Administrator
Alex, in the last rule you included http, correct?
Also blocking that PHP file is not starting the countdown when I tested.
Yes, recommended minimal url length is 8 symbols.
Also blocking that PHP file is not starting the countdown when I tested.
check it in the developer tools in the code. It was blocked when I checked.
 
Top