Notices


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Give Mee No Ads! is a script to easy up installing and updating /etc/hosts-based adblocking.

How to use it?

Run `update-hosts-adblocking` as root

How to get it?

Fremantle: use extras-devel
Harmattan: use OpenRepos
The package name is
Code:
give-mee-no-ads-cli
So is there a GUI version?
No.

How to back up /etc/hosts?
Give Mee No Ads! automatically backs it up and restores upon uninstall.

Will my personalized hosts entries be preserved?
No, but they'll remain in backup

Note for Fremantle users: Fremantle version is beta quality. I don't remember whether Harmattan version worked flawlessly on N900 or whether it needed some tweaking. Be careful while using it until the warning is dismissed

Thanks to vi_ for this useful one-liner!
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-07-22 at 10:08.
 

The Following 4 Users Say Thank You to marmistrz For This Useful Post:
Posts: 196 | Thanked: 141 times | Joined on Aug 2007
#2
does this need inception/developer mode on N9?
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Originally Posted by jcharpak View Post
does this need inception/developer mode on N9?
Inception - no
Devmode - yes (because it requires terminal and root access). I should add devmode to the depends, shouldn't I?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#4
I personally do not think so.
Enabling dev mode should be user decision, single action.

You may throw a message that dev mode is needed.


I do use this (but you know this, too).
And - just to mention - there are also voices that the hosts file should not be (ab)used for ad blocking. (nevertheless: I do so, as adblock on N900 blocked my cups printer configuration [add printer])
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#5
@all,

I had a look at the script and I have the following warning:

Your /etc/hosts will only have the localhost entry and whatever list is downloaded from who knows where.

Any *actual* *useful* content you already may have in your /etc/hosts, i.e. the very purpose of this file, will be deleted.

If people REALLY want to *misuse* /etc/hosts for adblocking then I'd advise to make it very clear that any useful entries will not be there anymore.
 

The Following 4 Users Say Thank You to reinob For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#6
OK, I'll add this in August to the package. Now only warning in the thread.

Well, I even forgot about the script and used the one-liner from the Harmattan thread. Worked fine.

The last fix for this month has been released. Added wget as dependency and information in control about terminal and root access.

In Fremantle I can use maemo-confirm-text (but I'd rather use something that doesn't require user activity while installing - is there any way I can push such notification as e-mail app does?), what would be the best option for Harmattan?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-07-22 at 10:12.
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#7
Originally Posted by peterleinchen View Post
And - just to mention - there are also voices that the hosts file should not be (ab)used for ad blocking. (nevertheless: I do so, as adblock on N900 blocked my cups printer configuration [add printer])
You don't need to modify the host file there is also a way to use dnsmasq which I am using in the genwall application.
It could be easily written a routine which imports some file with ad-hosts and writing to the file for dnsmasq.
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#8
Originally Posted by reinob View Post
@all,

I had a look at the script and I have the following warning:
...
The 'voice' is listening.

Are we talking about the same python script? # Author: Jason Robinson (http://www.basshero.org), 2010-2011 #
As this one only appends the entries from
HOSTS_URL='http://winhelp2002.mvps.org/hosts.txt' (a trusted? source)
after a dedicated
SCRIPT_IDENTIFIER = '############# BELOW ADDED BY GETHOSTS.PY ################'

--edit
Or are you talking about marmistrz 'one-liner' script?
Then your warning is true. And I would like to second this! Even all changes done later will get nuked again on refreshing the list.
@marmistrz: would you mind to take over the python script advantages, please?
--


@halftux
I think this is a huge list, or?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-07-23 at 06:39.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#9
Originally Posted by marmistrz View Post
In Fremantle I can use maemo-confirm-text (but I'd rather use something that doesn't require user activity while installing - is there any way I can push such notification as e-mail app does?), what would be the best option for Harmattan?
I don't know about those notifications, but I did create a maemo-confirm-text clone for Harmattan a while back. Maybe it can be of use to you: sources / deb.
 

The Following 3 Users Say Thank You to iDont For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#10
Btw. feel free to push gethosts to extras-devel. It's better to have more options than less.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:59.