Jump to content

User:Evad37/timeless-newMessageHighlight

From Wikipedia, the free encyclopedia

This script (source) is a hack to highlight your username in yellow when there are new messages on your user talk page (since the in Timeless skin, the talk page link is hidden in a dropdown). This script should only be used with the Timeless skin – so add it to your timeless.js, not your common.js! For details on why this is not done by the skin, nor by the Echo extension, see tasks T215695 and T216046.

Screenshot comparison
Without the script (left), the "new message" indication is only within the dropdown menu. With the script (right), you username above the dropdown is also highlighted in yellow.

To install on English Wikipedia, add the line

{{subst:lusc|User:Evad37/timeless-newMessageHighlight.js}}

to your timeless.js (which you'll probably have to create, unless you've used it before).

To install on another wiki, add the line

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Evad37/timeless-newMessageHighlight.js&action=raw&ctype=text/javascript') // [[w:en:User:Evad37/timeless-newMessageHighlight]]

to your timeless.js on that other wiki (again, you'll probably have to create it, unless you've used it before).