Wikipedia:User scripts/Requests/Archive 5

From Wikipedia, the free encyclopedia
Archive 1 Archive 3 Archive 4 Archive 5 Archive 6 Archive 7 Archive 9

Eswatini vs. Swaziland sortkeys

Hello!

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)

Introduction helper

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)

Live reload

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)

Request for a source-finder

Can someone possibly make a script that adds {{Find sources mainspace}} (The template itself is "Find sources: "Archive 5" – 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)

Request for "Gender display" gadget

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)

Section sub-headings "outdent"

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 view

Hi, Can such a script be created which removes word m from mobile site and loads (changes) mobile site into desktop site. For example https://en.m.wikipedia.org to https://en.wikipedia.org 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)

Script to display the current time in the upper right corner

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)

merger helper

it'd be great if there were a script capable of:

  1. tagging the current article with the merge from template
  2. tagging the other article with the merge to template
  3. creating a talk page section starting the discussion

thanks fgnievinski (talk) 18:57, 21 February 2021 (UTC)

just found out that Twinkle already does that. fgnievinski (talk) 20:50, 21 February 2021 (UTC)

Removing a template and its associated parameters

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 script

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  – Series of dots that indicates omission 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)

Automatically watch every visited page

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)

Ordering script

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)

Hotkey

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)

Highlight user pages in template categories

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)
		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');
			if (!scroll)
				return;
			this.scrollIntoView();
			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)

Making a new Request

"Hello World" — Preceding unsigned comment added by 203.81.243.189 (talkcontribs)

Troll or serious? Anyway, I happen to have a hello world script sitting around. User:Novem Linguae/Scripts/hello-world.jsNovem Linguae (talk) 12:30, 8 April 2021 (UTC)
Wikipedia:User_scripts/Guide#Hello_world. – SD0001 (talk) 13:20, 17 April 2021 (UTC)

Reordering file upload wizard steps

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)

 – 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)

RM helper script

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)

Default watchlist expiry time

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 automatically

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)

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

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)

Vital Articles helper

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)

Listings for contests

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)

help needed with high use gadget on Commons

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)

A script for listing discussions at WP:ANRFC

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)

AIV script

Can we do a script that will give me a message when a user that I have reported to AIV is blocked? Thanks. — Preceding unsigned comment added by Larryzhao123 (talkcontribs) 16:19, 3 February 2021 (UTC)

User creation log, but only users with edits

Hello! I occasionally browse Special:Log/newusers and catch accounts that violate the username policy that haven't shown up on any edit filters or logs. Because I don't bother with accounts that haven't edited yet, I scroll through and visually look for blue "contribs" links in the sea of red. I realize this wouldn't be super widely used, but would it be hard to write a script for this page to hide (or de-emphasize) users who haven't made any edits yet? I have some coding experience in other languages but have never done anything with JavaScript; I can try to Frankenstein something from existing script functionalities (i.e., detecting redlinks, hiding things on a page), but figured I would post here and see whether people think it's feasible / whether it would be a relatively trivial task for an experienced JS editor. Many thanks, DanCherek (talk) 05:12, 4 February 2021 (UTC)

The snippet $('li.mw-logline-newusers:has(a.mw-usertoollinks-contribs.new)').hide(); should be enough to handle the actual hiding, you just need to trigger it some how. I have a global script at m:User:DannyS712/hide.js that hides a bunch of random stuff when I click on the button it adds to the menu. A simplified version of that for just this would be
mw.loader.using( 'mediawiki.util', function () {
    $(document).ready( function () {
    	if ( mw.config.get('wgCanonicalNamespace') === 'Special' && mw.config.get('wgCanonicalSpecialPageName') === 'Log' ){
	    	mw.util.addPortletLink ( 'p-cactions', 'javascript:void(0)', 'Hide', 'ca-hideStuff', 'hide', "'");
	    	$('#ca-hideStuff').on('click', function() {
	        	$('li.mw-logline-newusers:has(a.mw-usertoollinks-contribs.new)').hide();
	    	} );
    	}
    } );
} );

which would add a "hide" button when viewing Special:Log. Warning: completely untested in this form. Hope this helps --DannyS712 (talk) 05:20, 4 February 2021 (UTC)

@DannyS712: Just tried it, it seems to work like a charm. Thank you so much, I owe you big time! DanCherek (talk) 05:34, 4 February 2021 (UTC)
Resolved

Finding redlinks in a specific article

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)
@DannyS712: Hello. I kept checking this request page on a daily basis for any answers on my request and just saw you gave a relevant code in the section below, so bothered you to ask for help. I really need this function as i am reviewing featured articles on fawiki (current project, Marie Curie) and did not find anyone who is familiar with javascript and also being an active user. I tried to fork User:Alex 21/script-redlinks.js to do such a thing, but unfortunately, I'm not good enough at javascript yet! :) Any help will be appreciated. —Jeeputer (talk) 11:10, 4 February 2021 (UTC)
@Jeeputer: I'm not sure exactly how to make the list, since that would require using the api to retrieve the links and figuring out which ones don't exist, but if you want I can write a snippet to make redlinks more visually distinctive (add a bright border around them or something) while viewing the page? DannyS712 (talk) 18:16, 4 February 2021 (UTC)
@DannyS712: That would be helpful as much. Thank you. —Jeeputer (talk) 18:40, 4 February 2021 (UTC)
@Jeeputer: the snippet $('.new').css( "border", "5px solid yellow" ); should be enough to highlight, you just need to trigger it. Completely untested:
mw.loader.using( 'mediawiki.util', function () {
    $(document).ready( function () {
	    mw.util.addPortletLink ( 'p-cactions', 'javascript:void(0)', 'Highlight', 'ca-hidelightRedLinks', 'highlight');
    	$('#ca-hidelightRedLinks').on('click', function() {
	        $('.new').css( "border", "5px solid yellow" );
	    } );
    } );
} );

