views:

146

answers:

1

I have a private script that I'm trying to get to run as a userscript in Google Chrome, how do I do this without uploading it to a shared site like userscripts?

I've got google chrome setup with the additional startup parameter --enable-user-scripts

+1  A: 

You should be able to name the script file yourscript.user.js and then just open it in chrome (e.g. go to file:///C:/myscript.user.js )

Annie
this just shows the script as a plaintext file in the chrome tab, no install extension shows up like it does if I click install at user scripts.
Tom J Nowell
if I goto http://diveintogreasemonkey.org/download/helloworld.user.js I can install the script, BUT if I copy its contents into a js file and open that using file:// it does not work. Same is true if I put it on my website and open the url
Tom J Nowell
ag .user.js not .js
Tom J Nowell
Strange, it works for me. I'm on dev channel--4.0.266.0. If I download a script from userscripts.org and then copy the file path into the urlbar, I get a message on the download bar asking me if I want to continue, and when I click "Continue" it installs the user script. Maybe you need to get on the dev channel? (jldupont's link has more info on that)
Annie
yeah my script was ending in .js not .user.js so it wasn't being interpreted as a user script
Tom J Nowell

related questions