Enable GreaseMonkey User Scripts in Google Chrome

April 10th, 2009 | 9 Comments | Posted in Internet by dennis

GreaseMonkey in Google Chrome

Greasemonkey is a Mozilla Firefox add-on that allows users to install scripts that make on-the-fly changes to most HTML-based web pages. As Greasemonkey scripts are persistent, the changes made to the web pages are executed every time the page is opened, making them effectively permanent for the user running the script. Earlier versions of Google Chrome did not support Greasemonkey. But from the new version of Google Chrome 2.0, we can make it support Greasemonkey. Greasemonkey can be used for adding new functions to web pages like downloading videos form YouTube or removing the most visited sites from new tab in Google Chrome.

To Enable User Scripts follow the steps given below:

Step 1: Go to the location below in your computer:

Windows XP Users:

Documents and Settings%userprofile%Local SettingsApplication DataGoogleChromeUser DataDefault

Example: C:Documents and SettingsDENNISLocal SettingsApplication DataGoogleChromeUser DataDefault

Windows Vista and Windows 7 Users:

Users%userprofile%AppDataLocalGoogleChromeUser DataDefault

Example: C:UsersDENNISAppDataLocalGoogleChromeUser DataDefault

Step 2: In the Default folder Create a new folder and name it as User Scripts. User Scripts FolderStep 3: Now find the shortcuts of Google Chrome in the Start Menu, Taskbar or your Desktop. Right click on it and select properties.

Google Chrome Properties

Step 4:  In the Properties Window go to Shortcut tab and add

--enable-user-scripts

by giving a space after chrome.exe” in the Target text box. Select OK. It is shown below.

Enable Greasemonkey user scriptsNow you can simply save your Grease Monkey scripts in the User Scripts folder that you have created.

For a small test download the script given below in the User Scripts directory

To download Right click and Select Save Link As:

http://techrena.net/downloads/Grease%20Monkey/test.user.js

You should see a Hello World! dialogue when you open Google Chrome from the Start menu or Desktop shortcut. Don’t forget to delete the script after the test has been successfully completed.

Important:

1. GreaseMonkey Scripts will work on Google Chrome 2.0 or higher. To download the new version visit  Download Google Chrome Latest Version

2. You should perform Step 3 for all the Google Chrome shortcuts you have, either in Desktop, Taskbar, or Start Menu.

3. User scrips will be enabled only if you open Google Chrome from a shortcut where you have preformed “Step 3″.

4. For removing a particular Greasemonkey addon, just delete the corresponding user.js file from the User Script folder.

UPDATE on Feb 4, 2010: Google Chrome 4 now officially supports GreaseMonkey User Scripts

Related Posts with Thumbnails

Leave a Reply 14246 views, 17 so far today |

Related Posts

Follow Discussion

9 Responses to “Enable GreaseMonkey User Scripts in Google Chrome”

  1. Frank Winstead Says:

    I keep getting this URL in a tab with no apparent working greasemonkey:

    http://xn--enable-user-scripts-475k/

    suggestions? I have tryied with on and 2 dashes before enable-user-scripts-475k and from the DOS command line.

    Thanks

  2. Frank Winstead Says:

    I fixed my own problem by killing the chrome.exe process in the task manager and then restarting Google Chrome.

  3. Dennis Says:

    Thanks for the feedback. Thats the important thing I forgot to write..You should not be running Google Chrome during the process.

  4. Sojakai Says:

    The only problem with this that I see, is it gives an error about a GM command not being set up.
    “ReferenceError: GM_setValue is not defined”

    Other than that, it worked like a charm.

  5. dogsnapper Says:

    does anybody know, if i create the User Scripts folder under
    Documents and Settings\%userprofile%\…
    will the user scripts be available for all windows users?
    or should i create the folders under
    Documents and Settings\ALL USERS\…
    ?

  6. dragonV Says:

    Not all scripts at http://userscripts.org can work properly with this greasemonkey-enabled tip. Nevertheless, tks 4 sharing!

  7. immeëmosol Says:

    On Ubuntu the folder in which the User Scripts might go by default is:
    ~/.config/chromium/Default/
    Just so you know…   : )
     

  8. Fred Says:

    I’m desperate for subfolders (or something like this that is close to it) but can’t get this process to work.  I have the latest version of Chrome.  I (think I) followed the instructions above.  The folder is there, the script is in it.  I added the enable command in Properties.  I restarted Chrome.  But my folders still look the same.  The only thing I see different on my end is that the screen shot above doesn’t show quotation marks in the target box of the properties window.  If I try to take the quotes out of mine or move them to the end of “scripts,” I get a message saying that it’s not valid.  Can anyone help?

  9. Allan Says:

    Where is the script for sub folders?

Leave a Reply

Spam Protection by WP-SpamFree

  • FeedCount

  • Enter your email address:

    Delivered by FeedBurner