hope this helps --DannyS712 (talk) 18:45, 4 February 2021 (UTC)

@DannyS712: Thank you sir, it works well. Regards. —Jeeputer (talk) 21:39, 4 February 2021 (UTC)
@Jeeputer: Running [...new Set([...document.querySelectorAll('.new')].map(a => '*[[' + a.title.replace(/ \([^\)]+\)$/, '') + ']]'))].join('\n') in the browser console (press F12) returns a wiki-ready list of red links (*[[Wikipedia talk:User scripts/Navbox]]\n*[[User:IamNotU]]\n*[[User:Lee Vilenski/GANs]]\n*[[User:Ajbura]]\n*[[Your sandbox]] on this page). Nardog (talk) 09:02, 5 February 2021 (UTC)
@Nardog: It's great! Thank you sir. Btw i'm working on a script to report false positive blocks by edit filters on fawiki. I don't know much about procedures of doing such a thing in enwiki and what templates are used, but i will let you guys know when it's ready. Thanks again. :) —Jeeputer (talk) 10:47, 5 February 2021 (UTC)

Script for Reviewing GAs

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)

 Doing... maybe, let me take a crack at it DannyS712 (talk) 01:31, 8 February 2021 (UTC)

Mode Marker script

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)

Vcite/cite lsa update

@BrandonXLF: could you update the script to also recognize WP:CSVAN and WP:CSLSA? I've updated {{vcite journal}}, {{vcite book}}, etc... to have the class "citation journal csvan", "citation book csvan", etc... Basically only one of class CS1/CS2/CSVAN should be on an article, and the script is useful to find mismatches. So things would look like

  • 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
  • Tansman A. History, Repetition, and Freedom in the Narratives of Nakagami Kenji. Journal of Japanese Studies. 1998;24(2):257–288. doi:10.2307/133235. CSVAN
  • Tansman, Alan. 1998. History, Repetition, and Freedom in the Narratives of Nakagami Kenji. Journal of Japanese Studies 24(2). 257–288. CSLSA
(Note: As of writing, if you have the script installed, you'll have double CS1 and CS2, but a single CSVAN/CSLSA at the end of these citations)

The default/"both" mode could be renamed "mismatch" (or the same name kept), but the functionality updated to reflect that those should be appended when any two of CS1/CS2/CSVAN/CSLSA classes are present on a single article.

Headbomb {t · c · p · b} 16:07, 12 February 2021 (UTC)

Headbomb, it should be done now. I think I'll keep the name "both" for now. BrandonXLF (talk) 19:37, 12 February 2021 (UTC)
Great, thanks a bunch. Headbomb {t · c · p · b} 20:44, 12 February 2021 (UTC)

Script for admins posting "recent death" items to Template:In the news

Would like to make a request for a script to be able to do the following actions, to facilitate the ease of posting recent death items to the In the news section of the main page.

  • Add "(Posted)" on the right side of the level 4 header of the posted item at Wikipedia:In the news/Candidates, and remove any notes in parentheses if they exist in that header, such as "(Ready)" or "(Attention needed)
  • Add "Posted to RD. ~~~~" at the bottom of the discussion at Wikipedia:In the news/Candidates.
  • Adds a link to the nominated article to the top of the bulleted list under "recentdeaths" on Template:In the news (right under the line "<!--New items go on top, remove the last one when posting-->"), and remove the bottom bulleted linked item
  • Posts credits on the user talk page of nominators and updaters: clicking the "give credit" links on the Wikipedia:In the news/Candidates nomination box of the posted item, which generates a pre-populated template that needs to be saved onto the user talk page.

--SpencerT•C 00:47, 14 February 2021 (UTC)

sort see alsos

See also sections are often out of order and manually sorting them is tedious and error prone. A script would help. Thanks. fgnievinski (talk) 18:50, 21 February 2021 (UTC)

Fgnievinski, take a look at User:BrandonXLF/ListSorter. BrandonXLF (talk) 23:31, 10 March 2021 (UTC)
BrandonXLF Thank you! I've tried it in Fresnel zone and it didn't seem to recognize lists containing a space between bullet and item link, as in "* [[item..." fgnievinski (talk) 23:41, 10 March 2021 (UTC)
Fgnievinski, the issue is that Parsoid is treating the list as a transclusion since it's inside the {{div col}} templates, I might need to find another way to get the rendered text of the list items. BrandonXLF (talk) 23:47, 10 March 2021 (UTC)
BrandonXLF Ah, OK. Thanks for looking into this. I've also tried the script at Ellipse and it seems difficult to find the see-also list among myriad of lists. Grouping lists by section might help. Or maybe offer a "ListSorter" link next to section titles, to sort only lists in a given section. But I still think the niche for such a script is really in ignoring all lists except for that in the see-also section. Thanks for your time. fgnievinski (talk) 23:58, 10 March 2021 (UTC)

Specialised Notification

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)

