maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] 'advoid' a hostfile based ad blocker (https://talk.maemo.org/showthread.php?t=30970)

DaveP1 2009-10-09 14:24

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by YoDude (Post 342258)
Way back on the first or second page of this thread I said it was working for me... it wasn't, something else was.

So I guess I'm saying either wait patiently for the update to hit the "Extras" repositories (a few days at most I suspect) or search for UserContent.css + Maemo + chrome and perhaps learn how to do it yourself by adding the posted code to your newly created UserContent.css file.

Either way it ain't instant, but then again both methods are free, and community supported. :)

There is a discussion of the different ways of ad blocking in the Wiki:

http://wiki.maemo.org/Ad_blocking

In brief, Advoid modifies the Hosts file which has the advantage of blocking the download itself. CSS modifications only block the display of ads.

rcull - Advoid is not mentioned on the Wiki page. You might want to edit it and add a link.

fpp 2009-10-09 14:31

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Thanks for the clarification everyone, I was beginning to fear I was the only dimwit unable to get this working :-)

Just waiting for autobuilder to work its magic...

rcull 2009-10-09 15:10

Re: [Announce] 'advoid' a hostfile based ad blocker
 
fpp

I updated app manager at 07:00 (gmt+1) and 0.9 was showing then so I don't understand why its not showing for you at 15:30 :(

DaveP1
Not only is there not much overhead but it blocks for any process using any of the blocked url ( this of course could be a disadvantage too ) so adware of any description is blocked. This could come into its own on the N900 once payed apps arrive.

Rick

DaveP1 2009-10-09 16:18

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by rcull (Post 342627)
Not only is there not much overhead but it blocks for any process using any of the blocked url ( this of course could be a disadvantage too ) so adware of any description is blocked. This could come into its own on the N900 once payed apps arrive.

Rick

Absolutely. In addition to low overhead, the blocking means that it frees up bandwidth for the actual page content.

For those of you who will have the N900 on a limited data plan, this reduces the number of bytes counting against your monthly limits.

Addison 2009-10-09 16:55

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Hey rcull, your latest version finally showed up as an available download. :)

Would you mind helping me trouble shoot why I can't get it working? Remember, I ended up uninstalling your last version.

Super thanks chief!

Quote:

Traceback (most recent call last):
File "/usr/bin/advoid", line 1094, in <module>
app=Advoid()
File "/usr/bin/advoid", line 820, in __init__
self.Get_Settings()
File "/usr/bin/advoid", line 796, in Get_Settings
self.servers=self.config.get('advoid','servers').s plit(";")
File "/usr/lib/python2.5/ConfigParser.py", line 511, in get
ConfigParser.NoSectionError: No section: 'advoid'
[1|root@Nokia-N800-43-7|~]

fpp 2009-10-09 17:25

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by rcull (Post 342627)
fpp
I updated app manager at 07:00 (gmt+1) and 0.9 was showing then so I don't understand why its not showing for you at 15:30 :(

Was just me being even dumber than usual :-)

A couple of days ago I had disabled extras-devel because of all the non-installable Canola updates, and forgotten all about it...

So I got the update and installed it, but this one doesn't even start the GUI. If I launch it from xterm I get this :

Code:

~ $ advoid
Traceback (most recent call last):
 File "/usr/bin/advoid", line 1094, in <module>
  app=Advoid()
 File "/usr/bin/advoid", line 820, in __init__
  self.Get_Settings()
 File "/usr/bin/advoid", line 796, in Get_Settings
  self.servers=self.config.get('advoid','servers').split(";")
 File "/usr/lib/python2.5/ConfigParser.py", line 511, in get
  raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'advoid'

Something fishy with my setup here again ? I haven't reflashed my N810 since Diablo came out, maybe it's getting a bit old... :-)

rcull 2009-10-09 17:34

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Addison
That would be because I'm a complete idiot at times. The initial settings file is missing from the package :(

How are you at the command line? I will fix the package but you will need to wait again :(

If you ( or of course anyone else ) are ok with the command line,, what is needed is a file called 'settings' in the .advoid directory with the following contents :-

Code:

[advoid]
default_font_size = 12
flower = 6
chunksize = 8192
start_full = False
servers = http://www.mvps.org/winhelp2002/hosts.txt;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0
&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext;http://hostsfile.mine.nu/Hosts
show_credits = True
fupper = 32

The line from servers = to show-credits is all one line.

I'll start fixing the package now.

Rick

Addison 2009-10-09 17:42

Re: [Announce] 'advoid' a hostfile based ad blocker
 
I might be good at using the command line, but first, what is that? :)

