There was a recent
village pump thread about either
Enterprisey's or
Equazcion's "Script Installer" tool becoming a gadget. It wasn't officially closed, and so far neither has become a gadget. Stay tuned for updates.
On a sadder note, just this morning we said goodbye to
Abelmoschus Esculentus, a prolific script writer.
We are three months in to this newsletter and everything is going great–keep on creating amazing new scripts! Who knows–maybe the scripts will take over one day... --
DannyS712 (
talk)
17:59, 28 February 2019 (UTC)reply
Pending requestsWikiProject Portals is looking for some help making scripts...
The Wikimedia Foundation has requested help with the testing of and feedback on a new tool for "Automated article section recommendations" for stub articles. See
the village pump notice for more.
News and updates associated with user scripts from the past month (April 2019). Hello everyone and welcome to the 5th issue of the Wikipedia
Scripts++ Newsletter:
Twinkle has a new update (
more). It now supports partial blocks and includes the select2 library as a dependency. Select2 is available at
MediaWiki:Gadget-select2.min.js for other gadgets and scripts to use.
Miscellaneous
Until now, this newsletter has been written primarily by me (DannyS712).
If others would like to contribute, help is always appreciated;
Automatically detecting Good Article, Featured Article, and Featured List status, and limiting ORES predictions to B-class
An updated version of
Twinkle was released. Features relating to the recently-enabled partial blocks include automatic lookup of pages and expanded options for block templates. See a full list of changes
here
For users of
Enterprisey's easy-brfa script, the bug with transcluding new BRFAs has been resolved
For any scripts that previously made use of the API to change a page's content model, a new API module is available: use action=changecontentmodel to specify the new content model of an existing page. Documentation is available:
mw:API:ChangeContentModel.
The dispute resolution noticeboard wizard is no longer a gadget, but rather is loaded using withJS and withCSS. See the discussion at
MediaWiki talk:Gadget-DRN-wizard.js
Pending requests
A script to help file movers process requests, including
renaming the file
updating file links
removing the {{Rename media}} template (when relevant)
Enterprisey's reply-link has been updated to fail less, especially around template transclusions.
Twinkle released new features, including a new option to disable individual modules, support for stub template nomination at CfD, and integration with the PageTriage extension used to patrol new pages. (
See full list of changes)
Open tasks
The mediawiki.notify resource loader module was deprecated and is no longer needed; its functionality is now available by default. See
mw:ResourceLoader/Migration guide (users) for more. Any dependency on it should be removed.
Twinkle's
Morebits library added a new Morebits.date class to replace the moment library. It can handle custom formatting and natural language for dates, as well as section header regexes. If you were using getUTCMonthName or getUTCMonthNameAbbrev with Date objects, those have been deprecated and should
be updated.
Enterprisey's parsoid-round-trip uses
Parsoid to convert wikitext to HTML and back, and then shows the result and the difference between the original wikitext and the post-conversion wikitext.
Frietjes's infoboxgap assists in renumbering infobox labels/data/classes, so that a new line can be inserted in the middle of the infobox.
Twinkle has made a number of improvements, including using a change tag to identify actions made with it and automatically filing edit requests for protected XfD nominations.
GeneralNotability's spihelper updated to 2.2.10, fixing a number of small bugs, automatically tagging globally locked socks as such in the sockpuppet template, and restoring open cases following an SPI history merge.
Enterprisey's script-installer gadget has been updated with more internationalization of messages, as well as addition of a user preference, window.scriptInstallerInstallTarget to allow controlling where new scripts are to be installed.
Enterprisey's copy-section-link adds popups to section headers which has an appropriate wikilink and external link to the section.
DannyS712's FindBlacklistEntry can be used to figure out which line(s) in either the local or global spamblacklist prevent a particular url from being added.
The
Watchlist Expiry feature worked on by the Community Tech team has been enabled on Wikipedia. For scripts that include watching or unwatching pages, developers may want to update their code to take advantage of the new functionality. See the documentation
on mediawiki.org.
As noted in the prior issue,
Enterprisey's links-in-logs script has now been implemented as part of MediaWiki core. By my count, this is his third script that was replaced by implementing the code in MediaWiki core or an extension, along with
link-section-edits and
abusefilter-hide-search. Additionally, his
reply-link script is being converted in part to
mw:Extension:DiscussionTools. Are there any other scripts that might be worth integrating directly in MediaWiki? Thoughts would be welcome at
Wikipedia talk:Scripts++.
User:Ahecht/Scripts/pageswap - version 1.4 fixes reading destination from form field if destination is not in article namespace, and fixes self redirects.
Wikipedia:XFDcloser - version 4 brings a new user interface for dialogs, some preferences for customising XFDcloser, major behind-the-scenes coding changes, and resolves various issues raised on the talkpage. Also, since version 3.16.6 non-admin soft delete closure have been allowed at TfD.
Open tasks
As a reminder, the legacy javascript globals (like accessing wgPageName without first assigning it a value or using mw.config.get('wgPageName') instead) are deprecated. If your user scripts make use of the globals, please update them to use mw.config instead. Some
global interface editors or local
interface administrators may edit your user script to make these changes if you don't. See
phab:T72470 for more.
Miscellaneous
For people interested in creating user scripts or gadgets using
TypeScript, a types-mediawiki package (
GitHub,
NPM) is now available that provides type definitions for the MediaWiki JS interface and the API.
A
GitHub organization has been created for hosting
codebases of gadgets. Users who maintain gadgets using GitHub may choose to move their repos to this organization, to ensure continued maintenance by others even if the original maintainer becomes inactive.
As always, if anyone else would like to contribute, including nominating a featured script, help is appreciated. Stay safe, and happy new year! --
DannyS712 (
talk)
01:17, 3 February 2021 (UTC)reply
FoldArchives collapses archived talk page threads in order to reduce screen space
GoToTitle converts the page title into an input field for navigating to other pages
UserHighlighter adds highlighting to links to the userpages, talk pages, and contributions of administrators and other user groups as well as tooltips to indicate which groups a user is in
filterDiff: Adds a "Show changes" button to the filter editor.
filterNotes: Parses filter notes as wikitext (so links are clickable), and signs and dates new comments for you.
filterTest: Adds a "Test changes" button. Opens
Special:AbuseFilter/test with what's currently in the edit form, not with what's saved in the database, so you don't have to copy-paste your changes.
Twinkle has a number of improvements, including that most watchlist defaults now make use of the new
temporary watchlist feature. Other changes include rollbacks treating consecutive IPv6 editors in the same /64 range as the same user, adding a preview for shared IP tagging, a preference for watching users after CSD notification, and for sysops, the ability to
block the /64 and link to a
WP:RfPP request, and new copyright blocks default to indefinite.
Wikipedia:Shortdesc helper now v3.4.17, changes include minor fixes and preventing edits that don't change the description.
Joeytje50's JWB now version 4.1.0, includes the ability to generate page lists from the search tool, major updates to the handling of regular expressions, the storing of user settings, the addition of upload protection, and an option to skip pages that belong to a specific category, among other changes. See
User:Joeytje50/JWB/Changelog for a full list of recent changes.
Wikipedia:User scripts/List has been revamped to make it easier to find scripts suited for your needs. If you know of a cool script that is missing on the list, or a script on the list that is no longer working, please edit the list or let us know on
the talk page.
My apologies for this long-overdue issue, and if I missed any scripts. Hopefully going forward we can go back to monthly releases - any help would be appreciated. Thanks, --
DannyS712 (
talk)
13:04, 2 June 2021 (UTC)reply
Hello everyone, and welcome to the 22nd issue of the Wikipedia
Scripts++ Newsletter. This issue will be covering new and updated user scripts from the past seven months (June through December 2021).
Got anything good? Tell us about your new, improved, old, or messed-up script
here!
Featured script
LuckyRename, by Alexis Jazz, is this month's featured script. LuckyRename makes requesting file moves easier, and automates the many steps in file moving (including automatic replacement of existing usage). Give it a shot!
Updated scripts
SD0001: hide-reverted-edits has been updated to take into account changes in reversion tools like Twinkle and RedWarn.
ClaudineChionh: SkinSwitcher (a fork and update of
Eizen's
script) provides an options menu/toolbox/toolbar allowing users to view a given page in MediaWiki's default skins.
Wikipedia:User scripts/Ranking is a sortable table of Wikipedia's thousand-or-so most commonly used scripts; it includes their author, last modification date, installation count, and sometimes a short description.
Toolhub is a community managed catalog of software tools used in the Wikimedia movement. Technical volunteers can use Toolhub to document the tools that they create or maintain. All Wikimedians can use Toolhub to search for tools to help with their workflows and to create lists of useful tools to share with others.
draft-sorter sorts AfC drafts by adding WikiProject banners to their talk pages. It supersedes
User:Enterprisey/draft-sorter, adding a few features and fixing some bugs.
BooksToSfn adds a portlet link in
Visual Editor's source mode editing, in main namespace articles or in the user's Sandbox. When clicked, it converts one {{
cite book}} inside a <ref>...</ref> tag block into an {{
Sfn}}.
diffedit enables editing directly from viewing a diff "when, for instance, you notice a tiny mistake deep into an article, and don't want to edit the entire article and re-find that one line to fix that tiny mistake".
warnOnLargeFile warns you if you're about to open a very large file (width/height >10,000px or file size >100 MB) from a file page.
QuickDiff (by OneTwoThreeFall at Fandom) lets you quickly view any diff link on a wiki, whether on Recent Changes, contribs pages, history pages, the diff view itself, or elsewhere. For more information, view its
page on Fandom.
talkback creates links after user talk page links like this: |C|TB (with the first linking to the user's contributions, and the latter giving the option of sending a {{talkback}} notice). It also adds a [copy] link next to section headers.
diff-link shows "copy" links on history and contributions pages that copy an internal link to the diff (e.g.,
Special:Diff/1026402230) to your clipboard when clicked.
auto-watchlist-expiry automatically watchlists every page you edit for a user-definable duration (you can still pick a different time using the dropdown, though).
generate pings generates the wikitext needed to ping all members of a category, up to 50 editors (the limit defined by MediaWiki).
share ExpandTemplates url allows for easy sharing of your inputs to
Special:ExpandTemplates. It adds a button that, when clicked, copies a shareable URL to your exact invocation of the page,
like this. Other editors do not need to have this script installed in order to access the URL generated.
show tag names shows the real names of tags next to their display names in places such as page revision histories or the watchlist.
ColourContrib color-codes the user contributions page so that pages you've edited last are sharply distinguished from pages where another editor was the last to edit the page.
All in all, some very neat scripts were written in these last few months. Hoping to see many more in the next issue --
drop us a line on the talk page if you've been writing (or seeing) anything cool and good. Filling in for DannyS712, this has been jp×g. Take care, and merry Christmas! jp×g07:30, 24 December 2021 (UTC)reply
New year, new scripts. Welcome to the 23rd issue of the Wikipedia
Scripts++ Newsletter, covering around 39% of our favorite new and updated user scripts since 24 December 2021. That’s right, we haven’t published in two years! Can you believe it? Did you miss us?
Got anything good? Tell us about your new, improved, old, or messed-up script
here!
User:Alexander Davronov/HistoryHelper has now become stable with some bugfixes and features such as automatically highlighting potentially uncivil edit summaries and automatically pinging all the users selected.
To a lesser extent, the same goes for
User:PrimeHunter/Search sort.js. I wish someone would integrate the sorts into the sort menu instead of adding 11 portlet links.
Aaron Liu:
Watchlyst Greybar Unsin is a rewrite of Ais's Watchlist Notifier with modern APIs and several new features such as not displaying watchlist items marked as seen (hence the name), not bolding diffs of unseen watchlist elements which doesn’t work properly anyways, displaying the rendered edit summary, proper display of log and creation actions and more links.
Alexis Jazz:
Factotum is a spiritual successor to reply-link with a host of extra features like section adding, link rewriting, regular expressions and more.
User:Aveaoz/AutoMobileRedirect: This script will automatically redirect MobileFrontend (en.m.wikipedia) to normal Wikipedia. Unlike existing scripts, this one will actually check if your browser is mobile or not through its secret agent string, so you can stay logged in on mobile! Hooray screen estate!
Deputy is a first-of-its-kind copyright cleanup toolkit. It overrides the interface for
Wikipedia:Contributor copyright investigations for easy case processing. It also includes the functionality of the following (also new) scripts:
User:Elominius/gadget/diff arrow keys allows navigation between diffs with the arrow keys. It also has a version that requires holding Ctrl with the arrow key.
Frequently link to Wikipedia on your websites yet find generating CC-BY credits to be such a hassle? Say no more!
User:Luke10.27/attribute will automatically do it for ya and copy the credit to yer clipboard.
User:MPGuy2824/MoveToDraft, a spiritual successor (i.e. fork) to
Evad37's script, with a few bugs solved, and a host of extra features like check-boxes for choosing draftification reasons, multi-contributor notification, and appropriate warnings based on last edit time.
/CopyCodeBlock: one of the most important operations for any scripter and script-user is to copy and paste. This script adds a copy button in the top right of every code block (not to be confused with <code>) that will, well, copy it to your clipboard!
m:User:NguoiDungKhongDinhDanh/AceForLuaDebugConsole.js adds the
Ace editor (a.k.a. the editor you see when editing JS, CSS and Lua on Wikimedia wikis) to the Lua debug console. "In my opinion, whoever designed it to be a plain <textarea> needs to seriously reconsider their decision."
GANReviewTool quickly and easily closes good article nominations.
ReviewStatus displays whether or not a mainspace page is marked as reviewed.
SpeciesHelper tries to add the correct speciesbox, category, taxonbar, and stub template to species articles.
User:Opencooper/svgReplace and
Tol's fork replaces all rasterized SVGs with their original SVG codes for your loading pleasures. Tell us which one is better!
ArticleInfo displays page information at the top of the page, directly below the title.
/HeaderIcons takes away the Vector 2022 user dropdown and replaces it with all of the icons within, top level, right next to the Watchlist. One less click away! There's also an
alternate version that uses text links instead of icons.
Hello everyone, and welcome to the 24th issue of the Wikipedia
Scripts++ Newsletter, covering all our favorite new and updated user scripts since 24 December 2021. Uh-huh, we're finally covering the good ones among the rest! Aren't you excited? Remember to include a link in double brackets to the script's .js page when you install the script, so that we can see who uses the script in WhatLinksHere! The ScriptInstaller gadget automatically does this.
Aaron Liu (
talk)
01:00, 1 March 2024 (UTC)reply
Got anything good? Tell us about your new, improved, old, or messed-up script
here!
Featured script
Making user scripts load faster by SD0001 is this month's featured script, which caches userscripts every day to eliminate the overhead caused by force-downloading the newest version of scripts every time you open a Wikipedia page. Despite being released in April 2021, our best script scouters have failed to locate it due to its omission from
the US of L. For security reasons, the script only supports loading JavaScript pages.
Newly maintained scripts
After earthly attempts at improving the original have failed...
Ahecht has created
a fork of
SiBr4/TemplateSearch, which adds the "TP:" shortcut for "Template:" in the search box, and updated it to be compatible with Vector 2022.
AquilaFasciata/goToTopFast is a much faster fork of the classic goToTop script that also adds compatibility for Minerva and Vector 2022.
Without caching. Each script takes 400–500ms. A particularly large script takes 1.11 s! Internet download speed is 50 Mbps.With caching enabled. Each script takes just 1-2 ms to load.
Improve a script
Unfortunately, this section has remained nearly identical. Help us out here!
To a lesser extent, the same goes for
PrimeHunter/Search sort. I wish someone would integrate the sorts into the sort menu instead of adding 11 portlet links.
Dragoniez/SuppressEnterInForm stops you from accidentally submitting anything due to pressing enter while in the smaller box, and works on almost anything... except the InputBox element itself, used in subscription lists and
the Signpost Crossword! Oh, the humanity!
Doǵu/Adiutor(pictured) provides a nice, integrated interface to do some twinkley tasks such as copyvio detection, CSD tagging, and viewing the most recent diff.
Eejit43 has quite the aesthetically pleasing scripts, all made in
TypeScript.
/afcrc-helper is a replacement for the unmaintained
Enterprisey/AFCRHS and processes Redirects for Creation and Categories for Creation requests.
/ajax-undo stops the "undo" button from taking you to another page while providing a text box to provide a reason for the revert.
/redirect-helper(pictured) adds a much better interface for editing and redirects, including categorization, for which valid categories are dictated by
/redirect-helper.json.
/rmtr-helper helps process technical requested moves without being able to actually move them.
Guycn2/UserInfoPopup(pictured) adds a flyout after the watchlist star on userspace pages that displays the common information you might use about a user.
Jeeputer/editCounter, under userspace, adds a portlet link to count your edits by namespace, put them in a table, and put that table in a hardcoded subpage, all in the background.
Hilst/Scripts/sectionLinks converts all section links to use the § sign, which are known to be preferred over the ugly # by 99% of the devils I've met.
PrimeHunter/Category source.js adds portlet links to tell you where a category for an article comes from and supports those from template transclusions.
Sophivorus's
MiniEdit adds some nice, li'l buttons next to paragraphs to edit their wikitext with a minimal interface.
Edit-listings
Dragoniez/ToollinkTweaks adds more and customizable links next to users in page history, logs, watchlist, recent changes, etc.
Firefly/more-block-info optimizes the display of rangeblocks in contribution pages. Doesn't work outside the English locale of any wiki, unfortunately.
NguoiDungKhongDinhDanh/AjaxLoader makes paging links (e.g. older 50, 500, newest) load without refreshing and makes you realize how slow your internet actually is.
Appearance-ricing
Ahecht/RedirectID adds the redirect target to all redirects. For all the
WP:NAVPOPS haters. (Do these exist?)
Dragoniez/MarkBLockedGlobal: Remember the "strike blocked usernames" gadget? Now you can use a red, dotted line to highlight rangeblocks and global locks!
Jonesey/common(pictured) has some styles to overhaul your Vector 2022 experience. It reduces padding everywhere, and makes the top bar animation faster.
Aaron Liu/V22 is a fork that narrows the sidebars instead of upheaving them, reverts the January 2024 dropdown changes, and restores the old page-link color for links that don't go outside the current wiki.
Nardog: SmartDiff is a spiritual successor to
Enterprisey/fancy-diffs. It makes the page title part of links in diffs clickable, along with template and parser function calls. Unnamed parameters can be configured per template to also be linked. All links are styled based on the normal CSS classes of rendered links.
For the paranoid:
Rublov/anonymize replaces your username at the top of the screen with the generic "User page" text. Remember, it is your duty to persuade everyone that
editing is an honor.
/AjaxBlock provides a dialog box for easy input of reasons while blocking users.
/Selective Rollback(pictured) provides a dialog box to customize
rollback edit summaries and does them without reloading the page. Seriously, why doesn't MediaWiki already do this?
/flickrsearch adds a portlet link to search for uploadable flickr images about the subject.
/randomincategory adds a portlet link when on Category pages to go to a random page in the current category.
Vghfr/EasyTemplates adds a portlet link to automatically insert some of the most common inline {{fix}} templates.
Yes, we're just doing 'em as we go now. Thanks for reading through this looong issue, if you did! I'm sure this'll send a record for the longest issue ev-ah. You may need to wait even longer for the last issue, as our reserve of old-y and goodie scripts have ran out... We encourage you to try and do some of the requests or improvement tasks. See you in Summer, hopefully!