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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Scripts in CM6

  1. Droid
    h_10's Avatar
    Member #
    76015
    Join Date
    Jun 2010
    Posts
    45
    Phone
    Moto Droid
    #1

    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.
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Beta Team
    RafficaX's Avatar
    Member #
    98317
    Join Date
    Aug 2010
    Posts
    605
    Phone
    HTC ThunderBolt
    DroidForums.net Developer
    Premium Member
    #2
    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
  4. Droid
    h_10's Avatar
    Member #
    76015
    Join Date
    Jun 2010
    Posts
    45
    Phone
    Moto Droid
    #3
    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.
  5. Droid Ninja
    Se7enLC's Avatar
    Member #
    5148
    Join Date
    Nov 2009
    Posts
    1,263
    Liked
    6 times
    Phone
    Samsung Galaxy Nexus
    #4
    Quote Originally Posted by h_10 View Post
    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)

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Scripts
    By jakegsxr11 in forum Droid Hacks
    Replies: 1
    Last Post: 09-06-2010, 09:59 PM
  2. scripts
    By tyroniousdex in forum Koush
    Replies: 0
    Last Post: 08-02-2010, 03:02 PM
  3. How to... Run scripts?
    By zaldonisj in forum Bugless
    Replies: 2
    Last Post: 05-18-2010, 09:10 AM
  4. ADB/SCRIPTS help?
    By budmonster in forum Hacking Help
    Replies: 1
    Last Post: 04-16-2010, 06:47 PM
  5. BBV.9 Scripts
    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