User:Kephir/common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
window.kephirUnclutter = {
postProcessSig: function (context) {
var minisig = context.sigMinimised;
var actlink = minisig.getElementsByClassName('act-link')[0];
var link = document.createElement('a');
link.href = '//tools.wmflabs.org/quentinv57-tools/tools/sulinfo.php?username=' + encodeURIComponent(context.username);
link.appendChild(document.createTextNode('sul'));
actlink.parentNode.insertBefore(document.createTextNode("\xa0•\xa0"), actlink);
actlink.parentNode.insertBefore(link, actlink);
}
};
/* [[w:Wikipedia:Comments in Local Time]] (the local version is quite old) */
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary_King/comments_in_local_time.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');
/* [[w:Wikipedia:User script sandbox]] */
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userScriptSandbox.js&action=raw&ctype=text/javascript');