Page 1 of 1

How to make adblock for linux work

Posted: Thu Aug 20, 2009 6:47 pm
by Lazarus
I am using linux and put adblock.ini in the same directory as the iron-linux binary
Still adblock doesnt work. Any suggestions ?

Regards
Rune Jensen

Re: How to make adblock work

Posted: Thu Aug 20, 2009 6:48 pm
by SRWare
Currently our adblock is not yet supported in the Linux-version. But you can use adsweep instead.

Re: How to make adblock for linux work

Posted: Thu Sep 10, 2009 6:06 am
by nitroguy
... and how is that done? is there a tutorial somewhere?

Re: How to make adblock for linux work

Posted: Tue Sep 15, 2009 4:24 pm
by rsmereka
A freebie for you,

I managed to get Adsweep as a user script working for Iron under Lunix (Ubuntu 9.04). Here's how:

I stumbled upon a shell script in the Ubuntu forum that installs Google's Chrome under Ubuntu and carved up the script to only prepare the required directories and download Adsweep.

All you have to do is to make sure that you execute Iron with the

Code: Select all

--enable-user-scripts
option.

I tried to upload the shell script here but the '.sh' extension is not allowed, neither is no extension, neither is the '.txt' extension. I ran out of patience so here is the script, just copy and paste into a file, make the file executable and run it.

Code: Select all

#!/bin/bash
mkdir -p ~/.config/chromium/
mkdir -p ~/.config/chromium/Default/
mkdir -p ~/.config/chromium/Default/User\ Scripts
wget -qO ~/.config/chromium/Default/User\ Scripts/AdSweep.user.js http://www.adsweep.org/AdSweep.user.js

# don't forget to execute with the option --enable-user-scripts
One more task you need to be concerned about. Updates to the Adsweep file. Create a shell script from this:

Code: Select all

cd ~/.config/chromium/Default/User\ Scripts
wget -N -P . http://www.adsweep.org/AdSweep.user.js
Then run the shell script in a cron job to update once a day.

Enjoy,
Rick