@Meghmollar2017: Do you want notification on a specific namespace or page? This one will show notification on article namespace on day 30 of every month.
function test(){
if (mw.config.get('wgNamespaceNumber') === 0) {
var d=new Date();
if(d.getDate()==30)
{
mw.notify("Your customised text here.");
}
}
} test();
Don't forgot to customise notification text. ~Yahya () • 06:19, 14 March 2021 (UTC)

Script that gives an option to watchlist all subpages of a page

The option to watchlist all subpages of a page would be helpful for pages like WP:RFD. An extension would be to watchlist all possible subpages of a page, but I don't think that would be possible. J947messageedits 00:08, 16 March 2021 (UTC)

A userscript/project to make sure all acronyms/abbreviations have a hover tooltip.

I want all abbreviations on Wikipedia to have Template:Abbr applied to them, like this: HTTP, so that even if you start reading an article halfway through you would never have to spend time tracking down the meaning of an abbreviation you didn't know.

I would like an interface where I get an article, and see a list of all abbreviations on it (which could just be all words longer than 1 letter that are in all caps, but there's edge cases like DoD). I would then choose the first abbreviation, and see every time it was used in context, along with a few clickable suggestions for what it could expand to be based on a dictionary of abbreviations (and ideally things like "Capitalized Phrases in Acronym Form (CPAF)" elsewhere in the article would also be detected, but that's a lot to ask for the initial version). The interface should make it quick to add the template to most but not all instances of the abbreviation, it can't just be an all or nothing choice because it doesn't make sense to add it immediately after its explained or when the abbreviation is a link to its article, for example. Akeosnhaoe (talk) 03:47, 19 March 2021 (UTC)

split section helper

it'd be great if there were a script capable of:

  1. tagging a given section in the current article with template:split section
  2. creating a talk page section starting the discussion

Twinkle offers something similar but for template:merge. fgnievinski (talk) 03:02, 20 March 2021 (UTC)

WhatLinksHere sorted

It would be hugely useful if WhatLinksHere could be sorted alphabetically / by namespace

Yes you can filter a list like Special:WhatLinksHere/WP:UPSD

