Jump to content

User:Enterprisey/ipv6-subnet-link.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Enterprisey (talk | contribs) at 03:01, 31 May 2022 (fix). 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.
$.ready(function(){
if(mw.config.get('wgCanonicalSpecialPageName')==='Contributions'){
var a=mw.config.get('wgRelevantUserName').split(':');
if(a.length===8){
mw.loader.using(['mediawiki.util'], function() {
var b = 'Special:Contribs/' + a.slice(0,4) + '::/64';
$('.mw-contributions-user-tools').first().after('<p><a href="' + mw.util.getUrl(b) + '" title="' + b + '">' + b + '</a></p>');
});
}
}
});