Wikipedia:WikiProject User scripts/Requests
Requests for new user scripts or help with modifications to existing user scripts can be placed on this page. Please look through the recently fulfilled requests, archived requests, and Wikipedia:WikiProject User scripts/Scripts to see if an existing script will fulfill your needs.
Add new requests to the bottom of the page. Please provide a detailed description of how you would like the script to operate to increase the likelihood of your request being answered.
If you are unable to find a request that you left on this page (or its predecessor at Wikipedia:WikiProject User scripts#Open requests), please look at Wikipedia:WikiProject User scripts/Fulfilled requests for recently fulfilled requests or Wikipedia:WikiProject User scripts/Fulfilled requests/Archive index for older fulfilled requests.
Add pages to shared watchlists
A one click way to add pages to shared watchlists, i.e. like the ones under Wikipedia:Watch in the same way as pages can be added to the private watchlist. JesseW 19:51, 18 August 2005 (UTC)
Add descriptions to pages on the private watchlist
A way to add descriptions to pages on the private watchlist. i.e. "watch for vandalism", "watch for replies to my comment", "watch until the end of December", etc. JesseW 19:51, 18 August 2005 (UTC)
Improved image upload box
Improved image upload box(see VP discussion for more details) JesseW 23:01, 24 August 2005 (UTC)
Highlight watched articles by category
A way to highlight articles on your watchlist which are in a specific category(in this case, Category:Proposed deletion) JesseW, the juggling janitor 07:58, 12 February 2006 (UTC)
Open unvisited watchlist diffs in tabs
A way to open up in tabs all diffs on one's watchlist that haven't been visited. I guess this would probably be a browser-specific thing, but I waste so much time just clicking on links to open up diffs on my watchlist, almost as much as I do checking! --maru (talk) contribs 05:24, 21 March 2006 (UTC)
Featured picture candidates nomination
A tool to help with nominating images for commons:COM:FPC, which at the moment is inordinately hard due to nesting of templates needed to allow multilingual versions of pages. In fact, anyone interested in developing stuff for the Commons would be very welcome to contact me. Thanks, pfctdayelise (translate?) 00:58, 1 April 2006 (UTC)
History of a single section of a page
This request is related to the one above about the watchlist. A way to only see the history for that section. It would be hard to search the whole page's history for one little change in one section. --GeorgeMoneyTalk Contribs 22:21, 21 April 2006 (UTC)
Add footnotes using dialog box
A script to aid adding footnotes. Computerjoe's talk 11:57, 30 April 2006 (UTC)
- That's rather vague... -rayluT 19:24, 30 April 2006 (UTC)
- A script which adds a button to allow footnotes to be added through a JS dialog box. Computerjoe's talk 15:58, 1 May 2006 (UTC)
- How about User:AndyZ/monobook.js/footnotehelper.js? As of now, it simplifies the process of creating web footnotes; I'll take care of the book footnotes later. Andy t 01:47, 10 June 2006 (UTC)
Universal "new messages" notification
A universal or global 'new messages' notification system (or in the simpler case: a Commons: 'new messages' notification system, that tells you on en.wp when you have new messages on the Commons). This is needed so that people are informed of image deletion warnings which are placed on their Commons talk pages. Also if the universal login is implemented, something like this would be super handy, although it hasn't been official proposed AFAIK. If en.wp's free uploads are RDRed to Commons (as mooted on wikien-l), we would really want this. Thanks. pfctdayelise (translate?) 11:37, 4 May 2006 (UTC)
- Scratch this: Brion has indicated it will be part of the universal login system. pfctdayelise (translate?) 02:53, 5 May 2006 (UTC)
- The ULS still is not implemented though. For the record. t is possible, check the last script in my monobook User:Voice of All/monobook.js, and you will find a cross-site XML request system and instructions. I use a similar code to check Commons images licenses and a normal XML request script to inform me of all admin backlogs just like new messages. What you are asking for could be created by merging those ideas and applying it to al relavent wikis (though you would have to be logged into them).Voice-of-All 20:17, 3 July 2006 (UTC)
Rename "edit this page" tab to "edit"
A way to turn the "edit this page" link to "edit". --GeorgeMoney (talk) 00:15, 6 May 2006 (UTC)
- I don't know if this is the best way to do it, but it works:
addOnloadHook(function(){ document.getElementById("ca-edit").firstChild.innerHTML = "edit";});
~MDD4696 02:44, 6 May 2006 (UTC)
- That doesn't work under my blue colgne skin. --maru (talk) contribs 04:18, 6 May 2006 (UTC)
- An equivalent script in Cologne Blue is significantly more complicated. ~MDD4696 00:18, 8 May 2006 (UTC)
- How about this: User:Ilmari Karonen/cologneblue/shorteditlinks.js? —Ilmari Karonen (talk) 16:09, 8 May 2006 (UTC).
- That works nicely, thank you. --maru (talk) contribs 04:30, 17 May 2006 (UTC)
- It works in monobook, but it seems to contradict with the popups script. --GeorgeMoneyTalk Contribs 04:33, 6 May 2006 (UTC)
- Can you indicate in what way it breaks? Shinobu 02:18, 13 December 2006 (UTC)
Copyvio helper script
This may well already exist, but I'd like a simple way to deal with copyvios. Specifically, I should be able to click one link which will open a tab (or tabs, if editing more than one page is needed) editing the relevant page, with a skeleton copyvio notice in there. Bonus points for being able to add the url easily. It'd also be nice to be able to notify the authors of the page of the listing by clicking links on the history page. Lupin|talk|popups 03:06, 6 June 2006 (UTC)
- Can you please clarify? Do you mean a way to easily tag copyvios and notify the contributors? GeorgeMoney (talk) 01:35, 8 October 2006 (UTC)
Watchlist watcher
Watchlist watcher: I want a function to blink the watchlist link (change it to color #FFCC00 my watchlist) at 20% duty cycle (250 ms on, then 1000 ms off) whenever a page on my watchlist has changed. The alert should reset whenever the watchlist is accessed. I know there's Lupin's anti-vandal tool (which I have actually changed to show the most recent edits first), but I want to patrol my watchlist while I'm reading Wikipedia. (The watched pages don't change before 15 minutes usually.) Invitatious 17:04, 9 June 2006 (UTC)
- I actually wrote a very similar script, but had to disable it again, because the developers removed the watchlist API access. (Apparently it was because the code that was handling the watchlist access server-side was putting its load onto the wrong server.) --ais523 11:50, 4 May 2007 (UTC)
Check copyright tag for all images in article
A way to check if every single image on an article has an image copyright tag, or if it is fair use if it has a fair use rationale. Andy t 01:27, 23 June 2006 (UTC)
Shortcut key for delete in classic skin
I'd like to know a way in the classic skin to make ctrl-/ a shortcut key for delete.Geni 00:14, 6 September 2006 (UTC)
- You can't. Keyboard shortcuts must be an ALT-? combination. So do you want ALT-/ (forward slash) to do the same action as clicking the "delete" tab? ~MDD4696 02:01, 6 September 2006 (UTC)
- it would be useful.Geni 10:31, 6 September 2006 (UTC)
- In monobook it would be:
ta['ca-delete'] = ['/', 'Delete page'];
but since I don't use Classic I'm not sure how well this would translate. [ælfəks] 08:52, 14 October 2006 (UTC)
- In monobook it would be:
Correct variations of "Weidenfeld & Nicolson" globally
I've noticed a lot of variation in the name of the publishers 'Weidenfeld & Nicolson' (which seems to be the correct version acc to http://www.orionbooks.co.uk/). (My own surname is Nicolson so I have had a lifetime's experience of deleting the h and indeed the occasional k.) No doubt Weidenfeld is subject to variations too. I'm sure there's some clever way of globally correcting any infelicities. Any suggestions or (better still) volunteers? roundhouse 15:25, 20 September 2006 (UTC)
- User scripts aren't really perfect for that sort of thing, as you would probably have to navigate manually to each page that needs fixing. If you can find a list of pages that need changing (e.g. by Wikipedia or Google search), it would certainly be possible to write a script that would make the change in one click. Another possibility would be to use AWB. --ais523 15:29, 20 September 2006 (UTC)
Wikitext syntax parser
Is there any javascript implementation of a reusable wikitext syntax parser? --Cameltrader 22:27, 6 October 2006 (UTC)
- You could have a look at live preview, and I've worked on something similar myself, but both are wikitext→HTML converters. I've been meaning to rewrite it in a generic parser, a grammar, and an HTML-generator, but I'm not sure whether I ever find the time to finish that. Still, have a look at live preview. Shinobu 02:00, 7 October 2006 (UTC)
- Yes, User:Pilaf/livepreview.js seems to be doing replacements with regular expressions to convert wikisource immediately to HTML, and I guess you are using a similar approach. MediaWiki's PHPs are doing that too. I'd imagine that some day we will all have a common parser producing an object model similar to DOM, but it's too much for me to do anything serious about it this weekend. --Cameltrader 08:06, 8 October 2006 (UTC)
Convert external links to <ref> tags
Is there any way to write a script that converts normal links in <ref> tags to use the {{cite web}} template? Anything would be appreciated. -- Selmo (talk) 21:44, 8 October 2006 (UTC)
- You could use one of the regex search tools to search for <ref>.*http:\/\/.*<\/ref> or something. But automatically replacing is very difficult considering the large differences in the way these are linked. Shinobu 23:14, 8 October 2006 (UTC)
Possible to fork Speller Pages?
Is it possible to fork this?
- That would be so cool! How is their hotlinking policy? Is it alright, or should we mirror? Shinobu 16:52, 27 October 2006 (UTC)
- It needs a server-side component, which would put too much a strain on the servers, and will be very hard to port to JavaScript. It won't happen. At least not any time soon. Try to find a browser plug-in with the same functionality. Shinobu 20:02, 1 November 2006 (UTC)
Tag articles with {{prod}}
How about a script for tagging articles for PROD? We have them for speedy deletes and AFDs, but not PROD. It'd be pretty useful, I think. ♠PMC♠ 20:16, 3 November 2006 (UTC)
- There's something on the tutorial similar to this.
function doprod() { var prompt=prompt("Reason for prod?"); document.editform.wpTextbox1.value = "{"+"{wikify|"+prompt+"}}\n\n" + document.editform.wpTextbox1.value; document.editform.submit(); }
- Then call it with addToolbox link, or something like that. Z388 13:50, 4 November 2006 (UTC)
- Call it? I'm sorry, you've already lost me. I have no head for code at all. I don't know how to do that. ♠PMC♠ 06:20, 5 November 2006 (UTC)
- He means "put it in the toolbox using the little script to be found here", like:
addToolboxLink("javascript:void doprod();", "Some informative caption");
- Perhaps you may think you "have no head for code", but JavaScript doesn't need to be difficult. It can be, if you wish, but it doesn't need to be. Shinobu 02:12, 13 December 2006 (UTC)
- He means "put it in the toolbox using the little script to be found here", like:
Automatic imagecopyvio script
I'd like an automatic imagecopyvio script, could be adapted from autocopyvio with a few simple additions and tweaks, such as adding user talk page notification, there isn't much work. I tried to modify it but failed. See User:Mecu/imagevio.js. --MECU≈talk 23:01, 30 December 2006 (UTC)
Automatically watchlist article of the day
I don't know if this is possible, but I'd like a script that automatically adds the article of the day to my watchlist, so I can revert vandalism there. If this is not possible, then perhaps something in the toolbox that says "add AOTD to watchlist" or something of the like. I'd appreciate any help, as I am a completly incompetent when it comes to scripts. Thanks! | AndonicO Talk · Sign Here 17:05, 25 January 2007 (UTC)
- Doing it automatically would be incredibly difficult to keep track of, so instead I've made it a toolbox link (per your second choice). Does User:ais523/watchTFA.js do what you want? --ais523 18:02, 25 January 2007 (UTC)
- It's fine, but it seems to have an error. It says "Not Found". | AndonicO Talk · Sign Here 18:19, 25 January 2007 (UTC)
Highlight the character "g" in IPA tags
I'd like a script to search pages for {{IPA}} tags containing the character "g" [U+0067] and hilight it in red so that I know it's wrong and needs to be replaced with "ɡ" [U+0261] - they look identical in the font I use for IPA, but not so much in other fonts. Plus, such a script once written could be adapted to deal with other subtle textual errors. —Random832(tc) 04:30, 1 February 2007 (UTC)
- I've had a go at this one: User:Mike Dillon/Scripts/highlightNonIPA.js. It highlights all non-IPA characters in an IPA block in a golden color. It also allows "[", "/", "<", ",", and a few other punctuation characters. It correctly highlights "g". It probably needs some tweaking to determine what should and shouldn't be highlighted, but I think it's a good start. One area I didn't look at too much was pre-combined characters with diacritics. In particular, I was hesitant to add vowels with macrons for pre-combined tone marks since I'd be afraid that they are incorrect transcriptions of long vowels more often than not. Mike Dillon 19:29, 5 May 2007 (UTC)
Determining canonical namespace names
How do I obtain the canonical name of the Category (or any other) namespace? I need this in order to modify some scripts for cross-project usage.--DStoykov 17:31, 15 February 2007 (UTC)
- The namespace list for any wiki can be found at http://en.wikipedia.org/w/query.php?what=namespaces (obviously change the en.wikipedia.org part for other wikis). The Category namespace is 14 in the list. You can change the format as described in http://en.wikipedia.org/w/query.php to something useful for the script (such as XML); the main problem is trying to access that page. You might want to see a script like User:ais523/contribcalendar.js for a guide as to how to access query.php from a user script. (I copied the code for doing that off someone else, as it happens; it's hard to get it to work in both FireFox and IE without seeing how it's done first.) --ais523 17:48, 15 February 2007 (UTC)
Revert counter
I would like a counter somewhere that counts the number of reverts you have done in 24 hours, coz i've just been a bit revert happy, and nearly broken the 3RR reverting vandalism. If it wasn't for other users getting there first and partly User:Lupin's script, I would have broken a ten revert rule! The counter should just be visible, so i can just look and see how many reverts I have done, so I do not actually break the 3RR. Thanks in advance. Stwalkerster 21:36, 9 March 2007 (UTC)
- 3RR only applies to legitimate edits. You can revert vandalism as many times as you like. Tra (Talk) 21:40, 9 March 2007 (UTC)
Alter tab names in quickbar
A little earlier someone posted a script to alter the linknames for the quickbar at the top. Is there an easy script to alter tab names too? - Mgm|(talk) 17:40, 15 April 2007 (UTC)
- It's a one-liner; this example is for the ca-edit tab, changing what it says to 'edit'.
addOnloadHook(function() {document.getElementById('ca-edit').firstChild.innerHTML = 'edit';});
- There is absolutely no difference between "link" and "tabs" on the top and on the left. The same code can be used, only ids should be changed. As for one-liner, it will result in error on the pages without 'ca-edit' (like history or watchlist), possibly stopping some other scripts from working. — Alex Smotrov 19:43, 16 April 2007 (UTC)
WP:PUI helper script
How about a script to aid in the WP:PUI process, namely:
- (From an image page)
- Tag the image with a {{PUIdisputed}} or {{PUInonfree}} (possibly from a tab that is only visible on a page in the Image: namespace.)
- Pop-up a window for the uploader of this image, and add {{subst:idw-pui|Image:filename.ext}} to the bottom of the User talk page.
- Pop-up a second window with Wikipedia:Possibly unfree images, and place at the bottom of the page [[:Image:filename.ext]] - <!-- insert reason here --> ~~~~
- (It'd be great too if the "reason" that was inserted could be a pop-up text entry box.)
If this already exists, please let me know so I can start using it! And if not, I'd appreciate your help with it. The whole process is really time-consuming, and I feel that a lot of unfree images are being used because people don't have the patience to make all these edits. Thanks! tiZom(2¢) 19:51, 16 April 2007 (UTC)
- Perhaps rather than opening a new window, the edits can be manually approved on the image page and then made with Ajax? Gah... now we're turning into Google Web Development... (at least I am) It's possible, though. What does anyone else think about going about this? GracenotesT § 01:20, 18 April 2007 (UTC)
- It's certainly possible. Wouldn't AJAX saving script always win edit conflicts though? ;) — Alex Smotrov 23:00, 18 April 2007 (UTC)
Post a random smiley to a random user
Could someone make me a script that posts a random smiley to a random user all in one go? For more information on what I mean, see WP:BOTREQ#Smiling Bot, at the very bottom, specefically. ♠TomasBat (@)(Contribs)(Sign!) 20:34, 17 April 2007 (UTC)
- I'm dealing with this on the user's talk page (this is something of a niche request anyway, and it probably isn't appropriate for the scripts list due to the havoc this might cause if overused, and given its nature it'll probably spread by talkpage spam anyway). --ais523 14:51, 18 April 2007 (UTC)
"New pages" link in "interaction" portlet
Could someone make a script that would add a link to Special:NewPages to the "interaction" box on the side of the page? Mr.Z-mantalk¢ 22:44, 22 April 2007 (UTC)
- This should work:
addOnloadHook(function () { addPortletLink("p-interaction", wgArticlePath.replace(/\$1/, 'Special:Newpages'), "New pages", "n-newpages", "View a list of recently created pages"); });
- Be aware that changes have been made in the recent past to MediaWiki:Sidebar that could break this in the future. Particularly, the id for p-interaction could change. I've attempted to get some interest in addressing this issue at MediaWiki talk:Sidebar and Wikipedia:Village pump (technical), but there has been zero response to my dismay. Mike Dillon 23:34, 22 April 2007 (UTC)
- Yep, that works great. Thanks! Mr.Z-mantalk¢ 00:10, 23 April 2007 (UTC)
Pre-defined edit summary drop-down
I would be really glad about a script that creates a drop-down menu over the edit summary line. From that menu you should be able to choose some pre-defined edit summaries. Reason: Doing stupid tasks sometimes require extensive summaries in order to avoid confusion among others. Furthermore, it is simply nice to have kind of "standardized" summaries for always the same task. The summaries in the menu should be definable in the monobook. — Pill (talk) 18:22, 30 April 2007 (UTC)
- IIRC wikEd (User:Cacycle/wikEd) does something like this (among many other things), but it's probably overkill for such a simple task. Maybe the relevant part of the code could be made into a separate script? --ais523 10:40, 1 May 2007 (UTC)
- There's no more simple variant? — Pill (talk) 22:17, 5 May 2007 (UTC)
- Well, I have a feeling that either me or Mike Dillon will eventually write this script. Remind me in a week if that doesn't happen. — Alex Smotrov 00:44, 6 May 2007 (UTC)
- There's no more simple variant? — Pill (talk) 22:17, 5 May 2007 (UTC)
This might work for you. Mike Dillon 04:02, 8 May 2007 (UTC)
var predefinedSummaries = { "stuff": "Doing stuff", "things": "Doing things" }; addOnloadHook(function () { var summary = document.getElementById("wpSummary"); if (!summary) return; var dropdown = document.createElement("select"); dropdown.style.width = "15%"; for (var label in predefinedSummaries) { var option = document.createElement("option"); option.setAttribute("value", predefinedSummaries[label]); option.appendChild(document.createTextNode(label)); dropdown.appendChild(option); } dropdown.onchange = function () { summary.value = summary.value.replace(/(\/\*.*?\*\/\s+)?.*/, "$1" + dropdown.options[dropdown.selectedIndex].value); }; summary.parentNode.insertBefore(dropdown, summary.nextSibling); });
Auto link
Can you create a script that makes it so that when you type in [[User:example]] or something of the like, it turns it into Example user without having to type the "|Example User" in. Sincerely, Sir intellegent - smartr tahn eaver!!!! 22:08, 4 May 2007 (UTC)
- Do you always say Example user, wouldn't [[User:Example|]] which produces Example be enough? — Alex Smotrov 22:19, 4 May 2007 (UTC)
Templates in edit toolbar
Something like this:
Templates
Cleanup |
Software Taxobox Book |
Choosing "Software", could add to edit box:
{{Infobox Software | name = | logo = | screenshot = | caption = | author = | developer = | released = | latest release version = | latest release date = | latest preview version = | latest preview date = | operating system = | platform = | language = | status = | genre = | license = | website = }}
It's just an example. Is this possible? Mosca2 09:15, 12 May 2007 (UTC)
Voting script
It would be really usefull if there was a script that added three extra buttons to the toolbar, one for a support, oppose, and neutral vote respectively, maybe something like this:
Seeing as voting is an essential part of Wikipedia, this could also standartise the procedure and save time. If someone doesn't want to leave a comment, he simply removes the ''Comment'' part. Thanks. —May the Edit be with you, always. (T-borg) (drop me a line) 21:15, 13 May 2007 (UTC)
if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "/media/wikipedia/commons/b/ba/Button_conserver.png", "speedTip": "Support", "tagOpen": "*[[Image:Symbol support vote.svg|15px]] \'\'\'Support\'\'\'. ", "tagClose": " ~~~~", "sampleText": "\'\'comment\'\'"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "/media/wikipedia/commons/f/fc/Button_supp.png", "speedTip": "Oppose", "tagOpen": "*[[Image:Symbol oppose vote.svg|15px]] \'\'\'Oppose\'\'\'. ", "tagClose": " ~~~~", "sampleText": "\'\'comment\'\'"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "/media/wikipedia/commons/4/4e/Button_neutre.png", "speedTip": "Neutral", "tagOpen": "*[[Image:Symbol neutral vote.svg|15px]] \'\'\'Neutral\'\'\'. ", "tagClose": " ~~~~", "sampleText": "\'\'comment\'\'"}; }
- Hint: you can probably also put in some simple logic to only trigger it on voting pages (if it were established site-wide). --Splarka (rant) 07:25, 14 May 2007 (UTC)
- A script such as this would run counter to guidelines here on the English Wikipedia: see WP:!VOTE. Generally speaking, decisions should be made via consensus rather than voting. Templates showing
Support and similar have been deleted several times at TfD for such reasons (e.g. see Template:Support's deletion log, which dates back to June 2005). There was a standalone program to do something like this called 'WikiVoter', but there was a backlash against it (people assumed that the name implied that it did nothing but add votes), and it was renamed WikiDiscussion Manager. This script appears to be something that does simply add votes, so I would recommend not using it. --ais523 07:49, 14 May 2007 (UTC)
- A script such as this would run counter to guidelines here on the English Wikipedia: see WP:!VOTE. Generally speaking, decisions should be made via consensus rather than voting. Templates showing
I see. Thanks for clearing things up. —May the Edit be with you, always. (T-borg) (drop me a line) 07:52, 14 May 2007 (UTC)
RC birds
What about a script version of RC birds that runs in the background, while still having controls in the form of a user subpage.