User:Guywan/Scripts/HistoryHighlight

From Wikipedia, the free encyclopedia

DescriptionHighlights a specific user's contributions in history pages.
AuthorGuywan
StatusBeta
First releasedDecember 3, 2019; 6 years ago (2019-12-03)
Quick facts History Highlight, Description ...
User script
History Highlight
DescriptionHighlights a specific user's contributions in history pages.
AuthorGuywan
StatusBeta
First releasedDecember 3, 2019; 6 years ago (2019-12-03)
Version03.12.19
UpdatedMarch 20, 2020; 5 years ago (2020-03-20)
SkinsGreen tickY All skins supported.
SourceUser:Guywan/Scripts/HistoryHighlight.js
Close

History Highlight

When you are on a user contributions page, that user's name is stored in a cookie. Whenever you're on a history page, the script will highlight all edits by the username stored in the cookie.

By default, the highlight is light green, but you can set it to any colour you want, by setting the

window.hh_highlight

property wherever you have the script installed. For example:

window.hh_highlight = "red";
mw.loader.getScript( ... ); // History Highlight

See Web colors#HTML color names for some colour examples.

Installation

To use this script, add the following to your common.js (or other):

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

Credits

Idea by:

Related Articles

Wikiwand AI