Wikipedia:User scripts/Requests

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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.

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!

Wanted: List entry annotator[edit]

A script that does the following to each entry in a bulleted list: adds an en dash after the entry, fetches the first 2 sentences of the lead of the corresponding article (the linked term listed), and inserts them after the en dash of the entry. The Transhumanist 20:50, 1 April 2017 (UTC)

Help needed: adjust location of view port[edit]

The script User:The Transhumanist/AnnotationToggler.js provides a toggle to hide/show the annotations in bulleted lists. The problem is that when the annotations disappear or reappear, the user is jolted away from the text he was reading, as that text shifts relative to the viewport. I need help resetting the location of the viewport to focus on the text that was there before the hide/show button press. The Transhumanist 20:50, 1 April 2017 (UTC)

Request for an ISBN script[edit]

A script which hyphenates ISBN-13 digits (with four hyphens), similar to this website. A script which converts ISBN-10 to 13 would be appreciated also. Thank-you.--Nevéselbert 23:13, 25 June 2017 (UTC)

@Neve-selbert: is this still needed? I'm not saying, that I will do this, but... --Edgars2007 (talk/contribs) 06:41, 6 March 2018 (UTC)
@Edgars2007: it would come in handy, certainly.--Neve~selbert 17:07, 22 March 2018 (UTC)

Help with script for Galician wiki[edit]

Hi! I'm an admin from and we need your help to create an script because we don't know how implement that.

We need an script or tool that add a new option to the left menu tools, that option should add a template to the article and automatically it should send a message to the user who created the article. The idea is to add templates to very short articles and notice the users who created it at same time.

I know that at Wikimedia Commons the tool copyvio make a similar work (and other things), add the template to the file and after that it writes a comments at the uploader's page. I searched for a tool or script with similar work here at, but I don't found nothing.

Could somebody help me with that? Bye, --Elisardojm (talk) 15:33, 31 July 2017 (UTC)

Script or Bot to search and calculate coordinates[edit]

Please look at this table: Lands_administrative_divisions_of_New_South_Wales#Table_of_counties

My goal is to add a column to this table that shows the approximate geographical coordinates of each county. Those county coordinates can be derived form the parish coordinates that are found in each county article, by taking the middle of each northernmost and southernmost / easternmost and westernmost parish coordinates. Is it possible to write a script or a bot to achieve this? --Ratzer (talk) 10:45, 15 January 2018 (UTC)

Probably I'm wrong here, I'll ask somewhere else...--Ratzer (talk) 21:25, 25 January 2018 (UTC)

User script to help guide students working on medical articles[edit]

Students make similar errors when editing and each new batch repeats similar errors made by the last batch. I am wanting a user script that analysis the students edits and provides them feedback. For example:

  1. If they use a url to the inside net of their library it will remind them that this is not useful to anyone outside their institution.
  2. If they use caps for every word in a heading it will point out that generally only the first word in a heading gets a cap unless the other words are proper names.
  3. If they put refs before the punctuation or leave a space after the punctuation before the ref it will remind them that the house style is refs go immediately after the punctuation.
  4. If they use a book (ie an ISBN) without a page number they will be reminded to provide a page number.
  5. If they do not use "cite templates" to match those already used in the article they will be requested to do so.
  6. If they use a pmid that is listed as a "primary source" they will be requested to use a secondary source. Whether or not a pmid is primary or secondary can generally be determined by pubmed.

I am involved with supporting a number of classes, including one of medical students at UCSF. I am wanting to trial this sort of script on them to see if they find it useful and it decreases the work load for other volunteers. Currently education initiatives are not really scalable and this sort of script will help make them so. Doc James (talk · contribs · email) 04:57, 15 March 2018 (UTC)

