Wikipedia talk:WikiProject User scripts/Scripts
From Wikipedia, the free encyclopedia
[edit] My Scripts have stopped working
I was assessing articles using Outriggr's script when my scripts suddenly stopped working. Here is my monobook.js file: http://en.wikipedia.org/wiki/User:Oneworld25/monobook.js Can anyone help me? Oneworld25 19:57, 20 June 2007 (UTC)
- Try bypassing your cache. If that doesn't work, try removing popups and bypassing your cache again; that should help to narrow down the problem. --ais523 09:32, 2 July 2007 (UTC)
[edit] To add a link
Is there a script with which I can add a link and/or links to the 'navigation' or 'interaction' boxes? ~ thesublime514 • talk • sign 19:00, July 2, 2007 (UTC)
- Take a look at Wikipedia:WikiProject User scripts/Guide, sections "Structure" and "portlets". Or simply use
addOnloadHook(function(){ addPortletLink ('p-interaction', 'http://…', 'mylinkname'); })
- see addPortletLink() in wikibits.js for full info ∴ Alex Smotrov 20:03, 2 July 2007 (UTC)
- Thanks ~ thesublime514 • talk • sign 20:11, July 2, 2007 (UTC)
[edit] Unwatch
It seems the "unwatch" script stopped working (at least for me). I think the Watchlist special page itself has been upgraded a bit. Can anyone fix it? Thanks, — thesublime514 • talk • 00:46, July 11, 2007 (UTC)
- The action URL for unwatching indeed changed. I'm not sure which URL could be used now, so I can't fix Unwatch. However I have a better (imho) script that works: wlUnwatch (will add it to the list later), please try it out ∴ Alex Smotrov 16:50, 11 July 2007 (UTC)
- Awesome, thanks — thesublime514 • talk • 18:16, July 11, 2007 (UTC)
[edit] Removing "Dependencies" column
I'm planning to do a little cleanup on the "Scripts" page, and I would like to remove "Dependencies" column. It's mostly empty or outdated (e.g. for wikEd and CloseAFD.js) or just says "see doc". If you have any objections - please share them now ∴ Alex Smotrov
- Excellent. That column was getting rather pointless. Shinobu 12:17, 25 July 2007 (UTC)
[edit] Regex replacing tool
I have given Gerbrant.edit.regexReplace (documentation) a bit of an overhaul. Most changes are cosmetic, but nevertheless should improve the workflow a bit. I hope I didn't introduce new bugs. Shinobu 12:17, 25 July 2007 (UTC)
[edit] Special:Contributions Script
Is there a script that allows me to see a user's S:C page? Possibly like a tab at the top of the page that would take me directly to that user's S:C page? Thanks. MilkTaco 18:25, 10 October 2007 (UTC)
- There's a link to contributions in the toolbox on the left of the screen when viewing a user's userpage, even without installing a script. If that's in the wrong place for you, it would be easy enough to write a script to place it in a tab as well; see our scripts request page. --ais523 18:30, 10 October 2007 (UTC)
-
- Wow. All this time on WikiPedia and I've never noticed that link! Thanks. MilkTaco 18:37, 10 October 2007 (UTC)
[edit] Go and Search buttons in Chick skin
Please excuse the cross posting -- not sure where this belongs.
The Go and Search buttons on the Chick skin spill over into the edit box (in which I am currently typing).
Could they be moved beneath the Search box (directly above the Toolbox label).
Robert Greer (talk) 14:01, 11 December 2007 (UTC)
[edit] Java Script
Is there a java script which allows you to see which user has been on your userpage and subpages. SKYNET X7000 (talk) 12:34, 16 December 2007 (UTC)
- Respond on my talk page if that's possible. SKYNET X7000 (talk) 17:08, 16 December 2007 (UTC)
[edit] Using Scripts on other wikis
Is it possible to use some of these scripts on other wikis? RT | Talk 22:19, 17 January 2008 (UTC)
- Yes, you can use the following code:
document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=Script_page' + '&action=raw&ctype=text/javascript"></scr' + 'ipt>');
- Replacing the yellow highlighted text with the text that's relevant to the script. Bear in mind, however, that scripts that contain references to en.wikipedia may not work correctly on other wikis. Also, if you're using some of the scripts on non-wikimedia wikis, they might rely on features such as the api which may not be installed. Tra (Talk) 22:31, 17 January 2008 (UTC)
[edit] Suggestion
I would like to suggest for someone to make user script that will add dropdown menu on edit toolbar (like on BG and HE wikis) with you can insert templates for infoboxes and other templates. SasaStefanovic • 09:26, 26 February 2008 (UTC)
[edit] Deprecate syntax highlighter and inclusion scripts
Wikipedia:WikiProject User scripts/Scripts/Syntax highlighter seems to be deprecated by the site's built-in highlighter now.
Also, the first part of Wikipedia:WikiProject User scripts/Scripts/Inclusion is mostly deprecated by importScript. I suppose the synchronization part could be, too?
The synchronization across wikis cannot be deprecated by importScript, nor can importScript deprecate the other inclusion script, simply because importScript does not exist on the other wikis.
Also, the reason why winc allows brackets inside the link
winc('[[User:SOMEONE/monobook.js]]'); /* Comment about what the script does */
Is because I had another script User:Omegatron/monobook.js/autolinker.js which turned bracketed text in the monobook.js display into links. I think this should be worked into something better that can be used by everyone. — Omegatron 01:46, 4 April 2008 (UTC)
[edit] Request for script
Simple English I see that there is a bilingual script that can display the interwiki pages side-by-side, and I had a similar idea for a Simple English option that displays the Simple version of a page if it exists. Maybe there is a tab on top of the page that switches to the Simple English or has a side-by-side comparison if [[Simple:*]] is present? Does that seem feasible? I don't know if anyone else is interested in that, but I would like it because I could see what really needs work on Simple and it would help me port over information from en.wp. Thanks. -Justin (koavf)❤T☮C☺M☯ 20:31, 8 April 2008 (UTC)
- Revised I have a slightly different take on it now, and I've uploaded a couple of mock-ups onto Flickr that indicate what I'm trying to say here (the differences in rounded tabs are a product of a style that I have on en.wp but not on simple.wp):
- Forget the necessity of an interwiki link and install this script on your en account and your simple account to go back-and-forth between the two. Does anyone think he can make that happen? Please post on my talk. -Justin (koavf)❤T☮C☺M☯ 00:32, 9 April 2008 (UTC)
Here's the en version:
addOnloadHook(function() { addPortletLink('p-cactions', 'http://simple.wikipedia.org/wiki/' + wgPageName, 'simple') });
And the simple version:
addOnloadHook(function() { addPortletLink('p-cactions', 'http://en.wikipedia.org/wiki/' + wgPageName, 'en') });
If you need any further modifications to the functionality please ask. GracenotesT § 01:53, 9 April 2008 (UTC)
- Wow Thanks so much, it looks like it's working great. I originally figured it would just be int he main namespace, but being in all of them is handy as well. -Justin (koavf)❤T☮C☺M☯ 02:22, 9 April 2008 (UTC)
[edit] Hide talk page templates script
I just wrote a script that hides all those annoying yellow talk page templates in a single collapsed table. I went ahead and added it to the list, though it does not work in Internet Explorer (I'm not sure why). Anyone who knows more about IE can check it out if you'd like. — Bob • (talk) • 00:46, 10 April 2008 (UTC)
- I think you should have tested it a bit more before publishsing. Anyway, it does seem to work in IE6, I don't have IE7 at the moment. However, it doesn't work with Preferences->Misc->"Enable "jump to" accessibility links" (extra <div id=jump-to-nav>), and I'm pretty sure it doesn't work in at least 3 skins. —AlexSm 02:02, 10 April 2008 (UTC)
[edit] Multiple scripts
Is adding a couple of scripts into one .js page going to screw up or should I create new .js pages for each script? --staka (T ・C) 23:38, 17 April 2008 (UTC)
- Multiple scripts on page are just fine. This even saves resources a bit when your browser requests them from the server (which usually happens once in several days, as far as I know). But remember if one script has an error, everything below will most likely stop working as well. —AlexSm 00:29, 18 April 2008 (UTC)