current
Wikipedia:Featured list candidates ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log ‎ (links | edit)
Talk:Simeticone ‎ (links | edit)
Talk:Hypodermic needle model ‎ (links | edit)
Talk:William Lane Craig ‎ (links | edit)
User talk:Jorm ‎ (links | edit)
Wikipedia:Identifying reliable sources (medicine) ‎ (links | edit)
Wikipedia talk:WikiProject Academic Journals ‎ (links | edit)
User talk:Trasz ‎ (links | edit)
User:Citation bot/use ‎ (links | edit)
Talk:Covalent organic framework ‎ (links | edit)
Wikipedia talk:WikiProject Academic Journals/Journals cited by Wikipedia ‎ (links | edit)
User talk:Vijethnbharadwaj ‎ (links | edit)
Talk:Violence in the Quran ‎ (links | edit)
Wikipedia:WikiProject Reliability ‎ (links | edit)
Talk:Lagos University Teaching Hospital ‎ (links | edit)
User talk:SusunW ‎ (links | edit)
User:Sunrise/common.js ‎ (links | edit)
User:JzG/Predatory ‎ (links | edit)
User talk:Newslinger ‎ (links | edit)
Wikipedia talk:Identifying reliable sources (medicine)/Archive 28 ‎ (links | edit)
Wikipedia:Reliable sources/Perennial sources ‎ (links | edit)
User talk:Mike Christie/Archive14 ‎ (links | edit)
Wikipedia talk:New page patrol source guide ‎ (links | edit)
Wikipedia talk:Verifiability/Archive 68 ‎ (links | edit)
Talk:Coronariae ‎ (links | edit)
Wikipedia talk:WikiProject Articles for creation/2020 1 ‎ (links | edit)
Wikipedia:Bot requests/Archive 80 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 132 ‎ (links | edit)
User talk:JzG/Archive 178 ‎ (links | edit)
Wikipedia:Village pump (technical)/Archive 179 ‎ (links | edit)
User:Dank/Tables ‎ (links | edit)
User:Headbomb/unreliable ‎ (links | edit)
Wikipedia:UPSD (transclusion) ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 133 ‎ (links | edit)
User talk:Megalibrarygirl/Archives/2020/February ‎ (links | edit)
Talk:Coronariae/GA1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1977/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/England cricket team Test results (1975–1989)/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Torrens Trophy/archive1 ‎ (links | edit)
Wikipedia:WikiProject COVID-19 ‎ (links | edit)
Wikipedia:WikiProject COVID-19/Sources ‎ (links | edit)
User talk:Rjwilmsi/Archives/2020/February ‎ (links | edit)
Wikipedia talk:WikiProject Physics/Archive March 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/April 2020 ‎ (links | edit)
User talk:Sphilbrick/Archive 112 ‎ (links | edit)
User:John Cummings/Archive/COVID for orgs/Reference sources2 ‎ (links | edit)
User:I enjoy sandwiches ‎ (links | edit)
User talk:Headbomb/Archives/2020/May ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 136 ‎ (links | edit)
Wikipedia:Featured article review/Atom/archive1 ‎ (links | edit)
Wikipedia:Help desk/Archives/2020 June 8 ‎ (links | edit)
Wikipedia:Featured article review/DNA repair/archive1 ‎ (links | edit)
Wikipedia:Featured article review/archive/July 2020 ‎ (links | edit)
Wikipedia:Vaccine safety/Sources ‎ (links | edit)
User talk:Headbomb/Archives/2020/July ‎ (links | edit)
Wikipedia:Featured list candidates/Ray Bradbury Award/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1963/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of paintings by Thomas Cole/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of awards and nominations received by The West Wing/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1962/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/September 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Louis Schwitzer Award/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot C&W Sides number ones of 1961/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of avisos of Germany/archive1 ‎ (links | edit)
User talk:Creatorhj244 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot C&W Sides number ones of 1960/archive1 ‎ (links | edit)
User talk:Eastfarthingan/Archive 4 ‎ (links | edit)
User talk:SD0001/Archive 3 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/October 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Most Played Juke Box Folk Records number ones of 1945/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of amphibians of Texas/archive1 ‎ (links | edit)
Wikipedia:Featured article review/archive/October 2020 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 144 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Odonata species of Slovenia/archive1 ‎ (links | edit)
User talk:Headbomb/unreliable/Archive 1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Vampire: The Masquerade books/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/November 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Billboard number-one country songs of 1948/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Dayahang Rai filmography/archive1 ‎ (links | edit)
User talk:Headbomb/Archives/2020/November ‎ (links | edit)
Wikipedia:Featured list candidates/List of operas by Carl Maria von Weber/archive1 ‎ (links | edit)
Wikipedia:Wikipedia Signpost/2020-11-29/Op-Ed ‎ (links | edit)
Wikipedia talk:Wikipedia Signpost/2020-11-29/Op-Ed ‎ (links | edit)
Wikipedia:Featured list candidates/List of pinnipeds/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/December 2020 ‎ (links | edit)
User:Dank/FLC ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/January 2021 ‎ (links | edit)
Wikipedia:Featured list candidates/Public sculptures by Daniel Chester French/archive1 ‎ (links | edit)
User talk:GBen3535 ‎ (links | edit)
Wikipedia:Articles for deletion/Current Approaches in Psychiatry ‎ (links | edit)
Wikipedia:Featured list candidates/Filmography of Stanley Kubrick/archive1 ‎ (links | edit)
Wikipedia:Administrators' noticeboard/Archive329 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Billboard number-one country songs of 1952/archive1 ‎ (links | edit)
Wikipedia:Articles for deletion/Log/2021 January 30 ‎ (links | edit)
Wikipedia talk:Featured article candidates/archive84 ‎ (links | edit)
User talk:Headbomb/Archives/2021/January ‎ (links | edit)
Wikipedia:Reliable sources/Noticeboard/Archive 326 ‎ (links | edit)
User talk:Headbomb/Archives/2021/February ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/March 2021 ‎ (links | edit)
User talk:Keavenyh21 ‎ (links | edit)
Wikipedia:Help desk/Archives/2021 March 2 ‎ (links | edit)

But it would be much more useful to have the option to simply sort by namespace

namespace order
  1. Article
  2. Talk
  3. Book
  4. Book talk
  5. Category
  6. Category talk
  7. Draft
  8. Draft talk
  9. Education Program
  10. Edutation Program talk
  11. File
  12. File talk
  13. Gadget
  14. Gadget talk
  15. Gadget definition
  16. Gadget definition talk
  17. Help
  18. Help talk
  19. MediaWiki
  20. MediaWiki talk
  21. Module
  22. Module talk
  23. Portal
  24. Portal talk
  25. Template
  26. Template talk
  27. TimedText
  28. TimedText talk
  29. User
  30. User talk
  31. Wikipedia
  32. Wikipedia talk

then sort alphabetically within those namespaces. For example

