Wikipedia:User scripts/Requests

User script requests

Post your user script-related request or idea for a new user script (or gadget) as a new section below. Discussion in each section is encouraged. Note that most gadgets started out as mere user scripts. This page is intended for new user scripts, which affect the appearance of the site and may add additional functionality. Fully automated bots should be requested at Wikipedia:Bot requests instead.

All user script-related requests are welcome, whether they be for assistance writing an existing user script, desire for a new user script that does what you want, etc. Ideas for new user scripts are welcome too!

Before you request a script, please make sure it does not already exist. For a list a user scripts, see this list.

If you have been helped, please let us know, so that we may archive the request.

Some ideasEdit

Some ideas copied from User:Enterprisey/Dashboard. If you make one of these scripts, strike the entry and add a link to your script.

Still not done?
  • A user script to display the same info as PleaseStand's script, but in a very compact way so it doesn't cause reflow when the info shows up - also incrementally showing the data as API responses get back would be cool
  • A user script to expand a diff until it covers all contiguous edits made by that user (if a user made three consecutive edits and you view the diff of the middle, pressing a button should expand it to cover all three) (L235 suggestion)
  • A user script to give you a browser push notification when you get a Wikipedia notification
  • A user script so that whenever you go directly to a section, the section gets floated so that the header gets locked to the top of the screen. This will theoretically prevent the text from jumping around as the rest of the pages load. Now, the hard part is making sure that this script runs before the rest of the stuff making it jump around.
  • A user script to quickly switch between tabs, on pages that have tabs at the top (WikiProjects, village pumps, etc)
  • A user script to make stuff clickable in diffs. (Section headers, line numbers, etc.)
  • A user script to highlight which content (in the HTML) comes from which template (suggested by MusikAnimal over IRC 23:18, 7 January 2019 (UTC))
  • A user script to say where a given template is being used. How to do it: call the Extension:TemplateSandbox endpoint (the one that gets hit when you do the "Preview page with this template" text field on a template edit page) with the wikitext of that template (but with a yellow border), and previewing the current page.
  • A user script that provides a button to mark all reverts (i.e. pages displayed with an edit summary that includes the word "reverted") as "visited" in the watchlist (suggested by Natureium)
  • A user script to automatically add unsigned/undated templates
  • A user script to show a pop-up section preview when you hover over its TOC link
  • A user script to put the current AIV count in your toolbar, Stack Overflow mod style.
  • Holding down CTRL lets you click into any template or link in the edit window
  • A user script to move discussions
  • A user script to hyperlink "per X" to the last comment X made
  • Edit just one section w/ "true" (no server-roundtrip) live preview
  • Minimap for big diffs
  • A user script that removes newsletters and other recurring messages while viewing a talk page
  • There should be a way to jump directly to a user's comment from the history page (or, more broadly, if a diff consists of just a few lines being added in one place, to jump directly to those new lines instead of just to the top of the section). Implementation notes: Parallel fetch diff (mw:Api:Compare) and current wikitext, then split the wikitext by lines, go from the line number (from the diff HTML) to a string index into the wikitext, add a sentinel marker at that point, run it through Parsoid, find the sentinel, go up in the MediaWiki DOM to highest "paragraph" (or list element, for discussions), obtain the start and end string indices of the added region in the paragraph, pack up the (section header, paragraph index, start idx, end idx), reload the page with that 4-tuple in window.location.hash, and do the jump.
  • Replace page titles in watchlist & user contribs pages w/ their shortcuts for readability

  • Make a user script that is bound to a keyboard shortcut and pops up a modal where you can type a section header on the current page (auto-completed, of course) and jump to it User:TheTVExpert/searchForSection
  • A user script to unify the "Alerts" and "Notices" icons (might not even be possible, but it would be cool if it happened) (see screenshots for the old icon with no notifications and one notification) User:Enterprisey/simple-notifs
    • The API supports getting alerts and notification at once, completely possible.BrandonXLF (talk) 20:03, 18 December 2019 (UTC)
  • A script that puts a tab at the top of user script pages & user script documentation pages, to allow switching between them User:TheTVExpert/scriptDocumentationTabs
  • A user script that takes an oldid and takes you to the deleted revision (idea was L235's, I think) User:Enterprisey/link-deleted-revs
  • A user script so that whenever you click on a "hist" link in a user contribs page, the resulting page history highlights all contributions by that user (also has form on history page to perform such highlighting) (link)
  • A user script to make a single section edit, without reloading the whole page (shoutout to Gryllida for the idea)
  • A user script that redirects accidental navigation to 404's ending in a slash (say, Foo/) to the normal page (Foo)
  • In diffs, show previews for both the old and new versions (with anchors to allow jumping)
  • A link at the end of every comment to the diff in which it was added. Needs some thought about how to make this as efficient as possible.

GUYWAN ( t · c ) 19:33, 5 December 2019 (UTC)

Request for a source-finderEdit

Can someone possibly make a script that adds {{Find sources mainspace}} (The template itself is "Find sources: "Requests" – news · newspapers · books · scholar · JSTOR") on each page when editing? Or is there already a script for this? Please keep me updated!   dibbydib 💬/ 06:26, 12 December 2019 (UTC)

Dibbydib, does User:BrandonXLF/FindSources.js work? BrandonXLF (talk) 21:56, 13 December 2019 (UTC
User:Enterprisey/quick-before might also be useful for this. Enterprisey (talk!) 06:51, 4 July 2020 (UTC)

Live reloadEdit

Is there a user script that uses AJAX to refresh a history/contributions/log page/watchlist/etc at regular intervals? Ideally it would also put the number of new events since the last visit in the browser tab title. I am aware of scripts that do this for just the watchlist, but they don't do the other things I mentioned. Enterprisey (talk!) 21:11, 30 April 2020 (UTC)

User:Enterprisey/live-reload. Enterprisey (talk!) 06:47, 4 July 2020 (UTC)

Automatically watch every visited pageEdit

Thanks. Apokrif (talk) 00:44, 9 May 2020 (UTC)

@Apokrif: Are you sure? You'd very soon end up with a massive watchlist if you tend to visit a lot of pages. If you really want to do this, add this line to your common.js page:
mw.loader.using('mediawiki.api').then(function() { new mw.Api().watch(mw.config.get('wgPageName')); });
SD0001 (talk) 17:50, 21 August 2020 (UTC)

Request for "Gender display" gadgetEdit

At CaptainEek's RfA there are quite some grievances about misidentifying a user's gender as male. There has been issues of this all over the place, (perhaps) the most recent was less than a week ago (Wikipedia:Administrators'_noticeboard/IncidentArchive1035#Misgendering_by_Flyer22_Frozen). I believe it would be a good idea to show a small "he/she/they" text after each username. Eumat114 formerly TLOM (Message) 02:11, 12 May 2020 (UTC)

WP:POPUPS does show gender on its preview of a username. Galobtter (pingó mió) 03:28, 12 May 2020 (UTC)
Galobtter, that script shows way too much extra info, and also requires hovering. Could a script that displays it right next to the username/signature be used (e.g. "Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC) [he]")? Cheers, Eumat114 formerly TLOM (Message) 04:06, 12 May 2020 (UTC)
Hmm, I could see a script working technically similar to MediaWiki:Gadget-markblocked.js in that it collects all the users on the page and uses a query to mw:API:Users to collect the gender information. Galobtter (pingó mió) 04:51, 12 May 2020 (UTC)
@Eumat114:   Done User:BrandonXLF/ShowUserGender.jsBrandonXLF (talk) 08:40, 12 May 2020 (UTC)

Why not always write "they"? Users' gender is irrelevant. Apokrif (talk) 13:03, 17 July 2020 (UTC)

Link ISBN direct to WorldCatEdit

Hi, is there a script in existence that, when an {{ISBN}} is linked within a CS1 citation, will link directly to the WorldCat search/address instead of Special:BookSources? czar 15:18, 25 May 2020 (UTC)

Navbox user scriptEdit

I frequently go through the hassle of filling in navboxes, using subgroups etc. I expected there to be a user script to fill them in but I wasn't able to find one. It would certainly be very useful! — Yours, Berrely • TalkContribs 19:46, 28 May 2020 (UTC)

Eswatini vs. Swaziland sortkeysEdit


The country of Swaziland changed its name to Eswatini in 2018. Nearly all Wikipedia articles and categories that needed renaming have been moved to the new name, see e.g. Wikipedia:Categories for discussion/Log/2018 November 5 § Swaziland.

However, I noticed that this renaming may have left sortkeys that need correction. E.g. I found Category:Wealth in Eswatini in Category:Wealth by country and Category:Wealth in Africa with sortkey Swaziland, which left Eswatini in sequence between Sri Lanka and Sweden. I corrected them manually to Eswatini.

Is there a way to find all such sortkeys and have them corrected by a bot? That's how I would do it:

  • Look for every article or category that has Eswatini as part of its name
  • Look for category sortkey (found by [[Category:<whatever>|<sortkey>]], sometimes small-case category) or defaultsort ({{DEFAULTSORT:<sortkey>}}):
    • If exactly Swaziland or a prefix (such as Sw or Swaz, except just the letter S), replace by Eswatini exactly
    • If a longer sortkey includes Swaziland, not necessarily in the beginning (such as Swaziland, Economy of or Economy of Swaziland)
    • For sortkeys that are exactly the letter S (and we know that such sortkeys are found quite often), create a list of such occurrences for later manual treatment.

I think it's pretty safe to replace all the cases I have listed because we limit ourselves to titles that have been renamed to a name explicitly including Eswatini, so we would not affect content such as Category:Treaties extended to Swaziland (protectorate), for which Eswatini is anachronical, or Times of Swaziland, which is a proper noun. I think other namespaces (such as Template:) may be better left out for manual action.

Is there any bot master able to fulfill this request? Place Clichy (talk) 10:32, 29 May 2020 (UTC)

Place Clichy, I made a little script to do them, they should all be fixed now. BrandonXLF (talk) 06:49, 3 June 2020 (UTC)
@BrandonXLF: thanks, this looks very good! Were you by any chance able to look up partial prefix matches (such as |Swazi), even just to build a list that I could manually take care of later? Place Clichy (talk) 08:26, 3 June 2020 (UTC)
@BrandonXLF: Do you see any reason why e.g. Category:Immigrants to Eswatini was missed? Place Clichy (talk) 00:56, 14 June 2020 (UTC)
Place Clichy, because it's a category, I didn't have the namespace selected to search, my bad. There seems to be at least 382 categories that need fixing, see [1] and [2]. BrandonXLF (talk) 02:48, 14 June 2020 (UTC)

OneClickArchiver for listsEdit

Scripts listed in Wikipedia:One click archiving implement archiving of whole ==sections==. To make archiving of entries at Wikipedia:Community bulletin board easier, it would be nice to have a OneClickArchiver for * Unordered lists. Pinging Sm8900, who might be interested in such a script. —⁠andrybak (talk) 00:33, 3 June 2020 (UTC)

Script to display the current time in the upper right cornerEdit

There's a gadget that does this but it's only for UTC, I'd like one for the actual current time. I searched, couldn't find one. Thanks. Doug Weller talk 10:19, 6 June 2020 (UTC)

Wouldn't your phone/desktop/etc... already show this information? Headbomb {t · c · p · b} 13:51, 6 June 2020 (UTC)
@Headbomb: well yes, I only thought of suggesting this because of the gadget in preferences - which I presume some people find useful. It's much bigger than the tiny time on my desktop which I find hard to read. But I guess not worth writing. I can also check the time on my phone, watch, and when it decides to allow me to see its screen, my Fitbit Charge 3 - but none of them while I'm typing! Never mind though, I was really hoping someone would say it exists and that I'd missed it while searching for one. Doug Weller talk 17:50, 6 June 2020 (UTC)
Wikipedia:Code review/UTCLiveClock is under development. – Jonesey95 (talk) 18:38, 6 June 2020 (UTC)
@Doug Weller: Now done at mw:MediaWiki:Gadget-UTCLiveClock.js. To use, enable the gadget, then add window.LiveClockTimeZone = 'America/Los_Angeles';, replacing "America/Los_Angeles" with the appropriate tz database name from this table. Cheers, --Mdaniels5757 (talk) 22:12, 2 August 2020 (UTC)
@Mdaniels5757: brilliant, just what I wanted! Thanks. Doug Weller talk 15:04, 3 August 2020 (UTC)

Introduction helperEdit

Following up on discussion with Sdkb for a sandbox option. Currently they are using a link such as this one. I'm looking at ditching the random number part - but would want the button to have a link with a script (from ?withJS=) that will:

  1. Wait for the page to load in editing mode
  2. Clear the entire editing box
  3. Populate the editing box with some text (a template subst)
  4. Add an edit summary
  5. Possibly submit the edit as well; understand that the script would need to be in mediawiki ns. Example of another button that include a script: Wikipedia:Dispute resolution noticeboard/request.

xaosflux Talk 16:19, 27 June 2020 (UTC)

Should be doable - will work on this in the next few days if no one beats me to it DannyS712 (talk) 21:02, 27 June 2020 (UTC)
So I took a crack at it, and the existence of codemirror and wikieditor make it a lot harder than I thought, sorry DannyS712 (talk) 06:15, 28 June 2020 (UTC)
@DannyS712: will ditching the publish/submit help? Would be fine to have a dif script for vedit/srcedit. — xaosflux Talk 12:32, 28 June 2020 (UTC)
The issue is trying to select and manipulate the content of the textbox - preload only works for new pages / new sections, unfortunately. That being said, if it would always be a specific page I have an idea - can you provide an example page and the content that should be on it? DannyS712 (talk) 12:36, 28 June 2020 (UTC)
@DannyS712: the destination would be fixed, and so would the content - so "preload" can be ditched. Preferably the page could be specified with a link, to be an arbitrary page, so to make the requirements a bit simpler:
  1. Be able to follow a edit or vedit links such as these:
    1. 1
    2. 2
  2. After the page loads, in the respective edit mode:
    1. Clear the entire page
    2. Drop some static text (hard coded in script) in to the edit summary
    3. Drop some static text (hard coded in script) in to the editor
  3. Optional if needed: For the visual editor mode, if it has to start in traditional editor, do the work, then use JS to switch to vedit that could be OK.
xaosflux Talk 15:31, 28 June 2020 (UTC)
I meant can you link to a specific revision with the text you want? Because then you can have the user edit that permalink, and the text will already be set DannyS712 (talk) 15:34, 28 June 2020 (UTC)
Hmm, that may work too - scriptless at least. — xaosflux Talk 16:18, 28 June 2020 (UTC)
@Sdkb: going on that, if you just want an "empty" sandbox - or even one with some content that can be edited, would revision edit links solve your use case as well? example source edit link that could be used. — xaosflux Talk 16:20, 28 June 2020 (UTC)

Section sub-headings "outdent"Edit

I'd like to have a tool to help with removing levels of sub-sections. For example, to delete a second-level heading, and have all the headings underneath it be automatically promoted or "outdented" one level. All the third-level headings would become second-level, fourth become third, and so on.

(The reverse might also be helpful, though I don't have a need for it myself, but if you add a second-level heading, then selected headings below it could be automatically indented. This would be more complicated, because you'd need a mechanism to select the ones to indent. So I'm not actually requesting this part...) --IamNotU (talk) 21:51, 20 July 2020 (UTC)

Script for desktop viewEdit

Hi, Can such a script be created which removes word m from mobile site and loads (changes) mobile site into desktop site. For example to and also load page as in desktop site. Thank you. Empire AS Talk! 11:39, 31 July 2020 (UTC)

(User appears to have found the NeverUseMobileVersion script and configured it correctly now. I do think a Phabricator ticket should be opened to have this functionality available in Preferences) – Thjarkur (talk) 13:47, 31 July 2020 (UTC)

Automate adding 'connected contributor' and 'connected contributor (paid)' templates to article talk pagesEdit

During AfC reviews, most days I come across editors who have declared a connection on their user page but there's no corresponding declaration on the article talk page. In those cases I add a connected contributor or connected contributor (paid) template to the appropriate talk page. The problem is that this is time consuming, particularly to remember what each parameter is called, getting the capitalisation right, adding a wikilink to the declaration on the user's user page or in a diff, etc.

It would be great to have a script that does this for us. It could provide a drop-down of the editors from the article history, and it could identify the diff of the declaration. — Preceding unsigned comment added by Curb Safe Charmer (talkcontribs) 14:27, 7 August 2020 (UTC)

+1 —valereee (talk) 14:27, 8 December 2020 (UTC)

Removing a template and its associated parametersEdit

I would like to have a script that can be used to remove the usage of Persondata. I know that it has been removed from enwiki, but I need to remove the same from mlwiki. Adithyak1997 (talk) 17:13, 15 August 2020 (UTC)

Show SD scriptEdit

I would like to propose a script that would place a button on all category pages labeled Show SD. If pressed, the category page would be replaced by a single column listing that included each article's short description, if it has one, next to the article name.

While short descriptions are primarily intended for the mobile version of Wikipedia, having a script like this would make them valuable in the desktop version as well. The script would be useful for editors who are maintaining short descriptions as it would allow them to easily review pages in categories to check for inconsistency, missing descriptions and possible vandalism. For general users, the script would be valuable when viewing categories whose article names tell little about content of the article. Examples include categories of industrial standards, mathematical theorems (which are typically named after mathematicians), military equipment, and other similarly opaque categories.

The script would only have to encapsulate article names in the template. I have created examples of what such a page might look like in my sandbox at:

The single index letters are easily detected and output as: * ’’’X’’’

As a first cut, the Subcategories section would be shown unmodified, as categories themselves do not currently have useful short descriptions. An extra credit feature, perhaps for a second version, might be checking if a category name matches an article space name and if so, showing the article space short description. Another extra credit feature would be flagging short descriptions that are longer than 90 characters (the suggested maximum size), perhaps by showing the length next to the short description. Any help appreciated.--agr (talk) 18:41, 19 August 2020 (UTC)

ArnoldReinhold, this is an interesting idea. You might want to specify whether the script should show the Wikidata short description, and under what conditions. For example, should it show only a local description if it exists, and otherwise display to the Wikidata description? Should it show both descriptions? – Jonesey95 (talk) 19:17, 19 August 2020 (UTC)
Jonesey95 Good question. I'm inclined to stick with what the annotated link template shows, which is just the local description (bases on my experiments). As I understand it, per Wikipedia:Short description#History, the way things happened was that the Wikimedia Foundation decided to use the WikiData short descriptions in the mobile app and the Wikipedia community was concerned about content being displayed under the Wikipedia brand that was not subject to our quality checks. As a result, local short descriptions were added that are part of the normal Wikipedia edit process. So I think the conservative thing for now is to stick with the local description. I would, however, add a hatnote to category pages with Show SD enabled that reads something like: "To view and edit the short descriptions on individual articles in the desktop edition, you should enable the Shortdesc helper under Gadgets in your Wikipedia Preferences." Then complying readers who see a listed article is missing a short description can click on that article and they will see the Wikidata SD if it exists and import or edit it if they wish. I don't think creating an editing mechanism within the category page itself would be wise and the possibility of updating Wikidata to reflect local SD is way beyond my pay grade.--agr (talk) 19:21, 20 August 2020 (UTC)
  Doing... SD0001 (talk) 15:51, 21 August 2020 (UTC)
  Done see User:SD0001/cat-all-shortdescs.js. Colour code is: local shortdescs in black, wikidata descs in pink and red colour if neither is present. SD0001 (talk) 16:42, 21 August 2020 (UTC)

Mode Marker scriptEdit

The following two citations emit various classes depending on if they are WP:CS1 or WP:CS2 style.

  • Tansman, Alan (1998). "History, Repetition, and Freedom in the Narratives of Nakagami Kenji". Journal of Japanese Studies. 24 (2): 257–288. doi:10.2307/133235. JSTOR 133235.
  • Tansman, Alan (1998), "History, Repetition, and Freedom in the Narratives of Nakagami Kenji", Journal of Japanese Studies, 24 (2): 257–288, doi:10.2307/133235, JSTOR 133235

Namely, <cite class="citation journal cs1"> for the first, and <cite class="citation journal cs2"> for the second.

I want a script that would highlight which is CS1, and which is CS2. Possibly presenting this as

  • Tansman, Alan (1998). "History, Repetition, and Freedom in the Narratives of Nakagami Kenji". Journal of Japanese Studies. 24 (2): 257–288. doi:10.2307/133235. JSTOR 133235. CS1
  • Tansman, Alan (1998), "History, Repetition, and Freedom in the Narratives of Nakagami Kenji", Journal of Japanese Studies, 24 (2): 257–288, doi:10.2307/133235, JSTOR 133235 CS2

This would be very useful when reviewing and gnoming various reference lists to highlight consistency issues. Headbomb {t · c · p · b} 21:31, 25 August 2020 (UTC)

  • Pinging @David Eppstein: on this, since that's something you care about. Headbomb {t · c · p · b} 21:32, 25 August 2020 (UTC)
    • Agree, I would also find such a script useful. Preferably as a sidebar userscript button rather than a script that would run on every page I view, though. —David Eppstein (talk) 21:35, 25 August 2020 (UTC)
      • I'd prefer always on since the point would be to notice things that needs fixing, but an optional 'elective' mode à la User:Galobtter/scripts/prosesize.js would be good too if it can be implemented. Or two scripts made. Headbomb {t · c · p · b} 21:39, 25 August 2020 (UTC)
        • I've created User:BrandonXLF/CitationStyleMarker.js. It allows you to have it always enabled by including the JS window.CSMarkerMode = 'always';, this will not show the toggle. You can show the toggle and enable it by default by using window.CSMarkerMode = 'enabled'; and you can show the toggle and have it disabled by default by using window.CSMarkerMode = 'disabled';. — Preceding unsigned comment added by BrandonXLF (talkcontribs)
          • Re: Would you mind putting those instructions at User:BrandonXLF/CitationStyleMarker so future users can find them? I would also suggest a default behaviour (always on), that can be overridden, because currently simply doing this doesn't work, which means it won't work with most script installers. Headbomb {t · c · p · b} 22:14, 25 August 2020 (UTC)
            • As for variables, how to use them is... not obvious if you don't know JS. Headbomb {t · c · p · b} 22:18, 25 August 2020 (UTC)
              • Headbomb, added the instructions and you added an extra period when loading the script, making it so the script doesn't load. BrandonXLF (talk) 22:19, 25 August 2020 (UTC)
Yeah, I just noticed. Still unclear about how to set variables though. Headbomb {t · c · p · b} 22:20, 25 August 2020 (UTC)
I added some instructions, I think they're clear enough, but let me know if you have any feedback. BrandonXLF (talk) 22:27, 25 August 2020 (UTC)

Yeah better. I figured it on my own initially, but the 'toggle' with 'always' variable document led me astray for a little bit. So I fixed it here, I think. Feel free to tweak/revert if my edits were off. Headbomb {t · c · p · b} 22:27, 25 August 2020 (UTC)

I meant to write 'without a toggle' for the 'always' variable, sorry about that BrandonXLF (talk) 22:31, 25 August 2020 (UTC)
After using it a bit, would there be a way to have things display only when both CS1/2 are present? Because that's when things really are relevant. And that could be the default. Headbomb {t · c · p · b} 22:42, 25 August 2020 (UTC)
It would also be good to restrict default behaviour to Mainspace and Draft space, because seeing this on talk pages is rather irrelevant usually. Headbomb {t · c · p · b} 23:02, 25 August 2020 (UTC)
@BrandonXLF: ? Headbomb {t · c · p · b} 18:52, 28 August 2020 (UTC)
Headbomb, I added a "both" mode that will enable the script when both a CS1 and a CS2 reference are present, for enabling it for specific namespaces I think I would need to have a different config variable that would take an array or namespaces as different people might want it for different namespaces (eg the user namespace for user drafts or the template namespace) or maybe it would be better to disable it on talk pages (although pages such as this aren't technically talk pages). BrandonXLF (talk) 21:38, 28 August 2020 (UTC)
I think a basic set of namespaces (Main+Draft) is fine of default. The toggle would take care of the other cases. But having an over-ridable set of namespaces to have the script on would also be good if someone wanted it normally on on say Main+Draft+Template+User+Wikipedia. This might be over-engineering though. Headbomb {t · c · p · b} 21:42, 28 August 2020 (UTC)
To be clear, the default behaviour would be one thing, and which namespace would be another. So someone with "Always on" with "Main+Draft" would have it always on for those namespaces, with off, but with the toggle on the others. Someone with "Both" with "Mainspace+Draft+Template+User" would only display when both CS1/CS2 are present, but only on those namespaces, and default to off, but with the toggle on the others. Headbomb {t · c · p · b} 21:48, 28 August 2020 (UTC)
@BrandonXLF: any possible update on the namespace behaviour? At the very least, suppressing all talk spaces by default would already be of great use. Headbomb {t · c · p · b} 02:49, 2 October 2020 (UTC)

@David Eppstein: btw the 'both' version of the script works really well. Only shows up when there's a discrepancy, e.g. Manifold (10 CS1, 3 CS2 as of writing). Headbomb {t · c · p · b} 17:21, 30 August 2020 (UTC)

Thanks for the re-ping; I've installed w/both option. Manifold needs more than just citation style formatting; it needs careful attention to unify the footnotes with the separate list of references and check that references implicitly called out in the article text are made explicit. Also at least one of its citation templates, {{springer}}, appears not to have a style option. Update: style option added.David Eppstein (talk) 19:36, 30 August 2020 (UTC)

Ordering scriptEdit

I think there must be a script that would arrange the top templates of lead section of an article according to MOS:ORDER. Because I see there are lot of articles that don't have the right arrangement. And many users don't know what should be the order. So such a script would help them to make the order right according to WP:ORDER. Thank you. Empire AS Talk! 07:09, 29 August 2020 (UTC)

I believe AWB does this when an edit is being made to the page anyway. Having a script that by itself does nothing but reorder templates is pretty WP:COSMETICBOT territory. SD0001 (talk) 09:51, 29 August 2020 (UTC)

Highlight user pages in template categoriesEdit

To help clean up user template categories, it would be useful if top-level user pages were highlighted in template categories. I've tried doing using a user style:

.mw-category-group a[href*="/wiki/User:"] {
    outline: 2px solid orange;

with a page selector using regex https:\/\/en\.wikipedia\.org\/.*Category\:.*_templates.*. However, CSS doesn't allow arbitrary regex in attribute selectors, so I can't exclude subpages from the CSS rule. —⁠andrybak (talk) 06:50, 30 August 2020 (UTC)

$.ready.then(function() {
   if (mw.config.get('wgNamespaceNumber') !== 14) return;
   if (!/_templates$/.test(mw.config.get('wgPageName'))) return;
   var rgx = /^\/wiki\/User:[^/]*$/;
   $('.mw-category-group a[href^="/wiki/User:"]').each(function() {
       if (rgx.test(this.href)) {
           $(this).css('outline', '2px solid orange');
SD0001 (talk) 10:10, 30 August 2020 (UTC)
I've tweaked the regexp a bit and added another feature on top—to scroll the first link into view:
// Highlight user pages in template categories
var scroll = true; // whether or not to scroll the first highlight into view
$.ready.then(function() {
	if (mw.config.get('wgNamespaceNumber') !== 14)
	if (!/templates$/.test(mw.config.get('wgPageName')))
	var rgx = /.*\/wiki\/User:[^/]*$/;
	$('.mw-category-group a[href^="/wiki/User:"]').each(function() {
		if (rgx.test(this.href)) {
			$(this).css('outline', '2px solid orange');
			if (!scroll)
			scroll = false;
—⁠andrybak (talk) 16:41, 4 September 2020 (UTC)
It seems that HTML rendering changed recently. I've had to replace CSS class .mw-category-group with id #mw-pages. —⁠andrybak (talk) 23:27, 19 September 2020 (UTC)


I used this (simple) User:GregU/hotkeys.js script but it stopped working (long time ago). It assigned a few ctrl-X to some special symbols or text. Any idea why its broken? (the script creator has been inactive for 8 years 7 months ago) Christian75 (talk) 08:45, 14 September 2020 (UTC)

The method it was using for firing on page load was no longer supported, here is an updated version. – Thjarkur (talk) 21:15, 17 September 2020 (UTC)

Undo even when there are intermediary edits to the paragraphEdit

I want to be able to hit "undo" and have the computer try its best to undo a change even if there are intermediary edits to the paragraph in question.

So, word-level merge-conflict-resolution rather than paragraph-level merge-conflict-resolution.

Does something similar to this exist? (If not I'll probably try to get around to it eventually)

Thjarkur (talk) 21:06, 17 September 2020 (UTC)

RM helper scriptEdit

Hello, I propose a script that will help over at RM just like XFD closure, it should be able to relist, close, fix links , log the RM at the articles talk page and move the page if necessary. This would really help since we do things over there manually. Please ping me on reply. Thanks Megan☺️ Talk to the monster 07:43, 21 September 2020 (UTC)

Synoman Barris, seconded! Heart (talk) 04:35, 1 October 2020 (UTC)
@Synoman Barris and HeartGlow30797: I've started User:TheTVExpert/rmCloser, which currently relists, closes, and adds {{Old move}}. Let me know what you think of it. TheTVExpert (talk) 21:26, 25 November 2020 (UTC)

Vital Articles helperEdit

Script to assist in switching and adding articles to Vital Articles. Heart (talk) 03:33, 4 October 2020 (UTC)

HeartGlow30797, can you provide more details? Does this involve adding/removing a certain template from talk pages? Which template? Does this involve adding/removing a category from the main article? Which category? Thanks. –Novem Linguae (talk) 13:58, 10 December 2020 (UTC)

Reordering file upload wizard stepsEdit

I'm not sure if this is completely the right place, but hopefully it's at least the right group of editors. Following up from here and here, we'd like to redesign the file upload wizard so that it asks right off the bat whether you're uploading a free or non-free file, and sends you to Commons if you're uploading a free one. This would be much better than the current ordering, where the many people who are trying to upload a free file don't realize they should go to Commons until the third step, at which point they'll have to re-enter a bunch of information (and some may just give up, costing us an image we'd want). {{u|Sdkb}}talk 08:29, 14 October 2020 (UTC)

  FYI – If anyone wants to go further and do a full redesign of the upload wizard, there is some relevant discussion in a thread started by Paul Carpenter at Wikipedia:Village_pump_(idea_lab)#Uploading_a_file_as_"own_work"_is_too_easy.
{{u|Sdkb}}talk 04:27, 20 October 2020 (UTC)

Please Read the FAQEdit

I hope this doesn't seem bitey, but it would be so helpful to have a script that could let me answer/close a post with a kindly-worded "Please read the FAQ" message on articles that are getting huge numbers of redundant posts for days and weeks on end after a major incident. It's a major time-waster for editors. —valereee (talk) 18:42, 11 November 2020 (UTC)

Valereee, is this just a script to reply to a person on a talk page with that message, your signature, maybe a ping, and using the proper indent? Does the script need to add {{archivetop}}{{archivebottom}} around it? Any other requirements? –Novem Linguae (talk) 14:03, 10 December 2020 (UTC)
Novem Linguae, ideally it would be able to answer and close a discussion or semi-protected edit request, in the case of a semi-protected edit request also mark it answered, but not archive it. I usually don't archive early as I'm hoping other new editors coming in to make similar requests will see there are already ten on the page and maybe not ask after all. :) —valereee (talk) 15:32, 10 December 2020 (UTC)
Some sort of language like, "Hi, and welcome to Wikipedia. The edit you're requesting has been discussed multiple times. For more information, see the FAQ at the top of this page. Thank you!" —valereee (talk) 15:33, 10 December 2020 (UTC)
  In progress User:Novem_Linguae/Scripts/edit-request-read-faq.jsNovem Linguae (talk) 17:37, 10 December 2020 (UTC)
Sorry. I haven't had as much time to work on this as I would like. I will try to finish this when I get some free time. Also, I ran across another tool that doesn't do exactly this, but might be helpful for quickly replying to edit requests: User:Jackmcbarn/editProtectedHelperNovem Linguae (talk) 07:32, 28 December 2020 (UTC)

Listings for contestsEdit

Kinda similar to SD0001's DYK Helper, I'm envisioning a script that you could open under the 'more' tab of an article, specify what you did (i.e. 'new article', 'destub', 'rewrite', 'source'...) and tick what contests it falls under (for instance, maybe WP:DESTUB50K and WP:CAN10K). It would make listing articles for them a lot easier, and make me far more likely to remember. Cheers, Eddie891 Talk Work 19:25, 20 November 2020 (UTC)

Eddie891, can you provide a list of contests? Also, once ticked, what code is the script supposed to add exactly? Thanks. –Novem Linguae (talk) 14:05, 10 December 2020 (UTC)
Novem Linguae it would add # '''ARTICLE NAME''' — [New article/expanded/destubbed] by USER. I think they're all listed at Template:The 100,000 Challenge. Cheers, Eddie891 Talk Work 01:30, 11 December 2020 (UTC)

GAN User scriptEdit

Hi! I'll preface this and say my coding knowledge is very basic. I did make an effort to complete this myself, but I'm better at forking existing scripts than writing a new one. Some of this is quite personal to me, but easy enough to make this more useful to more editors. This would only be of help to serial nominators of GANs though! Here's what I've been looking to get:

When attempting to nominate an article for WP:GAN, you need to {{subst:GAN|subtopic=X}} on talk page. I'd like to add this, plus some additional actions in one go.

  1. {{subst:GAN|subtopic=X}} onto talk page of article being edited. Maybe a pop-up box for |subtopic, and |note.
  2. Adds page to User:Lee Vilenski/GANs or, substitute the user's page. Create if not already exists. I think this is [[{{{USERPAGE}}}/GANs]] - you'd know better than I.
  3. Potentially the most difficult, it watchlists /GA# page, such as Talk:2020 World Snooker Championship/GA1 or Talk:League of Legends/GA2 for example.

For future enhancement, most Wikiprojects have a nominations pane, it'd be nice for this to automatically add to these if possible (probably needs some sort of case-by-case addition.

In addition, something that closes GANs might also be good. To do:

  1. Close the discussion on the GAN page.
  2. Change {{GAN|subtopic=X|nominator=Y|page=Z|etc.}} to {{GA|subtopic=X|page=Z|~~~~~}} or {{failed GA|subtopic=X|page=Z|~~~~~}} on talk page of article dependent if GAN passes or fails.
  3. Change ratings on all WikiProjects to GA (or leave alone if failed).
  4. List article at WP:GA - this may need a drop down as to where it needs to go within the lists.

I think this is quite an ask, but if anyone wants to help me work on this, let me know. I'm happy to give some more specific steps if wanted :). Best Wishes, Lee Vilenski (talkcontribs) 09:56, 23 November 2020 (UTC)

@Lee Vilenski: Interesting. For creating nominations, I already have a DYK-helper.js and GAR-helper.js. Would love to complete the collection by bundling in GAN, FAC, FAR, etc. A GAN nomination script is pretty straightforward but the unusual thing is actually #2 since every person may have their personal GAN log formatted in a different way and we wouldn't know. One way to go about it is to make it an opt-in function which blindly appends * [[Article name]] to the page, leaving it upon the user to ensure that such an addition would fit into the formatting of the page.
As for a closure script, I think it also needs to handle options like WP:GAN/I#HOLD and WP:GAN/I#2O?
Also, since you say did make an effort to complete this myself is that code available so that i can take parts from it? – SD0001 (talk) 18:15, 23 November 2020 (UTC)
I didn't get it far enough into doing so. I spent a little bit of time, and panicked at the scripting that is far above my head! I suppose the thing about #2 is that it wouldn't be too difficult to change the place, and I would likely just set my nominations page to transcribe.Best Wishes, Lee Vilenski (talkcontribs) 18:38, 23 November 2020 (UTC)
@Lee Vilenski:   Done for first part. See User:SD0001/GAN-helper.js. For logging, you can specify page name and the log entry in the interface. – SD0001 (talk) 21:09, 23 November 2020 (UTC)
That is some quick fantastic work! I've asked some friends to also test this out as I don't have anything written to nominate now. The interface looks fantastic. Best Wishes, Lee Vilenski (talkcontribs) 21:17, 23 November 2020 (UTC)
Ha, I mostly just copied stuff from GAR-helper and changed things here and there ... – SD0001 (talk) 21:24, 23 November 2020 (UTC)

A script for listing discussions at WP:ANRFCEdit

It would be helpful to have a script that could assist with the process of listing discussion closure requests at WP:ANRFC. I envision the functionality as working something like this:

  1. You'd activate the tool similarly to the archiving tools by going to the "more" menu, and then select the section with the discussion.
  2. A dialogue box would come up, where you'd select a category to list the discussion under (administrative, deletions, RfCs, or other) and optionally specify a custom message to go with the request.
  3. The tool would determine the "initiated" value by the earliest timestamp in the section and then make the listing.

Hopefully the existence of such a tool might help encourage more listings, leading to more discussions coming to a resolution. {{u|Sdkb}}talk 05:32, 2 December 2020 (UTC)

I am working on this.Ajbura (talk) 12:11, 20 December 2020 (UTC)

Done. You can see it on User:Ajbura/anrfc-lister.js @Sdkb Ajbura (talk) 15:17, 21 December 2020 (UTC)

Ajbura, looks fantastic; thanks so much! {{u|Sdkb}}talk 00:13, 22 December 2020 (UTC)

Default watchlist expiry timeEdit

m:Community Tech/Watchlist Expiry is now active on enwiki. Unless I'm missing something, it seems the default expiry time can't be changed from "Permanent". A user script to be able to have the default be, e.g. "1 month" without having to keep manually setting it, or having to un-watchlist and then re-watchlist with an expiry time, would be quite useful. Including when submitting a new section, the "Watch this page" seems to be "Permanent" by default. ProcrastinatingReader (talk) 10:10, 2 December 2020 (UTC)

Script that adds templates from Done/See also automaticallyEdit

I wish to request a user script that either automatically adds the templates listed at Template:Done/See also to one's comments on talk pages or noticeboards, or that provides a menu with a search bar, with which to select said templates. This will save the time needed to search through all of the templates, thereby also increasing their usage. Thank you for your time. Opal|zukor(discuss) 12:07, 7 December 2020 (UTC)

help needed with high use gadget on CommonsEdit

Hi, we have a long standing request to add SDC (Structured data on Commons - wikidata like layer) editing capability to c:MediaWiki:Gadget-PermissionOTRS.js, see c:MediaWiki_talk:Gadget-PermissionOTRS.js#Add_P6305_SDC_statement or phabricator:T252300. We do not have many people doing javascript on Commons, and they seem to be busy with other projects. Anybody interested in trying something new and helping with this? I can be assisting with testing and final deployment. --Jarekt (talk) 13:37, 14 December 2020 (UTC)

@Jarekt:   Done, see diff on the beta cluster [3]. Majavah (talk!) 15:03, 14 December 2020 (UTC)
Majavah Thanks for quick response. I will test it tonight. --Jarekt (talk) 21:19, 14 December 2020 (UTC)
It is deployed and it works great. Thanks again. --Jarekt (talk) 15:23, 21 December 2020 (UTC)

Script for Reviewing GAsEdit

Reviewing GAs is quite a tedious process, and there are scripts for creating nominations for them. It would be very useful to have one for reviwing them. — Yours, Berrely • TalkContribs 14:05, 7 January 2021 (UTC)

Specialised NotificationEdit

Well, actually, it is not a request. Is there any script, especially for mobile, that generate customised notification? For example, on 31 January, it will generate a notification saying "Today is the last day of this month!" Meghmollar2017Talk • 15:15, 10 January 2021 (UTC)

A user script that automatically creates Z number templates and adds them to other templatesEdit

Z number templates are templates made to track the usage of substituted templates. They 'should' be present on every template listed at WP:MLT, WP:SLT, and WP:BLOCKT. However, they aren't. There are far too few Z number templates for the sheer number of UW templates. That's why I'm proposing this user script, so that these can be added with ease. Now, a possible concern is that one could just use WP:AWB for this. The thing is, this will have to be done every time a new template is created, thus a user script would be better. Thank you for your time. Opal|zukor(discuss) 12:30, 25 January 2021 (UTC)

Finding redlinks in a specific articleEdit

Hi. I looked at the script list and only found some scripts that can remove redlinks from an article. A fork of these scripts (or a brand new one) which could find and make a list of redlinks on a specific article could be useful, specially in processes like WP:GAN and WP:FAN. can anyone please write one? :) thank you. —Jeeputer (talk) 14:24, 25 January 2021 (UTC)

Alex 21 made the original code for this. What would you want to use it for, exactly? Redlinks are things we would want to include at GAN and FAC. Best Wishes, Lee Vilenski (talkcontribs) 16:09, 25 January 2021 (UTC)
@Lee Vilenski: I want to "find" redlinks in a specific article/page and list them somewhere like a user subpage. So one can consider creating all of them. Thank you. —Jeeputer (talk) 01:47, 26 January 2021 (UTC)