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)

Wanted: Add article onto a 'To Do' list for further action[edit]

A script or gadget to automate the addition of article titles (perhaps to a user-defined sub-page) for future monitoring and follow-up action. Effectively, this would be a 'To Do' list. Serving a completely different purpose from a Watch List, it would need to be just as easy to use. As a New Page Patroller and spell-checker, I encounter innumerable articles that need following up in some way. I desire to create a separate list of these pages to work through at some future point - possibly putting forward for deletion, or checking that pages tagged with templates have been actioned. Or I may wish simply to add pages to my 'To Do' list so I can edit them myself later. Because some of these pages rarely get edited again, using a Watch List does not help, and it would weaken the way the Watch List works for monitoring pages of real interest. I have no way of knowing whether such a tool already exists, but having a parallel Watch list for direct editorial action would, I believe, be immensely helpful to many editors. Nick Moyes (talk) 00:23, 16 June 2017 (UTC)

@Nick Moyes: See Wikipedia:User scripts/List § Todo lists. That page is good page to check for "knowing whether such a tool already exists" - Evad37 [talk] 01:56, 16 June 2017 (UTC)
Thanks so much. I had already tried looking, but must have missed the link to that section. But I've now found what I was looking for. I appreciate your assistance. Nick Moyes (talk) 10:39, 16 June 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)

Request for someone to take over User:Kephir/gadgets/rater[edit]

The rater tool seems to have been abandoned some years ago, but is an amazing and incredibly useful tool that is used by a lot of New Page Patrollers and other editors that frequently rate articles. Suggestions for improvement on the gadget's talk page go unnoticed by its creator and that is a big shame. Although the tool is amazing, an editor actively improving it could do some tremendous good by taking over maintenance of the tool.

  1. I also know of some wikiprojects that are not currently on its list (I have added some), but I suspect there are a ton more, which makes rating unlisted wikiprojects very difficult for those that are used to using the tool extensively (i.e. the wikiproject list needs updating to add new wikiprojects and remove dead wikiprojects).
  2. The biography wikiproject 'List as' parameter could definitely use autofill based on the most common name format (i.e. strip off any parentheses, then autofill as last, first middle+).

These are just some of the improvements that could be made to the tool. Thanks to whoever decides to help here! — InsertCleverPhraseHere 09:09, 16 July 2017 (UTC)

See User:Evad37/rater. The Transhumanist 13:33, 13 January 2018 (UTC)

Help with script for Galician wiki[edit]

Hi! I'm an admin from gl.wiki 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 en.wiki, but I don't found nothing.

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

Request for page blocking script[edit]

HI! I'm facing significant problems because there are many pages that I don't want to see and can cause family problems. A long discussion is taking place at Teahouse regarding this (see Blocking page view). There, it has been asked me to request a user script here which will enable me to block those pages. I request a script by which I can block articles. that I feel are not safe for me. User:Nazim Hussain Pak Sinner (talk) 14:32, 9 August 2017 (UTC)

@Nazim Hussain Pak: How would you like the script to determine what should be blocked? Hiding the content of pages from a list of pages should be fairly easy to create. Going by other criteria would be progressively more difficult, the more subjective the criteria. The Transhumanist 00:21, 5 January 2018 (UTC)

Soccerbase Script[edit]

Struway2 has made this Template:Soccerbase season page, however, this will take a lot of time to use the copy and paste and changing the ID and year parameter to every football article with the longer code version to display the references. A script would get things done easier and quicker to do. For example, changing the content from this {{Cite web| title = Games played by Matthew Lowton in 2011/2012| url = http://www.soccerbase.com/players/player.sd?player_id=53439&season_id=141| publisher = Soccerbase| accessdate = 23 June 2015}} to this {{Soccerbase season|id=53439|season=2011|name=Matthew Lowton|accessdate=23 June 2015}} would take a long time for the same user to do for every page. Iggy (talk) 11:11, 16 September 2017 (UTC)

@Iggy the Swan: is this still needed? I'm not saying, that I will do this, but... --Edgars2007 (talk/contribs) 06:41, 6 March 2018 (UTC)
@Edgars2007: - a bot has already converted the work so this is no longer needed. I'd forgotten I posted this, Iggy (Swan) 18:03, 6 March 2018 (UTC)

Tabber Script[edit]

I wish to have something like this. Artix (Message wall) 23:55, 14 October 2017 (UTC)

also, how to highlight own name in history? Artix Kreiger (talk) 21:17, 26 October 2017 (UTC)
Use Template:Page tabs --Danski454 (talk) 16:34, 3 August 2018 (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)

Request for Hyperlinks to other articles to show an article preview when hovering over them[edit]

I think it'd be great if, when you hover over a hyperlink to another Wikipedia article, a small box pops up giving you the first few lines and maybe the lead picture of that article. It'd sort of look like when you hover over a citation number now. I have no idea how to do this, but I think it'd be awesome if there was just a term or something that someone didn't know, that they could just hover over the link instead of having to open a new tab. — Preceding unsigned comment added by BenJenkins (talkcontribs)

@BenJenkins: Go to your preferences, select the appearances tab, and choose the "page previews" option; that should do what you want. There's also navigation popups in the gadgets section, but that's for more advanced editing features. ~ Amory (utc) 00:49, 26 March 2018 (UTC)
For a more advanced alternative to Amorymeltzer's suggestion that shows previews for non-article pages, try the Navigation Popups gadget. It's under the gadgets tab in Preferences. — pythoncoder  (talk | contribs) 22:44, 27 April 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)

AutoRollbacker[edit]

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)

