Wikipedia talk:WikiProject User scripts/User-script manager
Instructions
This is an experimental tool to manage your user script.
To enable it, you need to put the following in your monobook.js :
if (location.href == "http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/User-script_manager") {{subst:js|User:Jitse_Niesen/Client-side_preferences/Main.js}}
Then go back to Wikipedia:WikiProject User scripts/User-script manager, choose the scripts you want, and press the button. Your new and shiny user script will be generated.
By default, the script will overwrite your old user script. This can be prevented by placing comments around the fragment as follows:
// jncsp-start if (location.href == "http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/User-script_manager") {{subst:js|User:Jitse_Niesen/Client-side_preferences/Main.js}} // jncsp-end
If you try this out, please leave some comments below, even if just to say that it worked. Thanks. -- Jitse Niesen (talk) 13:11, 13 August 2006 (UTC)
Comments
Works really well! I assume clearing the browser-cache must be done manually. So I don't even have improvements to propose... This extended by some more scripts could become really useful! --Bernardissimo 21:40, 13 August 2006 (UTC)
Very nice
I agree, this is great. I'm seeing some errors in the JS console. The first appears once my monobook.js has been loaded (with action=raw) - it says "not well-formed", so I'm guessing that it's trying to parse it as xml. I also get syntax errors when I install the adah script:
syntax error javascript (line 1) Returns the name of the page. For example, if you were browsing the "foo" WP page, getPname() would return "foo". ^
syntax error javascript (line 1) This script adds hyperlinks with the text "adah" (all diffs above here) to every entry in your watchlist, after the "diff" link. Clinking on one of them opens the corresponding diff and all the more recent ones. You can use this to study all the changes since you last checked the watchlist. This is most useful with a browser configured to open them in tabs. ^