Jump to content

User:Eejit43/scripts/highlight-homographs

From Wikipedia, the free encyclopedia


User script
highlight-homographs
The "a" is actually a Cyrillic character ("а")!
DescriptionUser script that highlights homographs in page titles
Author(s)Eejit43
First releasedMay 9, 2023; 17 months ago (2023-05-09)
UpdatedJune 15, 2023; 16 months ago (2023-06-15) (see GitHub commit history)
BrowsersTested on Chromium
Skins
SourceUser:Eejit43/scripts/highlight-homographs.js
GitHub repositoryhighlight-homographs.ts

This user script adds a red background to homograph characters in page titles, which may be used to bypass create protection. While entirely rewritten, this script uses regex from Þjarkur's script.

Installation

Simple

Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Tick Install scripts without having to manually edit JavaScript files (documentation)), then come back to this page and click the "Install" button in the infobox on the right.

Manual

Add the following to your common.js (or a skin specific JavaScript page):

{{subst:install user script|User:Eejit43/scripts/highlight-homographs.js}}

Comments/bug reports

Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.