Resource limit?[edit]

I have a simple script on meta:User:Bdijkstra/global.js to do some text replacement for visual aesthetics. On short pages it works fine, but on longer pages it seems that the script stops running after a certain point. Is there some sort of resource limit that I am hitting? --bdijkstra (talk) 16:11, 18 June 2018 (UTC)

Never mind. It turns out that the jQuery selector doesn't wait for the page to finish loading, so the script often finished execution before all content was loaded. --bdijkstra (talk) 11:53, 21 June 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! --141.76.83.180 (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)

Automatic Pagelinks for Categories[edit]

Is there a script that turns all links in a category to something you might see with {{pagelinks}}? For example, instead of seeing

in a category, you would see

Does such a script exist? (Similar to User:Equazcion/CatListMainTalkLinks.) If not, I'd be happy to write it up, I just wanted to check beforehand. Cheers. -- AlexTW 02:28, 15 August 2018 (UTC)

 Done Did it myself. -- AlexTW 11:39, 28 August 2018 (UTC)

Hotcat-like searchable stub sorting/stub tagging script, with hierarchy searching[edit]

There isn't currently a great script for stub sorting and stub tagging, the best I have found is User:Ais523/stubtagtab2.js, ideally we would have a hotcat-like searchable field for stub tagging. This would be useful to both New Page Reviewers, as well as to Wikipedia:WikiProject Stub sorting.

Ideally it would work as a hierarchy system somehow, using the hierarchy system at Wikipedia:WikiProject_Stub_sorting/Stub_types. For example; you would put 'school' into the field, then when you select School stubs, it would populate a scroll-able list suggesting the next level of hierarchy down (e.g. African school stubs, Asian school stubs, etc), then when you select African school stubs, it would populate a scroll-able list suggesting the next level of hierarchy down (e.g. Algerian school stubs, Kenyan school stubs, etc), and so on until you reach the bottom of the hierarchy tree. You should also be able to use the search tree to search for any stub tag, (e.g. jump directly to Kenyan school stubs).

At minimum a hotcat-like search field that you can just search in would be great, but a hierarchy system would be way better at minimising generic stub choices (a hierarchy sytem for Hotcat would also be really awesome, but that is another job entirely.

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

Working on it --Danski454 (talk) 14:06, 24 October 2018 (UTC)
@Insertcleverphrasehere: done: User:Danski454/stubsearch.js (doc) --Danski454 (talk) 09:49, 25 October 2018 (UTC)
Amazing! Thanks very much. — Insertcleverphrasehere (or here) 10:02, 25 October 2018 (UTC)

This script is great for adding stub categories, thanks both to @Insertcleverphrasehere: and @Danski454:! Any chance the script could make it easy to remove stub templates that are currently on the page? A common task is to remove a more general stub template and apply a more specific one. -Furicorn (talk) 19:18, 26 October 2018 (UTC)

@Furicorn: I've added a button which replaces all stub tags on the page with the selected tag, then loads the diff. --Danski454 (talk) 21:09, 26 October 2018 (UTC)
@Danski454: wow, thanks for the incredibly quick turnaround. I noticed something weird - I was trying to test it on Roman Catholic Diocese of Qinzhou by adding {{PRChina-RC-diocese-stub}} and searched "roman catholic diocese stubs". I then selected Asian Roman Catholic diocese stubs, which has two subcategories, Chinese Roman Catholic diocese stubs and Indian Roman Catholic diocese stubs. However, only Indian Roman Catholic diocese stubs shows up in the script search results, and I also get no results when I directly search for Chinese Roman Catholic diocese stubs. Any thoughts? -Furicorn (talk) 03:45, 27 October 2018 (UTC)
@Furicorn: for some reason, Chinese Roman Catholic diocese stubs was not listed on Wikipedia:WikiProject_Stub_sorting/Stub_types, (Permalink), I am adding it now. --Danski454 (talk) 09:32, 27 October 2018 (UTC)
@Danski454: thanks, I'll make sure to check that next time. -Furicorn (talk) 10:21, 27 October 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)

Contribs and user groups[edit]

  • I would like a script that add a link to someone's contribs and user groups in their signature. The script itself would be displayed as (C
  • G). Hddty. (talk) 23:55, 24 October 2018 (UTC)