better
Talk:Coronariae ‎ (links | edit)
Talk:Coronariae/GA1 ‎ (links | edit)
Talk:Covalent organic framework ‎ (links | edit)
Talk:Hypodermic needle model ‎ (links | edit)
Talk:Lagos University Teaching Hospital ‎ (links | edit)
Talk:Simeticone ‎ (links | edit)
Talk:Violence in the Quran ‎ (links | edit)
Talk:William Lane Craig ‎ (links | edit)
User:Citation bot/use ‎ (links | edit)
User:Dank/FLC ‎ (links | edit)
User:Dank/Tables ‎ (links | edit)
User:Headbomb/unreliable ‎ (links | edit)
User:I enjoy sandwiches ‎ (links | edit)
User:John Cummings/Archive/COVID for orgs/Reference sources2 ‎ (links | edit)
User:JzG/Predatory ‎ (links | edit)
User:Sunrise/common.js ‎ (links | edit)
User talk:Creatorhj244 ‎ (links | edit)
User talk:Eastfarthingan/Archive 4 ‎ (links | edit)
User talk:GBen3535 ‎ (links | edit)
User talk:Headbomb/Archives/2020/July ‎ (links | edit)
User talk:Headbomb/Archives/2020/May ‎ (links | edit)
User talk:Headbomb/Archives/2020/November ‎ (links | edit)
User talk:Headbomb/Archives/2021/February ‎ (links | edit)
User talk:Headbomb/Archives/2021/January ‎ (links | edit)
User talk:Headbomb/unreliable/Archive 1 ‎ (links | edit)
User talk:Jorm ‎ (links | edit)
User talk:JzG/Archive 178 ‎ (links | edit)
User talk:Keavenyh21 ‎ (links | edit)
User talk:Megalibrarygirl/Archives/2020/February ‎ (links | edit)
User talk:Mike Christie/Archive14 ‎ (links | edit)
User talk:Newslinger ‎ (links | edit)
User talk:Rjwilmsi/Archives/2020/February ‎ (links | edit)
User talk:SD0001/Archive 3 ‎ (links | edit)
User talk:Sphilbrick/Archive 112 ‎ (links | edit)
User talk:SusunW ‎ (links | edit)
User talk:Trasz ‎ (links | edit)
User talk:Vijethnbharadwaj ‎ (links | edit)
Wikipedia:Administrators' noticeboard/Archive329 ‎ (links | edit)
Wikipedia:Articles for deletion/Current Approaches in Psychiatry ‎ (links | edit)
Wikipedia:Articles for deletion/Log/2021 January 30 ‎ (links | edit)
Wikipedia:Bot requests/Archive 80 ‎ (links | edit)
Wikipedia:Featured article review/Atom/archive1 ‎ (links | edit)
Wikipedia:Featured article review/DNA repair/archive1 ‎ (links | edit)
Wikipedia:Featured article review/archive/July 2020 ‎ (links | edit)
Wikipedia:Featured article review/archive/October 2020 ‎ (links | edit)
Wikipedia:Featured list candidates ‎ (links | edit)
Wikipedia:Featured list candidates/Dayahang Rai filmography/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/England cricket team Test results (1975–1989)/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/April 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/December 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/January 2021 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/March 2021 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/November 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/October 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Featured log/September 2020 ‎ (links | edit)
Wikipedia:Featured list candidates/Filmography of Stanley Kubrick/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Billboard number-one country songs of 1948/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Billboard number-one country songs of 1952/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot C&W Sides number ones of 1960/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot C&W Sides number ones of 1961/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1962/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1963/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Hot Country Singles number ones of 1977/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Most Played Juke Box Folk Records number ones of 1945/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Odonata species of Slovenia/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of Vampire: The Masquerade books/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of amphibians of Texas/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of avisos of Germany/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of awards and nominations received by The West Wing/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of operas by Carl Maria von Weber/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of paintings by Thomas Cole/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/List of pinnipeds/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Louis Schwitzer Award/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Public sculptures by Daniel Chester French/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Ray Bradbury Award/archive1 ‎ (links | edit)
Wikipedia:Featured list candidates/Torrens Trophy/archive1 ‎ (links | edit)
Wikipedia:Help desk/Archives/2020 June 8 ‎ (links | edit)
Wikipedia:Help desk/Archives/2021 March 2 ‎ (links | edit)
Wikipedia:Identifying reliable sources (medicine) ‎ (links | edit)
Wikipedia:Reliable sources/Noticeboard/Archive 326 ‎ (links | edit)
Wikipedia:Reliable sources/Perennial sources ‎ (links | edit)
Wikipedia:UPSD (transclusion) ‎ (links | edit)
Wikipedia:Vaccine safety/Sources ‎ (links | edit)
Wikipedia:Village pump (technical)/Archive 179 ‎ (links | edit)
Wikipedia:WikiProject COVID-19 ‎ (links | edit)
Wikipedia:WikiProject COVID-19/Sources ‎ (links | edit)
Wikipedia:WikiProject Reliability ‎ (links | edit)
Wikipedia:Wikipedia Signpost/2020-11-29/Op-Ed ‎ (links | edit)
Wikipedia talk:Featured article candidates/archive84 ‎ (links | edit)
Wikipedia talk:Identifying reliable sources (medicine)/Archive 28 ‎ (links | edit)
Wikipedia talk:New page patrol source guide ‎ (links | edit)
Wikipedia talk:Verifiability/Archive 68 ‎ (links | edit)
Wikipedia talk:WikiProject Academic Journals ‎ (links | edit)
Wikipedia talk:WikiProject Academic Journals/Journals cited by Wikipedia ‎ (links | edit)
Wikipedia talk:WikiProject Articles for creation/2020 1 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 132 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 133 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 136 ‎ (links | edit)
Wikipedia talk:WikiProject Medicine/Archive 144 ‎ (links | edit)
Wikipedia talk:WikiProject Physics/Archive March 2020 ‎ (links | edit)
Wikipedia talk:Wikipedia Signpost/2020-11-29/Op-Ed ‎ (links | edit)