I'm fine with waiting so take your time.

rcull 2009-10-09 18:23

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Version 0.9.0-1 now in Q for extras-devel.

Rick

fpp 2009-10-09 18:40

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Oh good, no reflashing required. Thanks ! :-)

Addison 2009-10-09 18:43

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Is it in that autobuilder que thingie again?

It's not yet showing up for me.

rcull 2009-10-09 18:49

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Its not there for me either, all being in the queue means, is that the app was submitted to the autobuilder, the build was successfull and that it will show up in extras-devel eventually.

Addison 2009-10-09 18:54

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Awesome!

I'll check back later tonight!

Thanks again for packaging this together for us!

No more unrelenting, obsessive upgrade your penis advertisements while surfing the net, I can't wait! :D

Addison 2009-10-10 05:21

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Wow. Ten hours later and stupid autobuilder queue hasn't chucked out your latest version for us to download yet.

Somebody should punch that thing right in her floppy drive. :)

rcull 2009-10-10 08:03

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Addison

You may know this already but, the device will only check for new updates in any of your configured repositories ( extras-devel being one of these ) once a day unless you force it to do otherwise :) Just clicking on 'Check for Updates' does not force this check ( even thought it says checking for updates ) you must also click on the toolbar icon bottom right to force a re-read of the repositories.

The package has been there since last night :)

fpp 2009-10-10 13:33

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Yesssss... this time it works ! (not on first try though, but second or third... :-)
The user interface is much better and easier to understand. And now the local hosts file *does* update. The effect on surfing is quite drastic (similar to having adblock in Firefox, except it works with *any* browser : Micro-B, Tear etc.).

Thanks again rcull !

rcull 2009-10-10 13:51

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Yea I know about the second try etc.
0.9.0-2 now in Q

Rick

YoDude 2009-10-10 19:57

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Rickster,

0.9.0-1 worked for me the second time. :)

Good effort... Thanks http://www.clicksmilies.com/auswahl/ernaehrung004.gif

Addison 2009-10-10 20:42

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Oh yeah!

Super duper drastic awesomeness!

This is a must download for everyone! :)

DaveP1 2009-10-11 04:17

Re: [Announce] 'advoid' a hostfile based ad blocker
 
0.9.0-1 worked for me as well. I like the new UI and the browser is noticeably faster without AdBlock. Thanks for you efforts.

Dave

Addison 2009-10-11 13:35

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by YoDude (Post 316796)
This does a very good job. http://www.clicksmilies.com/auswahl/ernaehrung004.gif

Better than my hand edited hosts file... it even kills images that are inserted into mobile formatted sites like >> http://www.6abctogo.com/wap/traffic/...start=1&loc=13

The Dunkin' Donuts ad on ^that page... history. :)

Just tested that web page and I'm still seeing the Dunkin' Donuts ad.

Is this how my host file should appear?

http://img522.imageshack.us/img522/2...9101109355.png

rcull 2009-10-11 14:09

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Addison this is where your personal additions come in. I've just checked the source for that page and I think that if you add

a.m.go.com

You should lose this add. :) :)

Rick

rcull 2009-10-11 14:11

Re: [Announce] 'advoid' a hostfile based ad blocker
 
You will of course have to click on 'Update my System' afterwards.

Rick

Addison 2009-10-11 14:24

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Okay, thanks for the quick response chief! :)

Addison 2009-10-11 23:36

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Wow. That totally worked! I feel so empowered now! :D

Hey, for future reference, how did you know that a.m.go.com needed to be added to the host file?

YoDude 2009-10-12 01:18

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by Addison (Post 344045)
Wow. That totally worked! I feel so empowered now! :D

Hey, for future reference, how did you know that a.m.go.com needed to be added to the host file?

Yes, teach a man to fish. :)

fpp 2009-10-12 08:24

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by YoDude (Post 344082)
Yes, teach a man to fish. :)

You need to look at the HTML source for the page to find the source of the offending ad.
Using Firefox with adblock on the desktop may be a simpler method for those unfamiliar with HTML.

