User:Jeeputer/highlightPiped
| Description | Highlights piped links in body of pages. |
|---|---|
| Author | Jeeputer |
| Updated | August 28, 2023 (2 years ago) |
| Skins |
|
| Source | User:Jeeputer/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
To install this script, put the code below to your common.js and save the page.
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Jeeputer/highlightPiped.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Jeeputer/highlightPiped.js]]
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 Preferences → Gadgets →
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
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
links like [[Ship]]s are also considered as piped links as there's no way for the script to distinguish them from piped links.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.