The Un-Official Proxomitron Forum

Full Version: Add "Anti Adblock Killer list by reek" to privoxy. but how?!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys,

still me here Smile! So i have another question. Is it possible to add this list anti adblock killer by reek to privoxy? When yes, how? I dont get that option to include greasemonkey scripts to privoxy. Its not that easy to understand Smile!

Thanks a lot for feedback!
Hello kik0s,

unfortunately, you can't count on me, but I believe Cattleyavns should help you on that matter. Maybe you will be patient enough to wait for his input. Good day!
hi Faxopita,

ty for the reply. i found the info how to include GM_function to privoxy at the hosts file thread. it seems not to work anymore?! or there is something else what i miss?! i'll wait then for Cattleyavns reply.
Hi kik0s, sorry for being late, can you show me:

- Your problem
- Which website
- And your Privoxy fitler

I need these information to analyze your problem.
hi cattleyavns,

i first added this to my user.filter:
Code:
FILTER: GM_function
s†(^[^;]*?(?:<head[^>]*?>|<body[^>]*?>|<script[^>]*?>[^>]*?</script>))†<script src="https://greasyfork.org/en/scripts/9320-gm-function/code.user.js"></script>\n$1†i

i replaced the "†" with "@" as you suggested in another post. but both ways did non work for me.

then i need to add the script from reek to my user.filter. it comes with the killer list. can be found here. i used this code for that:
Code:
FILTER: aakiller
s†(<(?:\/body)[^>]*?>)†$1\n\
<script src="https://greasyfork.org/scripts/735-anti-adblock-killer-reek/code/Anti-Adblock%20Killer%20%7C%20Reek.user.js" type="text/javascript"></script>\n\
†i

i also replaced the "†" with "@". but no effect there anyway.

i activated both of the filter in the match all action file or user.action file. but when i used the suggested demo for anti adblock from reek to test if the anti adblock killer is working it still shows the message that i am using an adblocker.

thanks for the reply Smile!
I have the same result as you, maybe this script is a little bit more complex than other script, but i will try to make it work on Privoxy, because it is a very useful script.

