You are not logged in.

#1 2010-01-15 20:14:50

heyya
Member
Registered: 2009-05-23
Posts: 30

midori 0.2.2

How to add filters to adblock?

Offline

#2 2010-01-15 20:17:02

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: midori 0.2.2

you can do global adblocking for your system with your /etc/hosts. check the wiki, its in there.


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#3 2010-01-15 20:26:23

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: midori 0.2.2

Just enable the adblock plugin, then Tools -> configure adverticing filters.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2010-01-15 20:29:10

heyya
Member
Registered: 2009-05-23
Posts: 30

Re: midori 0.2.2

I added http://adblockplus.mozdev.org/easylist/easylist.txt but it doesn't seem to work.

Last edited by heyya (2010-01-15 20:39:22)

Offline

#5 2010-01-15 23:23:16

Sertse
Member
Registered: 2009-11-19
Posts: 35

Re: midori 0.2.2

I went to the easylist site and copied the link of the easy list adblockers

https://easylist-downloads.adblockplus.org/easylist.txt

https://easylist-downloads.adblockplus. … rivacy.txt

Then pasted it in the adblock option window, should look something like this

tMzlqMQ

Sometimes you need to restart the browser for it to take effect though

Offline

#6 2010-01-15 23:59:40

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: midori 0.2.2

heyya wrote:

How to add filters to adblock?

mjheagle8 wrote:

you can do global adblocking for your system with your /etc/hosts.

#!/bin/dash
### MVPS Hosts Updater #########
# Version 0.2 by Scott Garrett #
# Wintervenom [(at)] gmail.com #
################################

[ $UID != 0 ] && {
  echo 'Must be executed as root.'
  exit 1
}

# Download the MVPS hosts file.
wget -c -O /tmp/hosts.txt http://www.mvps.org/winhelp2002/hosts.txt

# Be paranoid and replace every IP address with 0.0.0.0.  After that,
# correct the entry for localhost, and also add the IPV6 localhost to
# make programs like MPD happy.
sed -i -r -e 's:^([0-9]{1,3}\.){3}[0-9]{1,3}:0.0.0.0:' -e "s:^.*localhost.$:127.0.0.1 localhost `hostname`\n\:\:1 localhost `hostname`:" /tmp/hosts.txt

# Write this new list over the system hosts list.  MVPS' line feeds
# are \n\r; we will be getting rid of those dirty carriage returns.
cat /tmp/hosts.txt | tr -d "\r" > /etc/hosts
rm /tmp/hosts.txt

Last edited by Wintervenom (2010-01-16 00:01:57)

Offline

#7 2010-01-16 00:37:43

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: midori 0.2.2

Sertse wrote:

I went to the easylist site and copied the link of the easy list adblockers

https://easylist-downloads.adblockplus.org/easylist.txt

https://easylist-downloads.adblockplus. … rivacy.txt

Then pasted it in the adblock option window, should look something like this

http://omploader.org/tMzlqMQ

Sometimes you need to restart the browser for it to take effect though

that address is wrong. It should begin with "http://" and not with "https://". Moreover, if you look calefully at what you've copied, you'll notice that midori wrongly "translates" https:// into http:://.

Another approach to archieve the adblock effect is to edit the config file of the filter as follows

[kjon@kjon-nc10 ~]$ cat .config/midori/extensions/libadblock.so/config 

[settings]
filters=http://adblockplus.mozdev.org/easylist/easylist.txt;

They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

#8 2010-01-16 06:20:34

heyya
Member
Registered: 2009-05-23
Posts: 30

Re: midori 0.2.2

I had followed the steps to set the filters but still it doesn't work as good as in arora. I guess I should rely on the "hosts file" method or maybe switch to arora.

Last edited by heyya (2010-01-16 06:22:19)

Offline

Board footer

Powered by FluxBB