Jump to content

User:Animum/headers.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ladsgroup (talk | contribs) at 03:21, 6 February 2021 (Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$(function () {
    addPortletLink('p-personal', 'http://tools.wmflabs.org/supercount/index.php',
        'editcount', 'pt-editcount', 'editcount', null, document.getElementById('pt-preferences'));
    addPortletLink('p-personal', 'http://en.wikipedia.org/w/index.php?title=Special:Log&user=' + encodeURIComponent(mw.config.get('wgUserName')),
        'logs', 'pt-mylogs', 'logs', null, document.getElementById('pt-watchlist'));
    addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'Wikipedia:Administrator intervention against vandalism'),
        'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences'));
    addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'User:' + encodeURIComponent(mw.config.get('wgUserName')) + '/monobook.js'),
        'monobook', 'pt-monobook', 'monobook', null, document.getElementById('pt-preferences'));
});