Page 2 of 33

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 6:19 am
by edu
Waiting for it Lantis! :D

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 10:18 am
by Lantis
first post updated.

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 2:46 pm
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.

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 5:57 pm
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?

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 6:37 pm
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.

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 7:57 pm
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.

Re: Adblock Plugin

Posted: Thu Jul 02, 2015 8:01 pm
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.

Re: Adblock Plugin

Posted: Sat Jul 04, 2015 8:16 am
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

Re: Adblock Plugin

Posted: Sat Jul 04, 2015 8:27 am
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. :)

Re: Adblock Plugin

Posted: Sat Jul 04, 2015 4:12 pm
by ispyisail