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 of user scripts, see this list.

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

ලේඛණගත ගොනු

User Script that searches by URL and text; See example below සංස්කරණය

For example I want to search for a specific URL:

As you may know, Wikipedia search engine only searches via text. So in a wiki article, it should contain explicitly the text "". Hence, the search engine would not show "this" even though it contains the URL.

The user script that I request does search for the URL even it is hyperlinked. Can anyone create one? --Likhasik (talk) 08:29, 18 May 2022 (UTC)

@Likhasik: An user script is not needed. Simply use Special:LinkSearch, Special:WhatLinksHere or the insource: syntax of CirrusSearch. NguoiDungKhongDinhDanh 08:31, 18 May 2022 (UTC)
@NguoiDungKhongDinhDanh Does not work. Better if User Script so that I can just search away in the normal Wiki search engine without even opening those links in a new tab. --Likhasik (talk) 08:39, 18 May 2022 (UTC)
@Likhasik: Did you add "Wikipedia" to the list of namespaces when searching? NguoiDungKhongDinhDanh 08:42, 18 May 2022 (UTC)
I'm slightly confused - what do you mean by "it doesn't work"? Are there results you don't want, missing results or both? If you're searching for "any links to/mentions of", insource:"" should work. Remagoxer (talk) 13:07, 19 October 2022 (UTC)

Upgrade opt-in Appearance gadget to show blocked users without talk page access සංස්කරණය

සැකිල්ල:Moved discussion from


In the gadget at Preferences > Gadgets > Appearance, users can strike out usernames that have been blocked. This is a very handy feature. I would like to propose an enhancement that would strike the word 'Talk' in the Talk tab of the User talk page, whenever access to their own Talk page has been removed for a given user.

  If this is technically difficult for whatever reason, then please add some other simple visual on the UTP that would represent the same information, for opted-in users. Currently, the only way I know to find out such information, is to scan the page (or the history, or the archives) for wording such as "talk page access removed". There has to be a better way. Mathglot (talk) 21:55, 21 July 2022 (UTC)

Here's a possibly relevant snippet:
User tab and Talk page tabs from blocked user *with* TP access
<div class="vector-menu-content">
  <ul class="vector-menu-content-list">
    <li id="ca-nstab-user" class="new mw-list-item">
      <a href="/w/index.php?title=User:RedactedUsername&action=edit&redlink=1" title="View the user page (page does not exist) [c]" accesskey="c">
        <span>User page</span>
    <li id="ca-talk" class="selected mw-list-item">
      <a href="/wiki/User_talk:RedactedUsername" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t">
