Jump to content

User:Anomie/watchlist-change-style-selector

From Wikipedia, the free encyclopedia

This script allows for selecting different methods of displaying unseen changes on the Special:Watchlist and on history pages.

Available styles for the watchlist include:

  • No indicator – hides all change indication (currently the enwiki default).
  • BoldBolds the page title (currently the MediaWiki default).
  • Green stars – Display a small green star () before the page title.
  • Stars and bold – Bolds the title and displays a small green star.
  • Italic – Display the page title in italics.
  • Subtle underscore – Underlines the page title, like this.
  • Color change – Changes the page link color to teal.
  • Small 'c' ("changed") – Displays a small "c" before the title (may not work in some older browsers).
  • Highlight – Highlight the entire entry with a pale blue background.
  • Faded old changes – Reduces the opacity of unchanged entries, leaving the changed entries in full force (may not work in some older browsers).
  • Green bullet – Uses a different bullet () on changed entries.

Available styles for history pages include:

  • No indicator – hides all change indication.
  • Default green tag - Displays updated since your last visit near the end of the line (currently the MediaWiki default).
  • Bright green tag – Displays updated since your last visit near the end of the line.
  • Dull green tag – Displays updated since your last visit near the end of the line (currently the Wikimedia Commons default).
  • Green text tag – Displays updated since your last visit near the end of the line (currently the enwiki default).
  • BoldBolds the change date.
  • Green stars – Display a small green star () before the change date.
  • Stars and bold – Bolds the change date and displays a small green star.
  • Italic – Display the entire line in italics.
  • Subtle underscore – Underlines the change date, like this.
  • Color change – Changes the change date link color to teal.
  • Small 'c' ("changed") – Displays a small "c" before the change date (may not work in some older browsers).
  • Highlight – Highlight the entire entry with a pale blue background.
  • Faded old changes – Reduces the opacity of unchanged entries, leaving the changed entries in full force (may not work in some older browsers).
  • Green bullet – Uses a different bullet () on changed entries.

Usage

[edit]

To use the script, add the following to your common.js.

importScript('User:Anomie/watchlist-change-style-selector.js'); // Linkback: [[User:Anomie/watchlist-change-style-selector.js]]
importStylesheet('User:Anomie/watchlist-change-style-selector.css'); // Linkback: [[User:Anomie/watchlist-change-style-selector.css]]

Once enabled, a selection box will appear on your watchlist in the "Watchlist options" box and on history pages just underneath the legend. Selecting a value from the selection box will immediately change the style applied to the page.