This might run into issues when there's multiple pages, but just sorting one page at a time would be great. Headbomb {t · c · p · b} 18:45, 12 March 2021 (UTC)

  • Headbomb — Add {{subst:Lusc|User:GhostInTheMachine/SortWhatLinksHere.js}} to your common.js (vector.js etc.). Let me know if it is OK and I will "publish" it properly — GhostInTheMachine talk to me 11:31, 14 March 2021 (UTC)
    The sort is just by page name, which does group the namespaces together and is cheap and quick. Strict sorting by namespace would be a bit more expensive — GhostInTheMachine talk to me 11:47, 15 March 2021 (UTC)
@GhostInTheMachine: I was thinking more of a "sort" toggle, but this works fine took. Headbomb {t · c · p · b} 01:18, 17 March 2021 (UTC)

@GhostInTheMachine: Found an issue. Look at Special:WhatLinksHere/User:Headbomb/unreliable, 2nd-level bullets should be ordered too. Headbomb {t · c · p · b} 03:09, 20 March 2021 (UTC)

Dang! Should each sub-list be sorted in place, or should all of the lists be joined and sorted as one? — GhostInTheMachine talk to me 14:57, 20 March 2021 (UTC)
@GhostInTheMachine: IMO sorting in-place makes more sense. Headbomb {t · c · p · b} 15:16, 20 March 2021 (UTC)
OK Headbomb — The script now sort sub-lists as well — GhostInTheMachine talk to me 19:05, 20 March 2021 (UTC)

Converting Cite book refs to Sfn

I was wondering if someone could develop a script for converting <ref>{{Cite book|...}}</ref> to use {{Sfn}} and move the {{Cite book}} to a sub-section Bibliography under References (create or append to existing). Duplicate citations could be best handled by AWB gen. fixes. Thanks! — DaxServer (talk to me) 09:43, 14 October 2021 (UTC)

I've created one: User:DaxServer/BooksToSfnDaxServer (talk) 10:03, 28 October 2021 (UTC)

Special:Upload

I want to be able to click "Upload file" on the Wikipedia left sidebar and be sent to Special:Upload instead of Wikipedia:File Upload Wizard. Some Dude From North Carolina (talk) 13:46, 20 July 2021 (UTC)

@Some Dude From North Carolina You could probably do this via User:BrandonXLF/PortletLinks. ―Qwerfjkltalk 15:24, 20 July 2021 (UTC)
@Some Dude From North Carolina: you could just add the following to your common.js:
var uwz = document.getElementById("n-upload");
if (uwz) { uwz.children[0].href = "/wiki/Special:Upload"; }
Terasail[✉️] 15:36, 20 July 2021 (UTC)
Thanks! Some Dude From North Carolina (talk) 15:40, 20 July 2021 (UTC)
Single-line approach that doesn't pollute the global scope:
$('#n-upload > a').attr('href', '/wiki/Special:Upload');
Nardog (talk) 18:01, 21 July 2021 (UTC)

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

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)

All Z number templates have deleted per TFD, so this is moot now. – SD0001 (talk) 15:55, 19 September 2021 (UTC)

It would be nice to have a script that allows you to easily modify the table @ WP:RSPSOURCES. Dr. Swag Lord (talk) 23:23, 26 May 2021 (UTC)

Dr.Swag Lord, Ph.d, it's not a perfect solution, but you could try installing User:Novem Linguae/Scripts/VisualEditorEverywhere, editing the page in visual editor mode, and double clicking the table to edit it. This method would allow you to modify existing text pretty easily, but I don't think it'd be particularly easy to add rows or change row colors due to the transcluded templates used. –Novem Linguae (talk) 01:47, 27 May 2021 (UTC)
Novem Linguae, Oh, that's much easier! Thanks! If I could make a suggestion...it's slightly confusing when you have "two edit" tabs on every page, so it might be better if your edit tab read "edit visually" or "edit visual." Additionally, for every section that contains the two tabs, it might be better if your tab said something like "edit visual" or "edit (v)". Just a thought I had. :) Dr. Swag Lord (talk) 02:23, 27 May 2021 (UTC)
Dr.Swag Lord, Ph.d, just to confirm, the two links are called "edit" and "edit", not "edit" and "edit source"? Try going to Preferences -> Editing -> Editing mode -> select "Show me both editor tabs". That should change the names of one of them to "Edit source", and then the visual editor one will be called "Edit". Good feedback though. I'll look into having my script fix "edit"/"edit" without having to go into preferences. –Novem Linguae (talk) 02:34, 27 May 2021 (UTC)
Novem Linguae, Hmm, that's strange. Before I hit the visual edit tab, one tab read "edit" and the other read "edit source." However, once I was in the visual editor, both tabs were re-named to just "edit." But changing my preferences to "Show me both editor tabs" fixed the problem. Thanks again. Dr. Swag Lord (talk) 02:45, 27 May 2021 (UTC)

One-click copy page title into edit buffer

