![]() |
Ad blocking
I've posted this before but since some people are having trouble with the Adblock plugin for microb, I thought I'd repost this:
Ad blocking with css: http://floppymoose.com has a good file (doesn't get everything though). Save the file userContent.css to /home/user/.mozilla/microb/chrome/userContent.css to enable blocking with that file. Restart browser once you have the file in place. Make sure permissions and ownership are set right. This solution is very fast and very easy to setup. |
Re: Ad blocking
Thanks. I'll give it a go.
So, Adblock still has troubles, eh? My main question is whether there's still no fix for the supposed sluggishness it causes in Microb. Other issues I can deal with, but Microb is slow enough as it is. I'm guessing there's lots of scripts for Greasemonkey for ad-removal. Has anyone found some that work well with Microb? Lastly, to shove all of my ad-blocking questions into one post, is there a way to disable Adblock without uninstalling it? |
Re: Ad blocking
Quote:
|
Re: Ad blocking
Quote:
|
Re: Ad blocking
Um, just make sure you can read from the directory and file as your normal user. :)
|
Re: Ad blocking
Quote:
> Yes, you can disable it. Thanks for telling me how. You chastise me for asking a question and then half-answer it. Anyway. I'm going to try the CSS script and privoxy. |
Re: Ad blocking
My (partial) solution is modifying the /etc/hosts to point the ads sites to nowhere. This method takes care of the majority of the ads and has least impact on system performance.
Root privilege is required to modify the /etc/hosts. |
Re: Ad blocking
adblock does speed up surfing , when you already have a window open , but the 10-15 sec delay when opening a new browser window from the desktop is unacceptable.
|
Re: Ad blocking
Quote:
|
Re: Ad blocking
open xterm
Code:
cd /etchttp://pgl.yoyo.org/adservers/ http://www.hosts-file.net/ http://someonewhocares.org/hosts/ http://hostsfile.mine.nu/ If you have a local http server running then you should change 127.0.0.1 to something else or rely on another method. |
Re: Ad blocking
I've tried various ad blocking techniques over the short time I've had my N800 - GreaseMonkey (+Scripts), Adblock+, fakeweb with modified hosts file and currently the custom userContent.css file.
The userContent.css file blocks quite a lot of ads, although not as many as the large hosts file and fakeweb, and was was wondering about the performance hit from having a large hosts file compared to the relatively small userContent.css script. |
Re: Ad blocking
Quote:
Thanks for the nice write-up. |
Re: Ad blocking
Quote:
From the browser menu go to 'tools' -> 'components' : uncheck / check adblock plus |
Re: Ad blocking
Quote:
But no, there is no hit with a large hosts. Instead of resolving the URL from a DNS server, it resolves from the hosts, which points nowhere. |
Re: Ad blocking
Quote:
Also, if I have a 50K host file doesn't the browser have to check every link address with the list before sending it out to the internet DNS? I was thinking about the time taken to perform this check. |
Re: Ad blocking
Quote:
Quote:
Either way, avoiding loading advertisements would most certainly make up for any slight performance hit of a large hosts file if there actually were one. :rolleyes: |
Re: Ad blocking
Make sure you do not mess up your original hosts file. See my post:
http://internettablettalk.com/forums...79&postcount=5 |
Re: Ad blocking
Quote:
That's why in the few lines, I *append* the ad-blocking host to the current original one. |
Re: Ad blocking
Linux newbie here. How do I append the ad-blocking host to the original one?
|
Re: Ad blocking
Quote:
Code:
cd /etcCode:
sudo gainrootI hope this clarified things. I can't stress how much of an improvement running one of these host file additions makes to the quality of web browsing ( unless you like seeing all the ads :p ). |
Re: Ad blocking
Is there any way I can copy the existing hosts file out of the N800, edit it on my PC (WinXP) and then copy it back into the N800?
my commandline skillz is teh fail (i can lolcattalk too), and with things working all fine and dandy on my tablet now, I would REALLY hate to screw it up. |
Re: Ad blocking
Quote:
|
Re: Ad blocking
Quote:
You are not actually editing the host file, all you are doing is making a new host file by joining the current host file (which has your machine ID) and the ad blocking list to create the new super host file. |
Re: Ad blocking
That worked. Application Manager works fine too.
Now to test it over the next couple of days to see what kind of improvement I can get. I've turned off AB+ just to get an idea of how this works. Thanks, guys! |
Re: Ad blocking
Quote:
|
Re: Ad blocking
Thank you for the very clear instructions! I have modified my hosts file using the one from hosts-file.net following the posted instructions. Now however instead of ads I'm seeing the CSS placeholders and messages telling me server could not be found. I think I'm also supposed to use UserContent.css or Greasemonkey scripts to hide those now defunct css elements right? Is there a preference for which one?
Edit: Did some googling and yeah, I figured it out. However, http://www.floppymoose.com isn't working for me. Anyhow, I found a website that suggests that using Mozilla's built in image blocking may be more effective than using CSS filtering. http://www.gozer.org/mozilla/ad_blocking/ Anyone use this? |
Re: Ad blocking
Frankly, it think privoxy is easier to use and does a more thorough job of ad blocking. Just install the deb and point set the proxy settings and your done.
|
Re: Ad blocking
Is there by the way some faster way to switch proxies? Most of the time I'm behind privoxy, but every now and then I need to be in my uni's "ip space" and frankly it's a ***** to change those settings.. so many clicks..
|
Re: Ad blocking
Quote:
|
Re: Ad blocking
I did a
mv /etc/hosts /etc/hosts.orig and then created the following script. Code:
#!/bin/sh |
Re: Ad blocking
Is there a way to log/monitor which HTTP requests are directed to 127.0.0.1 because of the the hosts file, (short of installing apache)? Since I added this here to my hosts file I can't open youtube movies, either from Microb or the MyTube app. So I experimented a bit with tcpdump, but I haven't been able to see the complete http request. Probably probably because HTTP is one level up on the network stack.
|
Re: Ad blocking
I use privoxy and I'm more than happy with it.
|
Re: Ad blocking
Quote:
|
Re: Ad blocking
You really have to be careful which adblock host file you use. I use the one from floppymoose because some I've used in the past blocked a lot more than just ads. If the one you are using isn't suitable, try a different host file.
|
Re: Ad blocking
Quote:
|
Re: Ad blocking
Heh, yep, I got that wrong. I'm way over tired.
I use the same file you listed above: http://everythingisnt.com/hosts.html but I don't have seem to have trouble with it. |
Re: Ad blocking
I feel really stupid for asking this question, but I tried saving the userContent.css file to a few places and then found it via xterm. However, it won't let me do the command "mv userContent.css /home/user/.microb/chrome". It gives me the error:
"mv: cannot rename 'userContent.css': No such file or directory." What's going on? |
Re: Ad blocking
Quote:
|
Re: Ad blocking
Well, I had made the chrome directory before trying to move it. I also tried moving it to /, /home, those didn't work either, so I knew it wasn't something wrong with the target directory being invalid...
|
Re: Ad blocking
Quote:
mv userContent.css /home/user/.microb/chrome/userContent.css |
| All times are GMT. The time now is 16:27. |
vBulletin® Version 3.8.8