Addison 2009-10-12 08:32

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Thanks fpp!

I know how to view page source in Firefox so is there some type of leading text or code before that ad address to make it easy to find when searching?

Like is there something I can type into "Find next" that will get me to that part of the code immediately?

pelago 2009-10-12 09:10

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by Addison (Post 344240)
Thanks fpp!

I know how to view page source in Firefox so is there some type of leading text or code before that ad address to make it easy to find when searching?

Like is there something I can type into "Find next" that will get me to that part of the code immediately?

I don't think there's a generic thing to search for that will work for all pages/adverts. You just need to look at the source at around the place that the advert appears.

But as fpp says, I think using Adblock Plus on a desktop Firefox is the best way, as you can right-click on the advert itself and tell it to block, which will tell you the URL of the advert.

Addison 2009-10-12 09:14

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Excellent!

I didn't catch that feature when I installed it on my Windows machine a few days ago.

Thanks for the great tip!

Okay, we can close this entire thread now. :)

YoDude 2009-10-12 11:31

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by Addison (Post 344261)
Excellent!

I didn't catch that feature when I installed it on my Windows machine a few days ago.

Thanks for the great tip!

Okay, we can close this entire thread now. :)

Or leave it open so others can post the "fish" they have caught and the "addys" they have added to Avoid. :)

Edit: BTW, right clicking on an ad image in IE7 will reveal a menu with "Properties" that also shows the images URL.

Addison 2009-10-16 05:59

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Hey.

Just wanted to mention that not a single problem has happened since installing this and surfiing is so much faster without the extra annoyance of ads from hell popping up in every direction.

Thanks again for this rcull!

You rock dude! :)

benny1967 2009-10-16 08:47

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Installed it today for the first time; works fine, love it.

Only thing I noticed: The UI doesn't look like the screenshot in post#1 at all. It lacks the icons in the buttons (red "x" instead). Anything I can do about this? I want it to be pretty ;)

rcull 2009-10-16 17:18

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by benny1967 (Post 348168)
Installed it today for the first time; works fine, love it.

Only thing I noticed: The UI doesn't look like the screenshot in post#1 at all. It lacks the icons in the buttons (red "x" instead). Anything I can do about this? I want it to be pretty ;)

Benny
Thank for the bugreport :) After uninstalling and re-installing I had the same :( I've just put 0.9.0-3 into the autobuilder queue.

Should fix.

Rick

benny1967 2009-10-18 10:56

Re: [Announce] 'advoid' a hostfile based ad blocker
 
0.9.0-3 fixed it for me. thanks!

EDIT: did i miss something here? i don't see a "thanks"-button under your posts...?

rcull 2009-10-18 12:02

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Benny
Glad it works as advertized now. I've just checked and the thanks button seems to have gone from all threads ( or is it just for me :( ) All the thanks seem to have gone from the first post too :(

I'll give a couple of hour to see if something is being changed on the site and then try checking with Reggie.

sjgadsby 2009-10-18 14:54

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Quote:

Originally Posted by rcull (Post 350266)
...the thanks button seems to have gone from all threads ( or is it just for me :( ) All the thanks seem to have gone from the first post too

It's just your Thanks button that has vanished. Have you changed the email address in your Talk profile? You'll need to confirm the new address before Thanks returns to you.

rcull 2009-10-18 15:19

Re: [Announce] 'advoid' a hostfile based ad blocker
 
I did change my email address.
The reason being that I wasn't getting any emails to notify me of subscribed thread changes.
When I checked the email address it was one I haven't used for a couple of years and no longer have a login to it :(
I didn't realise because I have a different login name and email address for maemo.org and have been getting emails from there.
I've pm'd Reggie asking him what to do about it.

Matyas 2009-10-18 16:01

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Since thanks buttons are gone, I thank you by posting this message! To date looks the most efficient adblocking solution for the iNT. You should consider to mention it here. Also you could move it to Maemo Extra. I had any problems so far (couple of day of testing).

Also, is it MER compatible?

All the best,
Matyas

rcull 2009-10-18 16:37

Re: [Announce] 'advoid' a hostfile based ad blocker
 
Matyas

Thanks. I will be mentioning it on the wiki but not until its available in extras.

On that note anyone, what is the current procedure for promotion with N8X0 apps do we go through testing? or is this just for the N900 ??

Rick


All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8