User:Bradv/Scripts/Superlinks

Superlinks
Author(s)bradv🍁
StatusStable
First releasedSeptember 24, 2018; 6 years ago (2018-09-24)
UpdatedMay 29, 2020; 4 years ago (2020-05-29)
BrowsersAll modern browsers
SkinsVector
SourceUser:Bradv/Scripts/Superlinks.js

Superlinks is a Wikipedia user script designed to allow powerusers to quickly view pages and information related to the page they are currently viewing or editing without the need to navigate away from the page or open large numbers of new tabs.

The script consists of a collection of links at the top right corner of the page, and a popup window that opens over part of the current page when one of the links is clicked. The popup window loads its content on demand via Ajax without affecting the current page, and can be closed by clicking on the close button, clicking again on the link that opened the popup, or by pressing escape.

All content is loaded asynchronously on demand – having the script installed does not affect page load times.

Installation

edit

Add {{subst:iusc|User:Bradv/Scripts/Superlinks.js}} to Special:MyPage/common.js or Special:MyPage/vector.js.

Features

edit

The following is the list of links generated by the script. Links to pages that do not exist are not shown, nor are links to the currently displayed page.

Articles

edit
  • History: The history of the page.
  • Logs: The log of actions performed on the page.
  • Filter: The abuse filter log for the page.
  • Talk: The current version of the talk page.

While viewing the history of the page, an additional link is displayed, replacing the history link:

  • Article: The current version of the page. The title varies depending on the type of page viewed.

Talk

edit
  • Article: The current version of the page. The title varies depending on the type of page viewed.
  • History: The history of the article page.
  • Logs: The log of actions performed on the article page.
  • Filter: The abuse filter log for the page.
  • Talk: The current version of the talk page (displayed when viewing history only).
  • History: The history of the talk page.
  • Logs: The log of actions performed on the talk page.
  • Filter: The abuse filter log for the talk page.

User pages

edit

If the current page is in userspace, an additional section for the relevant user is displayed:

  • Contribs: The user's contributions.
  • Deleted: The users's deleted contributions (sysop only).
  • Actions: Log of actions performed by the user.
  • Filter: The abuse filter log for the user.
  • Rights: User groups log.
  • Blocks: The user's block log.
  • DS Alerts: Display all {{ds/alert}} notices left for the user, as triggered by edit filter 602.
  • Restrictions: Display search results from Editing restrictions and Arbitration enforcement log.

Flowcharts

edit

If the current page is a new page or a draft currently submitted for review, one of the following is displayed:

  • AfC Flowchart: The flowchart designed for reviewers at WP:AFCR.
  • NPP Flowchart: The flowchart designed for reviewers at WP:NPP.

Other features

edit
  • At the top of the window, there is a close button. This close feature can also be triggered by clicking on the current tab, or by press escape on the keyboard.
  • Next to the close button there is a button which will pop out the current view into a new tab in your browser.

Issues

edit

Issues, comments, thanks, bug reports, or other kinds of feedback are welcome at User talk:Bradv/Scripts/Superlinks.

Notes

edit
  • Superlinks only works with the Vector skin. It may be possible to extend it to other skins – leave a request on the talk page.
  • Superlinks is tested on Chrome, Firefox, and Edge.