I'm frequently copy-pasting the page title like this: [highlight the page title at the top of the page]. cntrl-c to copy into buffer. It would save mouse movement and keyboard time if there was a button next to the page title when clicked automatically loaded the edit buffer with the page title. This sort of thing is often seen in websites where it offers a pre-made password or some other long string so you don't have to copy it manually, just hit the button. -- GreenC 03:14, 5 June 2021 (UTC)

  • +1 All the time. Also not sure if it's Monobook's formatting but when triple-clicking the title, I sometimes copy a terminating new line into my clipboard as well. Would live to see this script. czar 04:26, 5 June 2021 (UTC)
    I had a script for copying "Page name#Section title" written for myself, so I just repurposed it for just the page name as well: User:Nardog/CopySectLink.js. It should add "copy" after each heading. Clicking on it will copy the unencoded page name, while you can also copy the full URL if you right-click on it and select your browser's native "Copy link". It might be rough around the edges (and it doesn't work with Minerva) but it works fine for me. Nardog (talk) 13:37, 5 June 2021 (UTC)
    Dang. Nardog posted his while I was writing mine. I wrote a simple script here. Just adds a "Copy" button next to the page title, and when clicked, copies it to the clipboard. Nardog's is pretty nice... the button is a small link that fits nicely with the existing page aesthetic, it does section titles too, and it pops up a little modal notification (the same modal used when watchlisting a page). Props. –Novem Linguae (talk) 17:08, 5 June 2021 (UTC)

@Nardog: This is so useful, thank you very much! Hope it gets advertised around. Should be standard, or Preferences option, IMO. It's the sort of thing you don't realize until it exists. My only suggestion would be to make the modal notification optional as it seems like there is a slight delay on clicking "copy", which I assume is due to that? Or could be my environment working over a VNC.-- GreenC 14:21, 14 June 2021 (UTC)

Actually it's now working snappy, there must have been something with VNC on the first try but with subsequent it's fine. The popup is useful feedback. -- GreenC 14:25, 14 June 2021 (UTC)
@GreenC: Glad you like it! If there's a delay it implies the copying process itself is stalled, since the module used to show the notification must have already been loaded by the time the script is loaded. What does the notification say, "Copied" or "Probably copied"? The copying process is sort of twofold, starting with the clipboard API that became supported by modern browsers only a couple years ago, and if it fails, it falls back on an older, less sophisticated method (hence "probably"). If the latter is used, it might lag a little. Nardog (talk) 15:40, 14 June 2021 (UTC)
I'm seeing just "Copied" now and don't recall what it said when there was the delay, but probably not probably since it's the same browser. There could be some cache or loading involved on the first time. -- GreenC 15:48, 14 June 2021 (UTC)
Hmm, yeah, it's probably the browser establishing access to the system clipboard or something then. Nardog (talk) 15:55, 14 June 2021 (UTC)

Script that can add the Short Description gadget to search results

Please can you make a script that enabled the Short Description gadget on search results i.e. showing the options next to each title, to help with requests such as this one by SD0001, for search results like these. Thanks! ―Qwerfjkltalk 18:42, 19 July 2021 (UTC)

Add User:SD0001/shortdescs-in-category. Pick an article at random from the above search results and go to a category page. Trigger the script via the Show SDs button. Pick another category and repeat... — GhostInTheMachine talk to me 21:19, 19 July 2021 (UTC)

Section links in history

Currently, the section links in page history edit summaries link to the current revision of the article. It'd be nice if those links linked to the revision of the edit in question. For example, the first edit in this page of the history of the Dog article links https://en.wikipedia.org/wiki/Dog#Dog_coats,_colors,_and_marking , a section that doesn't exist in the current article; I would prefer it to link https://en.wikipedia.org/w/index.php?title=Dog&oldid=7132969#Dog_coats,_colors,_and_markings. This would be beneficial for quickly jumping to the relevant sections for old edits to long articles. Kuinyo (talk) 03:35, 12 September 2021 (UTC)

This does it:
mw.config.get('wgAction') === 'history' &&
$.when($.ready, mw.loader.using('mediawiki.util')).then(function () {
	$('.autocomment > a').attr('href', function () {
		return mw.util.getUrl(null, { oldid: $(this).closest('li').data('mwRevid') }) + this.hash;
	});
});
Nardog (talk) 12:39, 13 September 2021 (UTC)
Awesome, thanks! Kuinyo (talk) 01:18, 15 September 2021 (UTC)

Undo even when there are intermediary edits to the paragraph

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)

@Þjarkur: I'm working on this. Deep down, an edit conflict and undo failure are the same thing, so whatever I come up with for Wikipedia:Village pump (proposals)/Archive 177#Edit conflict mitigation: early-warning tool will work for undo failures also. Suffusion of Yellow (talk) 20:57, 5 April 2021 (UTC)

Warn about syntax & template errors when saving

When I click "Save" the script should warn me about syntax errors or template errors I created --Distelfinck (talk) 16:47, 23 May 2021 (UTC)

Scripts Request

I need a Scripts with which to replace the main page by removing the redirected page in any namespace. Ex- [[বাংলাদেশ|Bangladesh]] →[[Bangladesh|Bangladesh]]. If there is already a Scripts to do this, please provide a link or not can anyone work to make it. Please ping me to reply -Shakil Hosen Talk 18:04, 16 April 2021 (UTC)