First draft here Doc James (talk · contribs · email) 02:53, 19 March 2018 (UTC)
Thanks for TheSandDoctor who already started to work on it. I just want to refer to User:ערן/WeaselWords.js and Wikipedia:Manual of Style/Words to watch/Config which can be used as a sketch example how to do it (though someone should review the code which was written in WM'14). Particularally I suggest enwiki to adapt hewiki practices here and to put the "rules" above in two format:
  • as human readable rules in Wikipedia:Manual of Style (or a sub page) - where users can read the rational behind the rule. Probably some of the rules Doc James mentioened above are already there - if not please consider to add them. Doing it means users who don't have user script installed can still be aware to it (though it is less accessible)
  • as machine readable rules (as in Wikipedia:Manual of Style/Words to watch/Config or some other format) for a user script to verify the rules. Doing it will greatly simplity further adding/removing/twiking the style rules.
Thanks, Eran (talk) 07:30, 21 March 2018 (UTC)
You should use jquery.textSelection source api module to access the contents of the wiki text editors. That synchronises between the various wiki text editors, so that when two tools makes changes to the form value, they don't overwrite each other. —TheDJ (talkcontribs) 09:16, 21 March 2018 (UTC)

Minimise sections[edit]

This is needed for desktop mode, since it is already there in mobile mode. This way, I can hide the plot section to avoid unintentionally reading spoilers. --Kailash29792 (talk) 09:23, 27 April 2018 (UTC)

@Kailash29792: does User:BethNaught/hideSectionDesktop.js help? It does not auto-collapse the sections (although it could be so modified) but you can use it to hide a plot section. BethNaught (talk) 11:06, 12 July 2018 (UTC)
So I just copy it onto my skin.js page and that's it? Because that's just what I've done now. --Kailash29792 (talk) 11:11, 12 July 2018 (UTC)
Now I put it on my common.js page, and voila! Thank you very much BethNaught. It now doesn't have to be on the skin page, does it? --Kailash29792 (talk) 11:20, 12 July 2018 (UTC)
No, it doesn't. BethNaught (talk) 11:34, 12 July 2018 (UTC)


A script that would rollback automatically a persistent vandal until an admin blocks him. To prevent abuse, maybe the script would work only if the user is reported to AIV. L293D ( • ) 18:35, 6 May 2018 (UTC)

I've always wanted a script that puts the number of new edits made by a user at the beginning of the tab title (in the browser window), so that I can look over new ones as they come in. Maybe this is a more general solution. Enterprisey (talk!) 09:51, 18 November 2018 (UTC)
L293D, User:Bellezzasolo/Scripts/meganuke.js might do the trick. Flooded with them hundreds 10:46, 24 November 2018 (UTC)

Disabling Media viewer and Page preview[edit]

There is the page Wikipedia:Tools/Greasemonkey_user_scripts which shows publicly usable Greasemonkey scripts to give the users a better experience. Sadly there is no list for requested scripts. So I guess, this one here has to be the right one for this purpose, too.

I think, I have a request to make Wikipedia usable / readable for normal people (without an account) again. Please, provide us (or at least the technically versed parts of us) with some means to disable these annoying "features" of the Wikipedia once and for all. I don't think that I have to name reasons here - there are multiple comments on the appropriate discussion pages which seem to be ignored altogether.

So please, give at least the Greasemonkey users the possibility to turn off Media viewer and Page preview. It's really no help at all to have to choose to disable them about a hundred times a day (for every browser instance [in case of the Page preview also for every already opened browser tab!], for every language version, multiple times a day again and again and again)!

Otherwise Wikipedia seems not to be usable in an effective manner anymore. Even on big screens it's hard to find a spot to "park" your mouse cursor at to be able to scroll the site without having previews popping up every now and then. - Which totally disturbs the normal workflow! -- (talk) 16:04, 21 June 2018 (UTC)

Automatic American English[edit]

I want the reverse of Ohconfucious's American → British script so that it could convert British → American. IDK why it hasn't been done already. — Mr. Guye (talk) (contribs)  08:32, 26 July 2018 (UTC)

Do you have a link to the original script? --Danski454 (talk) 16:39, 3 August 2018 (UTC)
Is this the page in question? --Kailash29792 (talk) 16:49, 3 August 2018 (UTC)
I think this might be it: User:Ohconfucius/script/EngvarB.js --Danski454 (talk) 17:38, 3 August 2018 (UTC)
Danski454, Ohconfucious does not appear to have responded to a request to make a script that can convert British English to American. Are you working on it? Or does Canadian English follow the same style? --Kailash29792 (talk) 11:44, 24 August 2018 (UTC)
Kailash29792 I am not working on this script. Also, Canadian English is somewhere between British and American. Danski454 (talk) 18:47, 25 August 2018 (UTC)
I must thank Ohconfucius for making this possible, so this request may be archived. --Kailash29792 (talk) 08:54, 13 September 2018 (UTC)
No, this request should not be archived. There still is not an automatic edit script that converts British English to American English, nor does it seem like anyone is trying to create one. My request is far from fulfilled. — Mr. Guye (talk) (contribs)  01:25, 15 September 2018 (UTC)

Auto Copyvio check for unreviewed pages (for new page reviewers)[edit]

A script that automatically pops up a small box whenever you navigate to an unreviewed main-space page (ideally pinned to the bottom right side of the window and scrolls with the page to stay out of the way of the reviewer, similar to the Page Curation tools), in which it runs a search in Earwig's copyvio detector. This box would be grey at first (while the search is running), but would then display the confidence % result of the copyvio report and change colour to Green/Yellow/Red (depending on the confidence %). Clicking on the box would either A) 'expand' it in a window without navigating away from the page, allowing the reviewer to click on the box to expand the copyvio report, or click it again to minimise it and display only the colour coded confidence% result (ideally), or B) link to the full copyvio report page and open it in a new tab (probably much easier, but it would be better not to have to navigate away form the page).

Option to have it be not automatic would be nice (instead only launching it manually like most other scripts). It should also be able to be launched manually on articles that are already marked as 'reviewed', but this should be by default not automatic. And it should also be configurable for manual or automatic use on AfC drafts (probably default as automatic). — Insertcleverphrasehere (or here) 22:41, 19 October 2018 (UTC)

Please ping me if responding to this request. Cheers! — Insertcleverphrasehere (or here) 11:39, 16 October 2018 (UTC)

"RCpage" user script[edit]

I would like a user script that when used, creates a subpage of the user's page called RCpage (like User:Username/RCpage) and pastes the contents of User:PorkchopGMX/RCpage default onto that page. If it were a gadget I would want to call it RCpage but i'm not wanting this to be a gadget. An example of a customized version would be this. Thanks! PorkchopGMX 17:32, 24 October 2018 (UTC)

@PorkchopGMX: could you not just use {{subst:User:PorkchopGMX/RCpage default}}? --Danski454 (talk) 09:56, 25 October 2018 (UTC)


I'd like to be able to add a new "drop-down" menu in the upper-right corner (in vector) (like the "More" and "TW" menus) to be able to quickly:

  1. Tag, or untag, the article as uncategorized
  2. Tag, or untag, the article as needing improved categorization
  3. Tag, or untag, the article as a stub
  4. Jump to the bottom, to add categories with hot-cat

Please ping me when responding,

--DannyS712 (talk) 03:33, 18 November 2018 (UTC)

1 YesY User:Abelmoschus Esculentus/TagHelper without untag option
2 YesY User:Abelmoschus Esculentus/TagHelper without untag option
3 YesY User:Ais523/stubtagtab2.js without untag option
4 ☑Y User:Abelmoschus Esculentus/Skiptobottom and install Hotcat
Abelmoschus Esculentus talk / contribs 03:40, 25 November 2018 (UTC)
@Abelmoschus Esculentus: Thanks. The 4th suggestion was really helpful, but my goal was more to be able to create a new menu than to have this specific functionality. --DannyS712 (talk) 04:01, 25 November 2018 (UTC)

Wanted:Show WikiData Q number on Wiki Articles[edit]

I'd like to see the WikiData Q number for a given article (I know its available by clicking on the Wiki link in the sidebar.) The primary reason is to speed up using the WikiData Mix-n-Match process. I often end up using an external search engine to identify the correct Wiki article, but then I have to click again to get the Q number that I need to make the association. (It would be extra nice if it worked on more than 1 language Wiki ;-) Thanks. Dcheney (talk) 05:29, 3 December 2018 (UTC)

@Dcheney: I've written something that adds the Q number to the title (similar to those on wikidata). To install on all wikis add mw.loader.load( '//' ); to your global.js. Danski454 (talk) 18:20, 3 December 2018 (UTC)
Perfect! Thank you, especially for the fast response! --Dcheney (talk) 22:51, 3 December 2018 (UTC)

Words-to-watch finder[edit]

It would be helpful to have a tool that automatically searches an article for various words to watch, as defined in Wikipedia's Manual of Style. Such a tool would be very helpful in checking if an article complies with the style guidelines. This check would be useful in Good Article and Featured Article reviews.

My thinking is that the tool would be used while editing an article, allowing the editor to tab through the potential violations to review and correct them if needed. Also, the search list used in such a tool should be flexible so it can be expanded and improved over time by users. Qono (talk) 17:08, 14 December 2018 (UTC)