Not sure if there's something I can do with class ca-talk. Thanks, Mathglot (talk) 22:18, 21 July 2022 (UTC)
I've moved this to a more suitable location. Pinging GeneralNotability and Dragoniez, authors of mark-locked and Mark (B)Locked Global. Cheers! 🐶 EpicPupper (he/him | talk) 22:25, 21 July 2022 (UTC)
(The author of mark-blocked, the original gadget that you mentioned, is retired, hence why no ping for them is there.) 🐶 EpicPupper (he/him | talk) 22:34, 21 July 2022 (UTC)
Thanks! Now that I think about it, simple strikethrough text in the Talk tab might not be a good enough indicator, since for a blocked user, the User tab already reads User, and simply having Talk in the next tab might look like it's part of the "blocked user" decoration. So maybe use slash-strikeout? So we'd have (User)   (T̸a̸l̸k̸ ) for a blocked user with no talk page access? Or, a superimposed x-mark? Thanks. 22:48, 21 July 2022 (UTC)
Hmm, interesting, I wonder if there's other options as well - color changes, perhaps, with all Talk links to users without TPA. Strikeout might be a bit hard to read. I tried using the Blocks API but it doesn't seem to give TPA info. 🐶 EpicPupper (he/him | talk) 22:51, 21 July 2022 (UTC)
Red font would work for me (Talk), but that probably wouldn't pass WP:ACCESSIBILITY concerns. Mathglot (talk) 22:54, 21 July 2022 (UTC)
And I think it might be confusing with redlinks. 🐶 EpicPupper (he/him | talk) 22:56, 21 July 2022 (UTC)
සැකිල්ල:Ec Strikeout is sometimes hard to read, but it's what the gadget does now for blocked users, and it's good enough for the purpose. Mostly it doesn't matter if I can read the username letter for letter. I have to agree about red, though. What about tilde strikethrough: [[User talk:Example two|U̴s̴e̴r̴ ̴t̴a̴l̴k̴:̴E̴x̴a̴m̴p̴l̴e̴ ̴t̴w̴o̴ ]]? Or maybe dotted underscore with a tooltip stating they have no TPA? Mathglot (talk) 23:03, 21 July 2022 (UTC)
With some help from others I've figured out how to technically get the info needed for this. The exact visual styling can always be tweaked later; I've started on making this! 🐶 EpicPupper (he/him | talk) 23:04, 21 July 2022 (UTC)
Wow, thanks! We might have to figure out some new barnstar, for fastest turnaround for a new proposal. සැකිල්ල:Wink Thanks again to you, and those who helped get this underway; looking forward to it. I think it will be well-received. Mathglot (talk) 23:23, 21 July 2022 (UTC)
Voila! The technical work for this is done, and I present mark-rocked (meaning mark revoked; it's forked from a script named mark-locked, so I kept the "ocked", and I thought the rock theming was fun). Currently, it highlights links to users that have talk page access revoked (user page links, user talk links, and contribution links). I'm completing more work on making the tabs ("User talk") also highlighted, and some other links highlighted. I'd also like to change how it's marked to make it more unique; Mathglot, what do you think is the best visual styling to pick? Cheers! 🐶 EpicPupper (he/him | talk) 23:33, 21 July 2022 (UTC)
I've reverted the styling to the one that mark-locked uses. I'm waiting on finding a styling that works, but when I do, I'll change it and release the script. Your input is welcomed! 🐶 EpicPupper (he/him | talk) 23:50, 21 July 2022 (UTC)
සැකිල්ල:Ec @EpicPupper: Hmm, not sure; can you mock up some examples and either link them or paste them? Or is it possible to see it now somewhere? Also, not sure if it's a legit use of the user, but can you see about maybe getting a friendly admin to temporarily revoke TPA from User:Example2 for a day or two, so you could play with some examples? (Or maybe even create a temporary alt account as a test user under your control, specifically for this purpose?) Once there's something to look at, maybe we could add a feedback request at WP:VPR or WP:VPM (maybe even at WP:AN) to get wider community input on what folks prefer for visual styling? How does that sound? Mathglot (talk) 00:04, 22 July 2022 (UTC)
Is it important that the account only be temporarily blocked? Otherwise, HJ Mitchell (ådmin) (talk · contribs · logs · block log) is handy. —Cryptic 12:23, 22 July 2022 (UTC)
@EpicPupper: any further thoughts on this? I think we're stuck, until we have something to look at. Otherwise, if you find a styling that works for you, just use your best judgment and go ahead and implement first, tweak later? Mathglot (talk) 09:42, 25 July 2022 (UTC)
Hi, I finished this a while back but didn't follow-back. It's working now for links, but I'm working on showing something on user pages as well. Should be done soon. 🐶 EpicPupper (he/him | talk) 04:51, 6 August 2022 (UTC)
@EpicPupper: is there a page somewhere with installation instructions I can look at if it's ready to go, or should I wait for the new version? සැකිල්ල:Pme Mathglot (talk) 02:48, 14 August 2022 (UTC)
Hey @Mathglot, sorry for the very late reply. If it's still useful, you can install the script by adding {{subst:lusc|User:EpicPupper/mark-rocked.js}} to this page and click "save" (ignoring any popup that warns you of an error). The script currently adds the emoji 🤫 to any link to a user with TPA revoked. See the documentation page for more information :) 🐶 EpicPupper (he/him | talk) 04:26, 22 January 2023 (UTC)
Thanks, EpicPupper, installed and appears to be working! Mathglot (talk) 06:19, 22 January 2023 (UTC)

A script to show invisible characters in diffs සංස්කරණය

A script that shows invisible characters in diff views similar to the module editors "Toggle invisible characters" button. I tried to work on one at testwiki:User:PhantomTech/invisible chars.js but I haven't done anything with JavaScript or jQuery in a while so it didn't go very well. PhantomTech[talk] 06:26, 31 July 2022 (UTC)

To expand on this: Here's the relevant js for the code editor, showInvisibles is probably the most useful search. I think the code editor only shows spaces, tabs and newlines, but I'm hoping for the script to be able to show and differentiate the others (nbsp, zwsp, etc.) as well. PhantomTech[talk] 06:41, 31 July 2022 (UTC)
@PhantomTech, try de:User:Schnark/diff/js (or whatever it's called). — Qwerfjkltalk 20:22, 6 September 2022 (UTC)
It's showing mostly boxes for me for a lot of the characters and I was hoping for something that would integrate with the existing diff view but I might have to just deal with the separate view and be able to modify it to show characters how I want it to. For anyone else interested, the link is de:User:Schnark/js/diff. PhantomTech[talk] 20:54, 6 September 2022 (UTC)
PhantomTech, Factotum now shows some of the popular ones like LTR/RTL marks and zero-width spaces in diff view. I can add others as needed.Alexis Jazz (talk or ping me) 01:22, 27 September 2022 (UTC)

Automatic no redirect links සංස්කරණය

Hi all, I need a script that creates a "no redirect" link whenever I come across any redirect, in articles, in backlinks from subpages, in contribs, etc. Basically, for example USA should produce USA(nr) where (nr) stands for "no redirect". Thanks! CX Zoom[he/him] (let's talk • {CX}) 14:49, 6 October 2022 (UTC)

@CX Zoom: This should work. Can go straight in your common.js, no imports needed.
// Add (nr) 'no redirect' links after redirects.
mw.hook( 'wikipage.content' ).add( function ( $el ) {
    $el.find( '.mw-redirect' ).each( function (i, e) {
        var sub = document.createElement("sub");
        var link = document.createElement("a");
        var url = new URL(e.getAttribute("href"), window.location.href);
        url.searchParams.set("redirect", "no");
        link.setAttribute("href", url.toString());
        link.setAttribute("title", "Open the link without following redirects");
        link.innerText = "nr";
        e.insertAdjacentElement("afterend", sub);
    } );
} );
Chlod (say hi!) 15:30, 6 October 2022 (UTC)
@Chlod: Thanks a lot, this works for me. But there are some issues, at Special:PageHistory/Wikipedia:Not crystal ball, for example, there is a (nr) link after "cur", "prev", "undo" and page history links from contribs, etc. CX Zoom[he/him] (let's talk • {CX}) 15:41, 6 October 2022 (UTC)
@Chlod: Nevermind, I'll soon get used to it, it doesn't really matter, the (nr) link won't do anything different than the normal link would do in the cases of cur, prev, and undo. CX Zoom[he/him] (let's talk • {CX}) 15:52, 6 October 2022 (UTC)
@CX Zoom: FWIW, you can put
    if ( mw.config.get( 'wgAction' ) !== 'view' ) {
just below the mw.hook( 'wikipage.content' ).add( function ( $el ) { line to have those links only appear when viewing a page. Chlod (say hi!) 23:38, 6 October 2022 (UTC)
User:BrandonXLF/NoRedirect. Nardog (talk) 00:39, 7 October 2022 (UTC)
Thanks Chlod and Nardog. CX Zoom[he/him] (let's talk • {CX}) 07:00, 7 October 2022 (UTC)

Sort categories by rating? සංස්කරණය

Hi, all! I posted this question at the Teahouse and it was suggested that I ask here. I'm looking for a tool that would help me see the assessment ratings in a given category. My specific interest right now is to sort through this list for articles rated C class or lower by Wikiproject Christianity. (It would actually also be useful to see at a glance if there were articles in that list that aren't rated by that Wikiproject, since they all ought to be.) @Tigraan did some initial tinkering (described further on his Teahouse post), but ran into an obstacle since categories are only listed on main pages and ratings only on corresponding Talk pages. I tried using this article quality fetcher, the concept of which works, but it doesn't apply to category pages. Any suggestions? Much thanks! Brian (talk) 19:51, 20 October 2022 (UTC)

If you change line 195 of that AQFetcher.js script to have "Category" instead of "", the script will color article names only in Category space. See User:Jonesey95/AQFetcher.js, which I copied from User:N8wilson/AQFetcher.js and which I will not be maintaining. I suggest that you copy that .js file into your own user space and then load it from your common.js. See the last two lines of User:Jonesey95/vector.js for how to do that. If you make your own copy of the .css file in your User space, you can adjust the colors to make it easier for you to browse for articles that interest you. – Jonesey95 (talk) 20:25, 20 October 2022 (UTC)
Thank you so much! That works like a charm. I've created my own copy, so feel free to delete your test. Brian (talk) 21:35, 20 October 2022 (UTC)

Script not editing text when syntax highlighter is on සංස්කරණය

Hi all! I've cannibalised an old script I found to easily fix old ITN talk templates which haven't been updated since the parameters were changed. The problem I'm having with my script is that it won't work if I have the syntax highlighter on and it also won't properly mark edit's as minor. Here is my script currently: User:Mesidast/Fix ITN Talk.js

I'm presuming the way scripts handle editing have changed since the original script was written and so what I'm doing is probably out of date. If anyone could set me straight on what the current methods are it'd be much appreciated. Mesidast (talk) 11:17, 28 October 2022 (UTC)

Use jQuery.plugin.textSelection. It works for both #wpTextbox1 and #wpSummary. Nardog (talk) 13:41, 28 October 2022 (UTC)
Thanks, I've updated it to use that instead. Do you know about marking it as minor as well? Mesidast (talk) 18:27, 31 October 2022 (UTC)
document.wpMinoredit.checked = true; Nardog (talk) 17:43, 1 November 2022 (UTC)

Working script to block bad images සංස්කරණය

Yes, Mr Z Man's script exists, but it causes a couple of bugs (source discussion tools malfunctioning, latex disappearing) and doesn't work. I'd preferably have it disappear the image from a page but blanking and replacing with a pattern would also work. Aaron Liu (talk) 10:51, 31 October 2022 (UTC)

A script that lets one add or remove articles from the ones that appear in user views. Like a watchlist for userviews. I do not create disambiguation pages because they then appear also in my userviews and it would bloat the count (I created one, and then stopped). I also tend to update articles that surge in the userviews and if I could add other articles to such a watchlist it would help me in updating other articles as well.Paradise Chronicle (talk) 22:30, 25 November 2022 (UTC)

If it called a tool, gadget or script I am not sure. I just believe the possibility of having access to such a watchlist would enhance the wikipedia experience of many.Paradise Chronicle (talk) 22:36, 25 November 2022 (UTC)

What do you mean by "userviews"? Nardog (talk) 05:27, 26 November 2022 (UTC)
@Nardog this one. You'll see that for your info we need to wait a few seconds more.Paradise Chronicle (talk) 01:25, 2 January 2023 (UTC)

Script to receive the Creator Notifications සංස්කරණය

It would allow to have like a watchlist that lets one add an article of which one would be grateful to receive the notifications concerning wikilinks to or from the article in question. We all one day will leave wikipedia and then someone else will need to take care of the articles we created. I believe this is allowed better if one is provided with the possibility to receive the notifications that until now are provided only to the article creators.Paradise Chronicle (talk) 22:30, 25 November 2022 (UTC)

Table of Contents for section hopping in text editor view සංස්කරණය

I think this is a good one. When I edit a page's full wikitext, I often find myself jumping between sections (level 2 headings) but it requires either using my browser's "Find" text search function (and typing the name of the section) or a lot of scrolling up and down. It would be much better if, for instance, I could replace my entire left sidebar (I'm in Monobook, personally) with a table of contents (H:TOC) that I could click to scroll to the relevant anchor within the text editor. Being able to hop between article sections fast would be a big deal for a lot of heavy editors. czar 04:50, 28 November 2022 (UTC)

Have you tried the 2022 Vector skin? It might be what you are looking for. You can select it in Preferences. I'm not a fan myself, but it has its proponents. – Jonesey95 (talk) 06:36, 28 November 2022 (UTC)
That doesn't give you TOC when editing. Nardog (talk) 07:01, 28 November 2022 (UTC)

Script to convert numeric ref names created by VE into standard names සංස්කරණය

Please write a script to alter numeric ref names created by the WP:Visual Editor into reasonable reference names, such as Lastname-YYYY. For example, operating on the article Male gaze, it would change (among others), the reference

  • <ref name=":62">{{Cite book|last1=Christiansen|first1=Keith|title=Orazio and Artemesia Gentileschi|last2=Mann|first2=Judith|publisher=Metropolitan Museum of Art|year=2001}}</ref>


  • <ref name="Christiansen-2001">. . .</ref>

Two additional options would be very welcome:

  1. a throttle (perhaps, |max=N), in order to keep the total number of changes down to a configurable number per edit; this is because as the number gets higher, diffs become increasingly difficult to read and interpret.
  2. numeric (or named) parameters which could be used to override the automatic use of Lastname-YYYY, for a given numeric refname value. This would be useful, in cases where a named reference doesn't use one of the {{citation}} templates (such as, ref ":1" at Male gaze), or where the last name or year is not available (such as ref ":1" at Charles de Gaulle). In the latter case, including the parameter |1=Election-1958 would result in the code
  • <ref name=":1">{{cite web |title=Assemblée nationale. . .</ref>

at Charles de Gaulle, being converted to

  • <ref name="Election-1958">{{cite web |title=Assemblée nationale. . .</ref>

regardless if a different name and year were found, or if none were found. However, the basic functionality of just repairing numeric ref names without any other bells and whistles would be very welcome. See WP:VE/NAMEDREFS for phab tickets about this, and other related info. Mathglot (talk) 07:03, 19 December 2022 (UTC)

While I can't contribute to this at all, this would be fantastic! I know the VE ref names have been a persistent problem. ThadeusOfNazereth(he/him)Talk to Me! 19:17, 19 December 2022 (UTC)
@Mathglot and ThadeusOfNazereth: User:Nardog/RefRenamer. Feel like I may have gone overboard with options but you may try it out (at your own risk, as always). Nardog (talk) 16:37, 7 February 2023 (UTC)
This seems to be working great - I used it on a page w/100+ references and there were zero issues! ThadeusOfNazereth(he/him)Talk to Me! 17:03, 7 February 2023 (UTC)
Wow. A very impressive piece of software. Great job Nardog. –Novem Linguae (talk) 18:42, 7 February 2023 (UTC)
"Wow" is right; truly amazing. Thank you so much for this; it is going to be incredibly useful and helpful, a huge timesaver, and big improvement for the project. It went beyond what I imagined, and worked great at Male gaze and Charles de Gaulle. Don't worry about going overboard with options, they are wonderful. That said, I had to stare at the panel a bit to try to understand all the features, and for a couple of things it wasn't entirely clear right away. I've added a section at the script talk page with some § Questions/suggestions for you. But if you've had enough for now, don't worry; it's great as is! Thanks again, Mathglot (talk) 03:10, 9 February 2023 (UTC)

Script to tag paywalled links with the proper url-access level සංස්කරණය

In many of the citation templates, such as Cite web, Cite news, and Cite book, one of the parameters is "url-access," which adds a visual indicator and a note of whether a source is free to read or requires registration, subscription, or has some other limitation. These can be added manually but it can be a time-consuming process, especially when there's a lot of existing citations. It would be awesome to have a script that automates this whole process. I don't have any kind of coding experience or expertise or else I'd try and take this on myself, but I'd be happy to contribute to any kind of crowdsourcing necessary to put together a list of common sources and their access levels. ThadeusOfNazereth(he/him)Talk to Me! 19:13, 19 December 2022 (UTC)

Shouting into the void, I can report that Crispyshill (talk  contribs) is working on this! ThadeusOfNazereth(he/him)Talk to Me! 18:46, 3 January 2023 (UTC)

Script that detects wls to other language wikipedias සංස්කරණය

I think of a color like the orange for the DABs or green for redirects. Currently I know of red interwikilinks or blue ones. The red ones we can detect and they also automatically change to blue if an article is created. Now the blue ones I do not know how to detect but need to notice that an article in the English wikipedia was created, but wouldn't be encouraged in creating a missing one if the link is shown as blue and therefore suggests an article already exists.Paradise Chronicle (talk) 01:15, 2 January 2023 (UTC)

Current revision id of a page සංස්කරණය

I need a lightweight script that shows the current revision id of a page beside the title of the page, preferably using a separate css class. Thanks! CX Zoom[he/him] (let's talk • {CX}) 14:23, 2 January 2023 (UTC)

Hi, @CX Zoom! This might work for you.
var revid = document.createElement("span");
revid.innerText = mw.config.get("wgRevisionId");
mw.util.addCSS(".first-heading-revid::before { content: '(' } .first-heading-revid::after { content: ')' } .first-heading-revid { color: gray; margin-left: 0.6em; font-size: 0.6em; }");
The CSS class here is first-heading-revid. Line 4 adds (unselectable) parentheses around the revision number and makes it gray and smaller than the page title. You can directly modify line 4 if you want to add special styling. Place it directly in your common.js file, or save it to a JavaScript page and import it with {{lusc}}. Chlod (say hi!) 14:42, 2 January 2023 (UTC)
Exactly what I needed. Thank you very much Chlod! Wishing you a belated Happy New Year! CX Zoom[he/him] (let's talk • {CX}) 14:50, 2 January 2023 (UTC)
You're welcome. Happy New Year!   Chlod (say hi!) 14:51, 2 January 2023 (UTC)
Hi, User:CX Zoom, looks like your problem is already solved, but here's some follow-up that might be interesting to you. If you go to Preferences > Gadgets, the last checkbox under 'Appearance' is "XTools: dynamically show statistics about a page's history under the page heading". This isn't quite what you were asking for, but it does currently show brief, useful stats, including the original rev id (in mouseover). It seems to me it would be a reasonable enhancement to add current rev id there, somewhere. You could check with the Xtools developers, and see if they would add it. Mathglot (talk) 19:51, 9 February 2023 (UTC)

Script similar to Green Redirects but for piped links සංස්කරණය

Green Redirects makes redirects green. Please write a similar script for piped links (making piped links green). Thanks. --Mann Mann (talk) 07:51, 16 January 2023 (UTC)

reference, template, and code folding සංස්කරණය

This is a feature of WikEd, but I only want this particular feature of it. Is it possible? BhamBoi (talk) 21:35, 18 January 2023 (UTC)

Duplicate citations සංස්කරණය

I checked WP:USLIST and didn't see this, but I am looking for a user script to find multiple instances of the same source being cited. That is without properly using WP:REFNAME. --- C&C (Coffeeandcrumbs) 00:38, 21 January 2023 (UTC)

Wikipedia:reFill will combine references that are 100% identical. – Jonesey95 (talk) 01:19, 21 January 2023 (UTC)

User:Alex Smotrov/histcomb.js සංස්කරණය

User:Alex Smotrov/histcomb.js no longer works properly because of a change announced by the developers: "The URLs in "prev" links on page history now contain diff=prev&oldid=[revision ID] in place of diff=[revision ID]&oldid=[revision ID]. This is to fix a problem with links pointing to incorrect diffs when history was filtered by a tag. Some user scripts may break as a result of this change." For more information about the script, see this discussion] at WP:VPT. I am hoping that someone would be willing to take over the script and fix it so it accommodates the technical change made. Alex Smotrov, the developer of the script, hasn't edited in over 10 years, so asking them is not an option. Thanks.--Bbb23 (talk) 20:38, 21 January 2023 (UTC)

@Bbb23. Howdy. I installed this user script and took a look at this history page. I see &diff=prev in all the "prev" links. This is correct behavior, right? Do you see the same? Can you help me find/understand the bug and what needs to be changed? Thanks. –Novem Linguae (talk) 22:17, 22 January 2023 (UTC)
@Novem Linguae: The appearance of revision history pages is the same as it always was. For an explanation as to what doesn't work, take a look at User talk:EdJohnston#Consecutive edits question. Thanks.--Bbb23 (talk) 23:03, 22 January 2023 (UTC)
Sounds like the combined diffs have the wrong link when you click "prev"? I forked this at User:Novem Linguae/histcomb.js and started modernizing the code so that I could read it a little more easily. Will keep working on this in my spare time. –Novem Linguae (talk) 04:14, 23 January 2023 (UTC)
I've forked the script with a fix at User:Nardog/histcomb.js. One caveat is that the undo link is now simply a link to editing the preceding revision, so the edit summary is not prefilled. If it works, I suggest we request an interface-protected edit. Nardog (talk) 05:23, 23 January 2023 (UTC)
@Nardog: I've installed your script, and as far as I can tell, it works correctly. That said, I don't understand what you mean by the caveat and the undo. Could you explain a little more? Also, I don't understand about the request of an interface-protected edit; don't even know what that means. Thanks.--Bbb23 (talk) 14:05, 23 January 2023 (UTC)
"×" used to link to a page like this but now it links to a page like this. The content of the edit form is the same, but the edit summary is not prefilled, the diff is not shown by default, and the edit will not be tagged with "Undo" (but with "Manual revert"). Interface administrators can (and sometimes do) edit .js pages in the userspace of others. Nardog (talk) 14:29, 23 January 2023 (UTC)
I don't get it. I'm not sure what you're comparing (used to vs. now). When I click on "x", it acts normally, meaning it shows me a preview with the edit summary prefilled.--Bbb23 (talk) 14:35, 23 January 2023 (UTC)
Have you tried it on a page where the last series of edits by the same user consists of more than one? Nardog (talk) 14:38, 23 January 2023 (UTC)
I think I see now. I just looked at WP:AN3; the most recent edits are two. You want me to leave the two edits collapsed and click on the "x", in which case I do see what you are referring to. However, I don't know what it did "before" as I don't believe I've ever done that. If I want to revert both edits, I don't click on the "x".--Bbb23 (talk) 14:48, 23 January 2023 (UTC)

Removing/hiding the "X languages"/ "Add languages" link සංස්කරණය

It was suggested to me at the Help Desk that I make my request here. I'm looking for a way to remove or hide the "X languages"/ "Add languages" link in the upper right corner. Any suggestions? Rockfang (talk) 05:17, 25 January 2023 (UTC)

#p-lang-btn, #p-lang-btn-sticky-header {
	display: none;
Nardog (talk) 23:37, 26 January 2023 (UTC)

User:Animum/easyblock.js සංස්කරණය

Hi all, User:Animum/easyblock.js is working for me since the change to Vector 2022. The link to block using the script either doesn't appear at all or its dropdown menu is nested within the Tools dropdown so none of the links can be linked. Ping Amorymeltzer if this is something you could take a look at given your familiarity with it? Thank you~ Callanecc (talkcontribslogs) 04:56, 12 February 2023 (UTC)

Sorry @Callanecc, just seeing this now. I'm not a Vector user and I've largely kept out of the mishegoss around Vector2022, so I don't immediately know what the issue is. ~ Amory (utc) 15:11, 28 February 2023 (UTC)

Ref duplication highlight tool සංස්කරණය

Hello all, I was wondering if a tool could be made that would highlight any citation (such as [5]) which was repeated in sequence, with no interruption of a different citation, within the same paragraph. This would be very helpful for consolidating such unnecessary repetition of duplicate citations, something I like to carry out during reviews to avoid bothering the nominators with such mundane tasks. Not certain how difficult such a thing would be, as I have little to no understanding of coding, but I would very much appreciate it. Iazyges Consermonor Opus meum 19:23, 26 February 2023 (UTC)

  Seeing what I can do... Chlod (say hi!) 14:03, 27 February 2023 (UTC)
Hi, @Iazyges! Please try out User:Chlod/Scripts/DuplicatedRefs.js and see if it works for you. Feel free to tell me if you'd like other changes to be made. Thanks! Chlod (say hi!) 15:07, 27 February 2023 (UTC)
@Chlod: It works very well, thank you so much! Would it be possible to have the script be toggleable from the sidebar, rather than activating automatically? At the present it's triggering on every page. Iazyges Consermonor Opus meum 17:35, 27 February 2023 (UTC)
It also triggers the highlighting if the ending cite of multiple is identical to the beginning cite of multiple (such as [7][8] .... [8][9]); would it be possible to have it consider the cites as a bundle to avoid this? No problem if not. Thanks again! Iazyges Consermonor Opus meum 17:53, 27 February 2023 (UTC)
@Iazyges: I've updated the script to use a link under the toolbox on the sidebar. It'll also prevent triggering for සැකිල්ල:Fake refසැකිල්ල:Fake ref ... සැකිල්ල:Fake refසැකිල්ල:Fake ref, but it will still trigger for සැකිල්ල:Fake refසැකිල්ල:Fake ref ... සැකිල්ල:Fake ref. I'll fix that in a few hours, but do tell me if that's something that should be kept as-is. Thanks! Chlod (say hi!) 00:10, 28 February 2023 (UTC)
@Chlod: Thanks so much! Iazyges Consermonor Opus meum 00:30, 28 February 2023 (UTC)
@Iazyges: I went with your initial suggestion of using bundles, and it went well! Highlights will now be made under two criteria: (1) if the reference bundle (n.b. a single reference also counts as a bundle) is repeated without another, different bundle interrupting it, or (2) if a reference is repeated multiple times in the same bundle (e.g. සැකිල්ල:Fake refසැකිල්ල:Fake refසැකිල්ල:Fake ref). User:Chlod/Scripts/DuplicatedRefs/test has a full list of test cases. Let me know if you need anything else! Chlod (say hi!) 08:12, 28 February 2023 (UTC)
@Chlod: That's awesome, thank you so much! Iazyges Consermonor Opus meum 13:53, 28 February 2023 (UTC)

Search for archived sections සංස්කරණය

Section links to discussion pages are often broken because the section was archived. I suggest a script to help searching the archives based on the anchor in the url. Consider Wikipedia:Village pump (technical)#How to install/activate "Related articles"? I chose an example with quotation and question marks which may require attention. The script could offer a one-click search similar to [1] and either show the search results or go straight to the perfect match Wikipedia:Village pump (technical)/Archive 204#How to install/activate "Related articles"? It should maybe only run on pages where subpage archives are common like talk pages and the Wikipedia namespace. PrimeHunter (talk) 13:59, 27 February 2023 (UTC)

Hi, @PrimeHunter! Perhaps you're looking for User:SD0001/find-archived-section, or are you looking for something different? Chlod (say hi!) 14:02, 27 February 2023 (UTC)
@Chlod: Thanks, that's perfect. Maybe gadgets should be listed at Wikipedia:User scripts/List. PrimeHunter (talk) 14:10, 27 February 2023 (UTC)

Tool that compares homologue citations in different languages සංස්කරණය

Is there/Can there be any tool that would allow me to do something similar as to what is explained here? Ideally this would be a bot job but maybe a tool/script can we designed that does a close enough job. - Klein Muçi (talk) 16:19, 2 March 2023 (UTC)

Tool for symbol fix සංස්කරණය

I would like to request a tool to replace all "(number)-(number)"s in an article to "(number)–(number)", as "–" is the only correct symbol for match score-lines and head-to-head records. Replacing all symbols one by one would be too tedious, so an automated tool is needed. For reference/example: A lot of mistakes on the page Tatsuma Ito. Thanks! Timothytyy (talk) 02:51, 14 March 2023 (UTC)

I haven't used it for a long time, but User:GregU/dashes.js might work for you. – Jonesey95 (talk) 03:58, 14 March 2023 (UTC)
Thanks a lot! Timothytyy (talk) 10:05, 14 March 2023 (UTC)

Is there or can there be a tool that eases the process of reviewing files at Category:Wikipedia_non-free_files_for_NFUR_review? --Minorax«¦talk¦» 04:11, 1 April 2023 (UTC)

force watchlist decay සංස්කරණය

I'd like to convert everything on my watchlist from "Permanent" to "1 year". Someone on Help Desk sent me here.

Even better if I could have "1 year" as the default when editing, but I guess that's not a script thing. —Tamfang (talk) 21:41, 6 April 2023 (UTC)

Tamfang, my script auto-watchlist-expiry can automatically set an expiry for every newly watchlisted page. I don't know how to change any existing entries to be temporary, though. Rummskartoffel 19:31, 7 April 2023 (UTC)
Thanks! —Tamfang (talk) 19:38, 7 April 2023 (UTC)
Thanks as well! Paradise Chronicle (talk) 20:10, 7 April 2023 (UTC)
… Now if only it worked on Reply (in Talk) as well. —Tamfang (talk) 20:29, 17 April 2023 (UTC)
There's currently an open feature request for adding expiry capability to DiscussionTools at phab:T278190. Right now, I'm leaning towards waiting for that to be implemented first, before I roll my own. Rummskartoffel 16:50, 22 April 2023 (UTC)

Highlight when certain MediaWiki namespace pages are transcluded සංස්කරණය

WP:Tech news sometimes contains long lists of Wikis, from which it is difficult to pick out projects that I'm interested in. For example from the latest issue:

...a new set of Wikipedias will get "Add a link" (Moroccan Arabic Wikipedia, Danish Wikipedia, Dinka Wikipedia, Lower Sorbian Wikipedia, Ewe Wikipedia, Greek Wikipedia, Emiliano-Romagnolo Wikipedia, Esperanto Wikipedia, Estonian Wikipedia, Basque Wikipedia, Extremaduran Wikipedia, Tumbuka Wikipedia, Fulah Wikipedia, Finnish Wikipedia, Võro Wikipedia, Fijian Wikipedia, Faroese Wikipedia, Arpitan Wikipedia, Northern Frisian Wikipedia, Friulian Wikipedia, Irish Wikipedia, Guianan Creole Wikipedia, Scottish Gaelic Wikipedia, Galician Wikipedia, Gilaki Wikipedia, Guarani Wikipedia, Goan Konkani Wikipedia, Gothic Wikipedia, Gujarati Wikipedia, Manx Wikipedia)

They're not plain text, but generated using, e.g. {{int:project-localized-name-eowiki/en}}, so I'd like a script please (that I could install on meta, where I read tech news) that would bold the transclusion of an easily-configurable list of those MediaWiki: pages (by "easily configurable" I'm thinking something like a plaintext comma-separated list of wiki names (e.g. "enwiki,enwiktionary") on the script page). Thryduulf (talk) 22:32, 10 April 2023 (UTC)

As discussed here, it would be a good idea if a widget could insert a   topicon on pages marked "vital". This could inform efforts to improve the articles that matter most. Festucalextalk 04:31, 24 April 2023 (UTC)

Sounds more like a job for a bot than for a user script. Nardog (talk) 10:17, 24 April 2023 (UTC)
@Nardog: No, we don't want it to actually place the icons there for everyone. This has been discussed and rejected. What we want is an optional widget that checks WP:VITAL every time a page is loaded and puts a   topicon if it finds it. Festucalextalk 15:09, 24 April 2023 (UTC)
I see. You may try User:Nardog/VitalTopicon.js. Nardog (talk) 17:08, 24 April 2023 (UTC)
@Nardog: Works like a charm, thank you so much! Festucalextalk 18:18, 24 April 2023 (UTC)

Hotcat for Infoboxes සංස්කරණය

It would be a lot easier if we could have a tool to assist with the editing of Infoboxes. There could be some sort of + icon to select from a list of parameters and then type what you want. Or like a way to make text boxes around all the infobox answers. Lmk if there is already a user script for this type of thing. Thanks PalauanReich🗣️ 11:47, 25 April 2023 (UTC)

Section link converter සංස්කරණය

I would like to have a userscript that converts section links formatted like this: Example#section to Example#section § Notes. Thanks, Carpimaps (talk) 12:20, 2 May 2023 (UTC)

Rollback confirmation that behaves like the thanks confirmation සංස්කරණය

When you press the thank button, the same link will expand into a confirmation instead of showing a pop-up. I would love to have a userscript that does the same thing for rollback. Aaron Liu (talk) 13:17, 14 May 2023 (UTC)

Enable "Show a confirmation prompt when clicking on a rollback link" in Preferences. Nardog (talk) 19:02, 14 May 2023 (UTC)
Huh, weird how I never saw that before. Aaron Liu (talk) 20:40, 14 May 2023 (UTC)
"විකිපීඩියා:User_scripts/Requests&oldid=553808" වෙතින් සම්ප්‍රවේශනය කෙරිණි