Adblock Plugin

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

edu
Posts: 43
Joined: Fri Jun 20, 2014 4:09 am

Re: Adblock Plugin

Post by edu »

Waiting for it Lantis! :D

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

first post updated.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

DrData
Posts: 4
Joined: Thu Jul 02, 2015 2:41 pm

Re: Adblock Plugin

Post by DrData »

With Firefox I see only the "save changes" and the "reset" button.
Reload page does not help. Delete caches does not help.

With Safari everthing is OK.

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Adblock Plugin

Post by nworbnhoj »

Well done Lantis - thank you :-)
DrData wrote:With Firefox I see only the "save changes" and the "reset" button.
Works OK in Firefox for me.

I notice in Teffalump's script that only two of the possible hosts.txt are enabled.

Code: Select all

    echo 'Downloading hosts lists...'
    #Download and process the files needed to make the lists (enable/add more, if you want)
    wget -qO- http://www.mvps.org/winhelp2002/hosts.txt| awk -v r="$ENDPOINT_IP4" '{sub(/^0.0.0.0/, r)} $0 ~ "^"r' > /tmp/block.build.list
    wget -qO- "http://adaway.org/hosts.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
    #wget -qO- http://www.malwaredomainlist.com/hostslist/hosts.txt|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
    #wget -qO- "http://hosts-file.net/.\ad_servers.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
What is the thinking about enabling more/less of these?
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

DrData
Posts: 4
Joined: Thu Jul 02, 2015 2:41 pm

Re: Adblock Plugin

Post by DrData »

I found my problem ith Firefox. In Firefox I had installed a add-on witch blocks the adblock.js file from the Adblock Plugin.

The name of the Firefox-add-on is Adblock Plus :D
my mistake, sorry.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

nworbnhoj wrote:Well done Lantis - thank you :-)

I notice in Teffalump's script that only two of the possible hosts.txt are enabled.

Code: Select all

    echo 'Downloading hosts lists...'
    #Download and process the files needed to make the lists (enable/add more, if you want)
    wget -qO- http://www.mvps.org/winhelp2002/hosts.txt| awk -v r="$ENDPOINT_IP4" '{sub(/^0.0.0.0/, r)} $0 ~ "^"r' > /tmp/block.build.list
    wget -qO- "http://adaway.org/hosts.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
    #wget -qO- http://www.malwaredomainlist.com/hostslist/hosts.txt|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
    #wget -qO- "http://hosts-file.net/.\ad_servers.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
What is the thinking about enabling more/less of these?
In my experience the first 2 servers provide a sufficient list. I rarely (I can't actually think of any!) see any ads. There's a lot of overlap between them all also. I've never tried it with just 1 list so I'm not sure how complete it would be :)
I was also concerned about space constraints for people on older devices.
If people are interested, I could look at making it an option.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

DrData wrote:I found my problem ith Firefox. In Firefox I had installed a add-on witch blocks the adblock.js file from the Adblock Plugin.

The name of the Firefox-add-on is Adblock Plus :D
my mistake, sorry.
Interesting lol. If it makes you feel any better, I used to use Adblock plus also. Since developing this script, I've found that I don't need to.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Adblock Plugin

Post by ispyisail »

Having a bit of a play with this plug in

I don't think it works as well as ad block plus? (in respect to making the web page look clean)

But other than that it seams to work well

Image

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

No it doesn't, but it doesn't pretend to either.
Basically it just stops the Ad dead in its tracks. Adblock plugins for browsers tend to detect them, and then hide them. This is done with careful JavaScript and CSS manipulation.

Blocked ads simply fail to load. If a website is coded "nicely", a failed load should be hidden. If it's not, ugly image.
This is where the transparent pixel option comes in. It attempts to serve a 1x1 see through pixel instead of the ad. Which should hide it completely.
There are other issues with this method though but I won't go into them.

There is also a mildly increased performance gain from not having to load these ads.
I guess the limitation is that it is running in a crude way on a router with limited resources and functionality. But, it does help block ads on your mobile devices which otherwise may not have Adblock programs.

What website did you screenshot that on?
I appreciate the feedback and if there's ways I can improve it then I would be happy to try them. :)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Adblock Plugin

Post by ispyisail »


Post Reply