Using Greasemonkey scripts with Google Chrome

This post was published in 2010 and is kept here for reference. It may contain information that's outdated or inaccurate. All external links and references have been updated to point to archived versions on archive.org where possible.

This isn’t new news, but it’s something I’ve found quite useful.

You can use userscripts created for Firefox/Greasemonkey in Google Chrome. Many of the scripts that you can find over on userscripts.org can be used effortlessly by Google Chrome, and once installed can be disabled/uninstalled from the Extensions tab.

The bit that I’ve found useful is that you can install any userscript in Google Chrome simply by naming giving it the correct information, and naming it in the right way.

The instructions are as follows:

Your script needs the userscript meta information at the top of the file

// ==UserScript==
// @name Some Awesome Script
// @namespace Supporting website/authors website
// @description Description of the scripts functions
// @include Url of the website to apply to, wildcard
// @match The same as @include really
// @require Additional script/library from site or path
// ==/UserScript==

You need to name the file something like some-awesome-script_1-0.user.js

Drag the script into your Chrome window, and you will be prompted to install the script.

Chrome hasn’t supported this method of installation for a while now. To install userscripts in Chrome now you will have to use Tampermonkey

Information sources:

This post is also available in plain text

[Comments]

Want to comment? You can do so via Github.
Comments via Github are currently closed.

[Webmentions]

Want to reply? I've hooked up Webmentions, so give it a go!