Jump to content

User:GhostInTheMachine/SortWhatLinksHere

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by GhostInTheMachine (talk | contribs) at 12:43, 22 August 2022 (tweak). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2022-08-22 12:43:59

Purpose

Sorts the links displayed by the What links here page.

Use

The script runs shortly after the page is loaded so the links are displayed first in their unsorted state and then sorted.

It does nothing for other pages.

Prerequisites

None.

Installing

Add the following line to your common.js file.

{{subst:Lusc|User:GhostInTheMachine/SortWhatLinksHere.js}}

Notes

Inspired by a March 2021 request from User:Headbomb in User scripts / Requests.

Alternatives

The list of links really should be sorted by the system, so that this script is not needed

See also