User:MTC/vector.js

// User:GregU/dashes.js

importScript('User:GregU/dashes.js');

// User:Lupin/popups.js // importScript('User:Lupin/popups.js');

popupStructure='menus'; popupImages=true; popupFixRedirs=true; popupRedlinkRemoval=true; popupFixDabs=true; popupMaxWidth=false; popupPreviewKillTemplates=false; popupPreviewFirstParOnly=false; popupNavLinkSeparator=' \u2022 ';

// User:Jsimlo/shortcuts.js

/* document.write(' ');

// adds links to my watchlists in other Wikimedia wikis to my sidebar function shortcutsInit { shortcutsAddLink ('Wikipedia (en) watchlist', ':w:en:Special:Watchlist'); shortcutsAddLink ('Meta-Wiki watchlist', ':m:Special:Watchlist'); shortcutsAddLink ('Wiktionary (en) watchlist', ':wikt:en:Special:Watchlist'); shortcutsAddLink ('Wikiquote (en) watchlist', ':q:en:Special:Watchlist'); shortcutsAddLink ('Беларуская (тарашкевіца) watchlist', ':be-x-old:Спэцыяльныя:Сьпіс_назіраньня'); shortcutsAddLink ('Deutsch watchlist', ':de:Spezial:Beobachtungsliste'); shortcutsAddLink ('Ελληνικά watchlist', ':el:Ειδικό:Watchlist'); shortcutsAddLink ('Español watchlist', ':es:Especial:Watchlist'); shortcutsAddLink ('Føroyar watchlist', ':fo:Serstakur:Watchlist'); shortcutsAddLink ('Français watchlist', ':fr:Special:Watchlist'); shortcutsAddLink ('Íslenska watchlist', ':is:Kerfissíða:Watchlist'); shortcutsAddLink ('Italiano watchlist', ':it:Speciale:OsservatiSpeciali'); shortcutsAddLink ('日本語 watchlist', ':ja:特別:Watchlist'); shortcutsAddLink ('Nederlands watchlist', ':nl:Speciaal:Volglijst'); shortcutsAddLink ('Português watchlist', ':pt:Especial:Watchlist'); shortcutsAddLink ('Русский watchlist', ':ru:Служебная:Watchlist'); shortcutsAddLink ('Slovenčina (sk) watchlist', ':sk:Špeciálne:Watchlist'); shortcutsAddLink ('Српски / Srpski watchlist', ':sr:Посебно:Watchlist'); shortcutsAddLink ('Svenska watchlist', ':sv:Special:Watchlist'); shortcutsAddLink ('Türkçe watchlist', ':tr:Özel:Watchlist'); shortcutsAddLink ('Українська watchlist', ':uk:Спеціальні:Watchlist'); }

importScript('User:Tcncv/sorttables.js');

// adds last modified date just under the title of any page, modified version of user:Anomie/lastmod.js if(typeof(window.LastModDateFormat)=='undefined') LastModDateFormat="ymd"; if(typeof(window.LastModRelative)=='undefined') LastModRelative=false; if(typeof(window.LastModUseUTC)=='undefined') LastModUseUTC=false; if(typeof(window.LastModMonths)=='undefined') LastModMonths=['January','February','March','April','May','June','July','August','September','October','November','December']; $(function{   if(mw.config.get('wgNamespaceNumber')<0) return;    var ins=document.getElementById('bodyContent');    if(!ins) return;    var x = sajax_init_object;    if(!x) return;    x.open('POST', mw.config.get('wgServer')+mw.config.get('wgScriptPath')+'/api.php', true);    x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');    x.onreadystatechange=function{        if(x.readyState!=4) return;        var r;        if(typeof(window.JSON)!='undefined'){            r=JSON.parse(x.responseText);        } else {            r=x.responseText;            r=!(/[^,:{}\[\]0-9.\-+Eaeflnr-u\n\r\t]/.test(r.replace(/"(\\.|[^\x22\\])*"/g,''))) && eval('('+r+')');        }        if(typeof(r.query.pages[mw.config.get('wgArticleId')].revisions[0].timestamp)=='undefined') return;        m=r.query.pages[mw.config.get('wgArticleId')].revisions[0].timestamp.match(/^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/); var dt; if(LastModRelative){ dt=[]; var n=new Date; var dy=n.getUTCFullYear-m[1]; var dm=n.getUTCMonth+1-m[2]; var dd=n.getUTCDate-m[3]; var dh=n.getUTCHours-m[4]; var di=n.getUTCMinutes-m[5]; if(di<0){ di+=60; dh--; } if(dh<0){ dh+=60; dd--; } if(dd<0){ var nn=n; nn.setUTCDate(0); dd+=nn.getDate; dm--; } if(dm<0){ dm+=12; dy--; } if(dy>=0){ if(dy!=0) dt.push(dy+' year'+((dy==1)?'':'s')); if(dm!=0) dt.push(dm+' month'+((dm==1)?'':'s')); if(dd!=0) dt.push(dd+' day'+((dd==1)?'':'s')); if(dy==0 && dm==0 && dd<7){ if(dh!=0) dt.push(dh+' hour'+((dh==1)?'':'s')); if(dd<2 && di!=0) dt.push(di+' minute'+((di==1)?'':'s')); }           }            if(dt.length==0) dt='less than a minute ago'; else dt='about '+dt.join(', ')+' ago'; } else { if(LastModUseUTC){ m[2]-=1; } else { dt=new Date(Date.UTC(m[1],m[2]-1,m[3],m[4],m[5],m[6])); m[1]=dt.getFullYear; m[2]=dt.getMonth; m[3]=dt.getDate; m[4]=dt.getHours.toString; if(m[4].length==1) m[4]='0'+m[4]; m[5]=dt.getMinutes.toString; if(m[5].length==1) m[5]='0'+m[5]; m[6]=dt.getSeconds.toString; if(m[6].length==1) m[6]='0'+m[6]; }           if(LastModDateFormat=='dmy'){ dt=m[3]+' '+LastModMonths[m[2]]+' '+m[1]; } else if(LastModDateFormat=='dmy'){ dt=LastModMonths[m[2]]+' '+m[3]+', '+m[1]; } else { m[2]++; if(m[2]<10) m[2]='0'+m[2]; m[3]=m[3].toString; if(m[3].length==1) m[3]='0'+m[3]; dt=m[1]+'-'+m[2]+'-'+m[3]; }            dt+=' '+m[4]+':'+m[5]+' (UTC)'; }       var s=document.createElement('SPAN'); s.className='lastmodheader'; s.appendChild(document.createTextNode('Last modified '+dt)); ins.parentNode.insertBefore(s,ins); };   x.send('action=query&format=json&titles='+encodeURIComponent(mw.config.get('wgPageName'))+'&prop=revisions&rvprop=timestamp'); });