Jump to content
Wikipedia The Free Encyclopedia

User:ClaudineChionh/Scripts/highlightPiped

From Wikipedia, the free encyclopedia
This is the documentation page for the User:ClaudineChionh/Scripts/highlightPiped.js user script, which was forked from revision 1172697276 of User:Jeeputer/highlightPiped.js. This version of the script can be used in the User and Draft namespaces as well as Main.
Pipe Highlighter
DescriptionHighlights piped links in body of pages.
Authors
Statusbeta
Version0.2.0
Updated25 May 2025; 4 months ago (2025年05月25日)
Skins
  • Vector
  • Vector 2022
SourceUser:ClaudineChionh/Scripts/highlightPiped.js

Pipe Highlighter is a user script that highlights piped links. It is completely compatible with BrandonXLF's GreenRedirects and Gadget-DisambiguationLinks.css which highlight links to redirects and disambiguation pages, respectively.

Installation

[edit ]

You can install this script on this Wikipedia by adding the following to your personal common.js file:

{{subst:lusc|User:ClaudineChionh/Scripts/highlightPiped.js}}

which expands to:

mw.loader.load("/w/index.php?title=User:ClaudineChionh/Scripts/highlightPiped.js&action=raw&ctype=text/javascript");// Backlink: [[User:ClaudineChionh/Scripts/highlightPiped.js]]

Alternatively, you can install the script globally on all Wikimedia wikis by adding the following to your global.js file:

mw.loader.load("//en.wikipedia.org/w/index.php?title=User:ClaudineChionh/Scripts/highlightPiped.js&action=raw&ctype=text/javascript");

You may need to purge your browser's cache after saving the page.

Usage

[edit ]

After installation, you can test the script here.

If you have GreenRedirects installed, or have Preferences → Gadgets → Tick Display links to disambiguation pages in orange enabled, piped links to redirect and/or disambiguation pages will appear like "|Link" and "|Link" respectively. otherwise, all types of piped links appear like Link.

Custom color

[edit ]

The default color for highlighted links is Irresistible (  Hex triplet: #B3446C).

You can change the default color by placing the following code before the code you added to your common.js to install the script:

window.pipeHighlighterCustomColor='#XXXXXX';

Note that you have to replace #XXXXXX with the Hex triplet of your preferred color (like #B3446C for the default color). You can choose a color from Lists of colors.

Limitations

[edit ]

Links like [[Ship]]s are also considered as piped links as there's no way for the script to distinguish them from piped links.

AltStyle によって変換されたページ (->オリジナル) /