Hey Shakil Hosen, you might want to take a look at AWB. EpicPupper (talk) 16:25, 31 May 2021 (UTC)

Mass rollback selected contributions

This is more of a nice to have than anything that will be super widely used, but I figured I might as well propose it anyway. There are currently two scripts enabling rollbackers to mass-revert edits by a given user from Special:Contributions with a summary: Writ Keeper's massRollback just reverts all edits, and Kangaroopower's Mass Rollback reverts either the last 50 or the last X edits. Both of those are very useful, but don't work in some edge cases where a large number of edits needs to be reverted, but indiscriminate reversion would be inappropriate. I'm mostly thinking of good-faith but erroneous mass-edits that are discovered after the user in question has already made further edits, which makes rolling back the last X contributions infeasible, or block-evasion reverts where many edits need to go, but the reversion of some of them would e.g. reinstate vandalism or remove unblock requests. What I'd be looking for is a script that allows both "indiscriminate" mass-reversion and reversion of edits selected with a tickbox (with a summary), similar to the revision deletion feature in mediawiki or Enterprisey's cv-revdel – coupled with Navpopups, this would speed up bulk reversions significantly. Blablubbs|talk 12:26, 25 March 2021 (UTC)

Might be easy enough for @Writ Keeper to incorporate in the existing script? – SD0001 (talk) 12:57, 28 May 2021 (UTC)
@SD0001 (and Blablubbs, if you're still around): I went ahead and did this. You should see a column of checkboxes, along with a new button called "rollback selected"; the interface should be straightforward. Of note if you're an admin: just for this script I tried to keep the UI as simple as possible, but it hooks into the same interface that my massRevdel script uses, and the revdel script will give you a few more controls (select all/select none/invert selection). As always, let me know how it works if y'all use it. Writ Keeper  21:02, 28 May 2021 (UTC)
Awesome! Thank you. :) --Blablubbs|talk 21:17, 28 May 2021 (UTC)
@Writ Keeper: I was just about to try this, but I'm missing the checkboxes – does the script rely on the default mediawiki checkboxes that are used to change visibility and tags? If so, then I think this feature may currently be limited to sysops. --Blablubbs|talk 07:47, 30 May 2021 (UTC)
@Blablubbs: Oh dang! You're quite right, thanks for letting me know. Sometimes I forget to check how the interface might be different for non-admins. Should be fixed now! Writ Keeper  15:10, 30 May 2021 (UTC)
@Writ Keeper, thanks, they're showing up now. Sorry to ping you again about this, but I just tried to run a mass-rollback on a /64 and the script refused; not sure if this is reproducible, but could it be related to your recent changes to the script? --Blablubbs|talk 20:24, 31 May 2021 (UTC)
@Blablubbs: Honestly, my vague memory is that that behavior is not new, and there are technical issues that prevent it from working on IP ranges. Not sure though; I'll take a look. Do you remember it working for IP ranges previously?
EDIT: No, I see that I have code specifically for handling the case of an IP range, so not sure what that's about. Looking into it. Writ Keeper  21:02, 31 May 2021 (UTC)
DOUBLE EDIT: Aha! Bug found and squashed. Should be working for IP ranges now. Thanks for the bug report! Writ Keeper  21:30, 31 May 2021 (UTC)

CCI

A tool to sort through the edits made by a contributor. Heart (talk) 21:23, 31 May 2021 (UTC)

Hi, HeartGlow30797! Answering here in my capacity as both CCI editor and userscript developer. "sort through" here is quite difficult to interpret. You mean sort the diffs by something else than size? Or navigate through each diff sequentially? Or something else? In any case, each diff by a contributor is sorted through manually and checked by the CCI editor using a set of tools or using their set of skills. There's no way to automatically check for copyright violations, as in most cases the tools are not enough to detect copyright violations. For example: Earwig's Copyvio Tool can detect violations of live webpages, but can't detect violations from pages which are already 404'd from existence. Likewise, it can't handle book violations and violations from other offline sources. So there's no easy way to simply "sort through" edits, especially when some cases are complex and have large pages of thousands of edits. Chlod (say hi!) 21:45, 31 May 2021 (UTC)

PINOFF (Pages In Need Of Fixing Finder)

A script which searches the wiki for articles with lots of templates like {{Citation Needed}} and adds the top ten to a table in my userspace, than sorts the table in order of most templates. Template pages, talk pages, and documentation pages will be ignored. I will try to develop a script, but I would like if someone helped me by providing some basic code. 'Ridge(Conversation|Fascination|Imagination) 13:16, 2 June 2021 (UTC)

Unoriginally Named Editor. Might need a bot for this one. WP:BOTREQ might be worth investigating, if others agree that this is a good task for a bot. As for how to implement... I wonder if there is a way to query the replica database and see how many times a template is transcluded on a specific page? –Novem Linguae (talk) 13:31, 2 June 2021 (UTC)
My words say 'OK. I'll check with others.' but my thoughts say 'Welcome to the world, lil' Unoriginally Named Bot.' 'Ridge(Conversation|Fascination|Imagination) 13:45, 2 June 2021 (UTC)