User:Jeeputer/highlightPiped

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
To install this script, put the code below to your common.js and save the page. You may need to purge your browser's cache after saving the page.

Usage
After installation, you can test the script here.

If you have GreenRedirects installed, or have 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
The default color for highlighted links is Irresistible ( Hex triplet: ).

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

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

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