Okay, I made this script works now! Perfect! No anti adblock popup anymore Big Teeth http://prntscr.com/8kz5qt http://prntscr.com/8kz80t
You will need another filter to fix this script ( https://greasyfork.org/scripts/735-anti-...ti-Adblock Killer | Reek.user.js ), replace these lines:
Code:
if (Aak.getScriptManager()) {
      Aak.registerCommands();
      Aak.update.automatic();
      Aak.listDetect();
      Aak.blockDetect();
    } else { // Native
      throw "Sorry! No Native support..";
    }

with:
Code:
//if (Aak.getScriptManager()) {
      Aak.registerCommands();
      Aak.update.automatic();
      Aak.listDetect();
      Aak.blockDetect();
    //} else { // Native
    //  throw "Sorry! No Native support..";
    //}

The author only allow true Greasemonkey user use this script, he tries to detect if user uses Greasemonkey or not, if not this script will not work, so just by removing those line we can bypass that limit Big Teeth
Here is my generated filter to do that, just open that URL https://greasyfork.org/scripts/735-anti-...ti-Adblock Killer | Reek.user.js and Ctrl + F5 to force reload its content because web browser cache that url.

Code:
FILTER: fixantiadblockiller
s@if \(Aak\.getScriptManager\(\)\) \{\s*?\
      Aak\.registerCommands\(\);\s*?\
      Aak\.update\.automatic\(\);\s*?\
      Aak\.listDetect\(\);\s*?\
      Aak\.blockDetect\(\);\s*?\
    \} else \{ \/\/ Native\s*?\
      throw "Sorry\! No Native support\.\.";\s*?\
    \}\s*?\
@//if (Aak.getScriptManager()) {\n\
      Aak.registerCommands();\n\
      Aak.update.automatic();\n\
      Aak.listDetect();\n\
      Aak.blockDetect();\n\
    //} else { // Native\n\
    //  throw "Sorry! No Native support..";\n\
    //}@i

Enable it on:
Code:
{+filter{fixantiadblockiller}}
.greasyfork.org/scripts/735-anti-adblock-killer-reek/code/
hi cattleyavns,

ok. so lets start again Smile! i added this now to my user.filter:
Code:
FILTER: GM_function
s@(^[^;]*?(?:<head[^>]*?>|<body[^>]*?>|<script[^>]*?>[^>]*?</script>))@<script src="https://greasyfork.org/en/scripts/9320-gm-function/code.user.js"></script>\n$1@i

FILTER: fixaakiller
s@if \(Aak\.getScriptManager\(\)\) \{\s*?\
      Aak\.registerCommands\(\);\s*?\
      Aak\.update\.automatic\(\);\s*?\
      Aak\.listDetect\(\);\s*?\
      Aak\.blockDetect\(\);\s*?\
    \} else \{ \/\/ Native\s*?\
      throw "Sorry\! No Native support\.\.";\s*?\
    \}\s*?\
@//if (Aak.getScriptManager()) {\n\
      Aak.registerCommands();\n\
      Aak.update.automatic();\n\
      Aak.listDetect();\n\
      Aak.blockDetect();\n\
    //} else { // Native\n\
    //  throw "Sorry! No Native support..";\n\
    //}@i

FILTER: aakiller
s@(<(?:\/body)[^>]*?>)@$1\n\<script src="https://greasyfork.org/scripts/735-anti-adblock-killer-reek/code/Anti-Adblock%20Killer%20%7C%20Reek.user.js" type="text/javascript"></script>\n\@i

then i added this to my user.action:
Code:
### enable greasemonkey for privoxy
{+filter{GM_function}}
/

### enable fixer for reek
{+filter{fixaakiller}}
.greasyfork.org/scripts/735-anti-adblock-killer-reek/code/

### enable antiadblockkiller script to work with privoxy
{+filter{aakiller}}

it seems to do something (breaking some sites) but still the adblock killer pop up shows up for me.

i am using privoxy 3.0.23 with adblock2privoxy 1.3.3 on a debian jessie distro. and i restarted privoxy when i added those lines to the files Wink when i load the url to the script within my browser it does not rewrite the section. which it should rewrite.

any help would be great Smile!

in the mean time i try uploading this script to my privoxy folder and remove that line.
>> when i load the url to the script within my browser it does not rewrite the section. which it should rewrite.

Yeah, my filter is bad coded, i will try to fix it asap, but i'm sure if it can rewrite those lines probably Anti AdBlock Killer will work.

Sorry, should be:

Code:
FILTER: fixaakiller
s@if \(Aak\.getScriptManager\(\)\) \{\s*?\
      Aak\.registerCommands\(\);\s*?\
      Aak\.update\.automatic\(\);\s*?\
      Aak\.listDetect\(\);\s*?\
      Aak\.blockDetect\(\);\s*?\
    \} else \{ \/\/ Native\s*?\
      throw "Sorry\! No Native support\.\.";\s*?\
    \}\
@//if (Aak.getScriptManager()) {\n\
      Aak.registerCommands();\n\
      Aak.update.automatic();\n\
      Aak.listDetect();\n\
      Aak.blockDetect();\n\
    //} else { // Native\n\
    //  throw "Sorry! No Native support..";\n\
    //}@i

Test this filter on RegEx101: https://regex101.com/r/kK7xP9/1
Please reopen https://greasyfork.org/scripts/735-anti-...ek.user.js and Ctrl + F5 again.

>> in the mean time i try uploading this script to my privoxy folder and remove that line.

I think this way will work Big Teeth
so i uploaded the file to my webserver and removed that section. but still it seems not to work for me. i even added my webserver to my whitelist. so no rules should apply. but still it breaks some sites when gm_function is active so it seems to load the script but the antiblock demo is still working for me.
For me it works very fine, maybe this problem was caused by your web browser, can you let me know your web browser's name (Firefox, Chrome, Edge) ? I think Anti AdBlock Killer won't work on Edge, but i'm sure it works on Firefox.
hey cattleyavns,

tried it again. still not working. i think its the way i add the anti-adblock-killer-filters.txt to privoxy. how do you add that list to privoxy? i use adblock2privoxy for that. i think thats why its not working for me.

thanks a lot for your help. and the author changed the js file a lil bit Smile!
I don't have anti-adblock-killer-filters.txt but my Anti AdBlock Killer still works, I think I will TeamViewer your computer to fix your problem faster, but a next few days because I'm pretty busy atm.
hey. sounds great. but i have it all running on a raspberry pi. so actually you can only connect through a terminal to it Wink there is no GUI on my pi. so no way to connect through teamviewer. can you work with that?
i thought raspberry pi's were strictly VIDEO ???
(Oct. 07, 2015 04:08 PM)ProxRocks Wrote: [ -> ]i thought raspberry pi's were strictly VIDEO ???

what do you mean? there is a way running a full os with a monitor on the pi but i dont need that. its too slow and for me its like a small home server Big Teeth
Pages: 1 2
Reference URL's