Scripts in CM6
This is a discussion on Scripts in CM6 within the Koush forums, part of the Droid Forums Dev Archives category; I just installed CM6 on my Droid 1. Love everything about it. However I do want to turn on adblock but noticed that there is ...
-
Scripts in CM6
I just installed CM6 on my Droid 1. Love everything about it. However I do want to turn on adblock but noticed that there is no script for it. After searching on the net I found the following link.
Scripts? - CyanogenMod Forum
I dloaded and installed the goodies_update.zip from the link from absolute zero's post about half way down the page. i updated it per recovery and i still can't run any scripts, especially blockads.
can anyone help?
thanks in advance. i'll hang up and listen.
-
-
Goodies is made for jrummy's rom that is based on cyanogenmod but not the new release. Cyanogenmod does not have scripts and such. Can try adblock from the market. If its not under cyanogenmod in the settings menu then its not included.
Sent from my Ultimate DROiD 1.0.0 using Tapatalk
-
that's disappointing.
i tried typing in terminal the below.
su
sh /sdcard/goodies/scripts/blockads
it came back w/ about 3 lines of error messages but the last line said ads are now blocked.
i rebooted but still see ads in the apps so i guess you're right, cm6 does not support scripts.
oh well. this is my one complaint about this room. not critical but just an annoyance since it seems like all other rooms support scripts.
-

Originally Posted by
h_10
I just installed CM6 on my Droid 1. Love everything about it. However I do want to turn on adblock but noticed that there is no script for it. After searching on the net I found the following link.
Scripts? - CyanogenMod Forum
I dloaded and installed the goodies_update.zip from the link from absolute zero's post about half way down the page. i updated it per recovery and i still can't run any scripts, especially blockads.
You're better off just manually doing the things that the scripts would be doing. All the "adblock" script is doing is replacing the hosts file with one that maps a bunch of known ad providers to localhost (rendering them unreachable, so the ads don't show up)
The adblock app in the market will do that for you, or you can manually copy a file into /system/etc/hosts. The scripts from that file will mostly NOT work, because they make a lot of assumptions about what is already present in the ROM, and those assumptions aren't true for CM.
Here's an example of what you might do to install a new hosts file (I don't know where to find one offhand, however EDIT - try grabbing an adblocking hosts file out of another ROM)
Code:
su
mount -o rw,remount /system
cp /system/etc/hosts /sdcard/hosts.backup
cp /sdcard/some_new_hosts_file_you_downloaded /system/etc/hosts
mount -o ro,remount /system
sync
EDIT AGAIN: Just use "adfree" from the market. It's a free app that requires root, downloads a new host file and installs it. You can even uninstall the app afterwards, if you want and the hosts file will stay
Last edited by Se7enLC; 10-21-2010 at 11:33 AM.
Cool CM Tricks
custom_backup_list.txt - make a list of files in /system that will survive a nightly install (ringtones, notifications, system apps, wallpapers, whatever)
in Terminal Emulator, set this as your shell command: "/system/xbin/su -c /system/xbin/bash". You get all the features of bash, root access, and you can still use the initial command field for whatever you want (default is adding /data/local/bin to your path)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By jakegsxr11 in forum Droid Hacks
Replies: 1
Last Post: 09-06-2010, 09:59 PM
-
By tyroniousdex in forum Koush
Replies: 0
Last Post: 08-02-2010, 03:02 PM
-
By zaldonisj in forum Bugless
Replies: 2
Last Post: 05-18-2010, 09:10 AM
-
By budmonster in forum Hacking Help
Replies: 1
Last Post: 04-16-2010, 06:47 PM
-
By Coosa Droid in forum Bugless
Replies: 3
Last Post: 04-12-2010, 07:13 PM
Search tags for this page
absolutezero
,
access hosts file android
,
adblock android /etc/hosts
,
adblock dolphin removed from market
,
add block for dolphin removed android
,
ads cm6
,
android adblock host script
,
android scripts turn off adblock
,
cyanogenmod ad block
,
cyanogenmod hosts file
,
disable ad filter cyanogenmod android
,
disable ad on cyanogenmod rom
,
disable adblock android
,
facebook
,
how to disable ads on cm6
,
script for adblock android
Click on a term to search our site for related topics.
Tags for this Thread