Enable User Scripts In Google Chrome

Windows only: The latest beta version of Google Chrome adds support for user scripts, but if you want to enable them you'll need to follow a couple of quick steps.

The first step is to download and run the Google Chrome Channel Changer tool, which will subscribe you to updates from either the Beta or Dev channels—you get more features but potentially a less stable browser. For user scripts just choose the Beta channel, go to Help -> About and click the Upgrade button, and you'll get the latest beta version.


Next you'll want to open up your favourite file manager and browse down to the following path for your Windows version:

Windows XP: %userprofile%\Local Settings\Application Data\Google\Chrome\User Data\Default
Windows Vista: %userprofile%\AppData\Local\Google\Chrome\User Data\Default

Create a new directory called "User Scripts" inside the Default folder. This is where you will need to save the Greasemonkey scripts.
The last step is to modify the Google Chrome shortcut—or any Chrome "application" shortcuts—to include the —enable-user-scripts switch after the executable path.

Now you can start using Greasemonkey scripts in Google Chrome—although keep in mind that not all of them work, since Chrome hasn't implemented all of the features yet. Once you've saved a Greasemonkey script into the User Scripts folder, simply refresh the page and it should work (or not).


Comments

    I started by searching on how to save my Chrome Sessions. This is an important feature. After following the advice regarding wrench->Options->Startup->"Reopen pages that were open last", I had marked the button. It worked for a bit. Then stopped working. The button is still marked, so I continued looking further. In pursuing this I wound up on http://www.lifehacker.com.au/2009/03/enable_user_scripts_in_google_chrome-2.

    I would LOVE to be able to keep my tabs as well as pages, which I could do in Firefox without even thinking about it.

    I am using version 8.0.552.28 beta, downloaded a year and a half after the page date. So I have no idea whether any of this has yet been incorporated into Chrome.

    Do I need to download and implement greasemonkey? Do I need to change the commandline in properties to implement the argument given: '--enable-user-scripts' ?

    As a programmer, I am an old-timer and only familiar with JavaScript as an aid to an html page, and embedded within it. The given JavaScript not only looks to be a free-standing function, but it has no name to use when calling it. I was able to open the JavaScript console, and paste the given code within the page. What then? Please point to something to read about this.

Join the discussion!

Trending Stories Right Now