MediaWiki:Gadget-toplinksDropdown.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 20: | Line 20: | ||
$('#pt-watchlist'), | $('#pt-watchlist'), | ||
$('#pt-preferences'), | $('#pt-preferences'), | ||
$('#pt-logout') | $('#pt-logout') | ||
) | ) | ||
Revision as of 16:46, 7 March 2020
/**
* De-clutters the personal links at the top by collecting them in a dropdown,
* opened by hovering over your username - inspired by the Timeless skin
*
* @author Banri
*/
$(function() {
// change new message text
$('#pt-mytalk .mw-echo-alert').text('Talk!');
// create dropdown
$('<div>')
.addClass('pt-userpage-dropdown')
.append(
$('<ul>')
.append(
$('#pt-mytalk'),
$('#pt-mycontris'),
$('#pt-watchlist'),
$('#pt-preferences'),
$('#pt-logout')
)
)
.appendTo('#pt-userpage');
});