Install user scripts on Chrome

3

I created a JavaScript file, and named it test.user.js. I tried double clicking it, dragging & dropping it into Chrome and opening it with Chrome, but it won't install.

I've already installed the dev version of Chrome, because it's stated somewhere that it's needed, but I can't get it to work. Then, I tried searching for a Chrome Greasemonkey addon, just to see that it was no further developed on, because Chrome has built-in support.

Could someboy tell me what I have to do in order to get user scripts working on Chrome v21?

Ahatius

Posted 2012-06-06T19:24:15.470

Reputation: 207

1Hmm, when I wrote my first Chrome user-script, the key to getting it to work was to make sure that the filename ended with .user.js instead of just .js, but you've already tried that. What exactly happens when you drag it to Chrome? Does it prompt you to save the file? – Synetech – 2012-06-06T19:31:06.303

It does really nothing. It doesn't download or give any prompt. It's just like if I didn't actually do anything. – Ahatius – 2012-06-06T19:33:12.960

possible duplicate of How do I install a userscript?

– Ƭᴇcʜιᴇ007 – 2012-06-06T19:35:07.083

Check the downloads page; is it listed in there? – Synetech – 2012-06-06T19:36:01.477

@Synetech Nope, nothing there. There's literally no reaction. – Ahatius – 2012-06-06T19:38:06.717

Do you get a prompt when downloading other files? Check you download settings in the options. Make sure that the download folder points to a valid location (i.e., not a folder that you have since deleted). Try toggling the ask for location option. – Synetech – 2012-06-06T19:57:58.733

It could be a bug with the Dev version. Try making a local HTML file with a link to the userscript. – iglvzx – 2012-06-06T20:15:28.920

1I've always just opened the *.user.js file and it prompted me to install it... – nhinkle – 2012-06-06T22:07:00.663

Answers

2

Check if you have "New Downloads UI" enabled in chrome://flags/. If so, disable it & relaunch it.

This is known to prevent user scripts from being downloaded.

Sathyajith Bhat

Posted 2012-06-06T19:24:15.470

Reputation: 58 436

Wow, indeed, I have it enabled. I'll try it out as soon as I get to. Thanks. – Ahatius – 2012-06-07T15:47:02.917

Tried it, and it works now. Thanks alot for this tip, I would never have tought about something like that. – Ahatius – 2012-06-08T05:15:00.003

@Ahatius you're welcome - I'd run into the same (the linked bug report was filed by me). Glad you're able to get it running! – Sathyajith Bhat – 2012-06-08T05:16:52.563

1

... I tried searching for a Chrome Greasemonkey addon, just to see that it was no further developed on, because Chrome has built-in support.

Tampermonkey is a Greasemonkey equivalent for Chrome and is currently being actively developed.

Tampermonkey is a free browser extension and the most popular userscript manager for Blink-based Browsers like Chrome and Opera Next. Even though Google Chrome does have native support for Userscripts, Tampermonkey can give you much more convenience in managing your Userscripts. It provides features like automatic update checks, a overview what scripts are running at a tab and there is a good chance that scripts that are incompatible to Google Chrome run with Tampermonkey.

Tampermonkey is available for Google Chrome, Opera, Chromium and a lot of their derivates like CoolNovo and Rockmelt.

galacticninja

Posted 2012-06-06T19:24:15.470

Reputation: 5 348