This is an old revision of this page, as edited by Technical 13(talk | contribs) at 04:10, 18 January 2014(denug=true said maybe it is autoed?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 04:10, 18 January 2014 by Technical 13(talk | contribs)(denug=true said maybe it is autoed?)
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
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.
$('li.toclevel-2').each(function(){$(this).html($(this).html().replace('<span>(<span>e<span>dit</span></span> | <span>t<span>alk</span></span> | <span>h<span>istory</span></span> <span>| <span>p<span>rotect</span></span> | <span>d<span>elete</span></span></span> | <span>l<span>i</span>nk<span>s</span></span> | <span>w<span>atch</span></span> | <span>log<span>s</span></span> | <span>v</span><span>iews</span>)</span>',''));});varpageName=mw.config.get('wgPageName');if(pageName=="Special:Watchlist"){$('td').each(function(){$(this).html($(this).html().replace('since last visit','new'));});}importScript('User:Anomie/previewtemplatelastmod.js');// Linkback: [[User:Anomie/previewtemplatelastmod.js]]importScript('User:Equazcion/ScriptInstaller.js');// [[User:Equazcion/ScriptInstaller]]// // // importScript( 'User:Technical 13/Scripts/fileRedlinks.js' );// [[User:Technical 13/Scripts/fileRedlinks]]// // // importScript( 'User:Technical 13/Scripts/admin eye.js' );// [[User:Technical 13/Scripts/admin eye]]// // // importScript( 'User:Technical_13/Scripts/GANreview.js' );// [[User:Technical_13/Scripts/GANreview]]// // // importScript( 'User:Technical_13/Scripts/CommonHebrewUserNames.js' );// [[User:Technical_13/Scripts/CommonHebrewUserNames.js]]// // // importScript( 'User:Technical_13/Scripts/Gadget-BugCreateNew.js' );// [[User:Technical_13/Scripts/Gadget-BugCreateNew.js]]// // // importScript( 'User:Technical_13/Scripts/Teahouse.js' );// [[User:Technical_13/Scripts/Teahouse.js]]// // // importScript( 'User:Technical_13/Scripts/Gadget-LiveClock.js' );// [[User:Technical_13/Scripts/Gadget-LiveClock]]// importScript( 'User:Technical_13/Scripts/Gadget-listStyles.js' );// [[User:Technical_13/Scripts/Gadget-listStyles]]importScript("User:Theo's Little Bot/afch/afchelper.js");// [[User:Theo's Little Bot/afch/afchelper.js]]// importScript( 'MediaWiki:Gadget-afchelper-beta.js' );// Pushed beta [[MediaWiki:Gadget-afchelper-beta.js]]//// importScript( 'Wikipedia:AutoEd/complete.js' );// [[WP:AutoEd]]importScript('User:Writ Keeper/Scripts/teahouseUtility.js');// 1-click to + TH invite/tb to a user [[User:Writ Keeper]]importScript('User:Lupin/recent2.js');// Lupin's AVT tool [[User:Lupin]]// importScript( 'User:Technical 13/Scripts/LagToHours.js' );// based on [[User:Equazcion/LagToMinutes]]/* Shrink all things on my "Contributions" page that no-one has edited since me. */$('.mw-uctop').closest('li').css({"font-size":"6px","text-decoration":"italic"});/* Refresh my WatchList page when viewing every minuteif (pageName == "Special:Watchlist" || pageName == "Special:RecentChanges") { setTimeout(function(){___location = ''},180000);// Currently set to a static 3 minutes... May make it dynamic 1 min for PC 3 for mobile. var timeNow = new Date(); var minNow = timeNow.getMinutes(); var minNow = minNow - 3; var timeCheck = new Date(); timeCheck.setMinutes(minNow); var postTime = $('td.mw-enhanced-rc').html(); var nbsp = (postTime.match(/ /g)||[]).length; for (i=0;i<nbsp;i++) {var postTime = postTime.replace(' ', '');} var postTime = postTime.replace('<span class="mw-enhancedchanges-arrow-space"></span>', ''); var postTime = postTime.replace('<abbr class="newpage" title="This edit created a new page">N</abbr>', ''); var postTime = postTime.replace('<abbr class="minoredit" title="This is a minor edit">m</abbr>', ''); var postTime = postTime.replace('<abbr class="botedit" title="This edit was performed by a bot">b</abbr>', ''); var postTime = postTime.replace('<abbr class="unpatrolled" title="This edit has not yet been patrolled">!</abbr>', ''); var postTime = postTime.split(':', '2'); var postHour = postTime[0]; var postMin = postTime[1]; var timePost = new Date(); timePost.setHours(postHour); timePost.setMinutes(postMin); var timePost = timePost.getTime(); var timeCheck = timeCheck.getTime(); var timeNow = timeNow.toLocaleTimeString(); var headTitle = timeNow + " - " + document.title; if (timePost >= timeCheck) { var enhRC = $('td.mw-enhanced-rc').html(); $('td[class^="mw-enhanced-rc"]').each(function() {this.innerHTML = this.innerHTML.replace(enhRC, '<span style="font-weight: bold; font-size: 12pt;">' + enhRC + '</span>');});// Using this styles ALL times $('td[class^="mw-enhanced-rc"]').css({"font-weight":"bold", "font-size":"12pt"}); var headTitlePrefix = "N"; }/* I don't want to see what needs to be patrolled here until I can patrol everything or none of mine need patrolling// if ($('abbr.unpatrolled:first').length != 0){// var patrolRequired = $('abbr.unpatrolled:first').text();// var headTitlePrefix = patrolRequired + headTitlePrefix;// }*//* if (headTitlePrefix){ headTitle = headTitlePrefix + " - " + headTitle; } document.title = headTitle;}*/if(pageName=="User:Technical_13"||pageName=="User:Technical_13/common.js"){/* test section */varpageWatchers=0;$.ajax({url:'//en.wikipedia.org/w/api.php?action=query&prop=info&format=json&inprop=watchers&titles='+pageName,dataType:'json',success:function(result){varpageID=$.map(result.query.pages,function(v,k){returnk;})[0];pageWatchers=result.query.pages[pageID].watchers;}});/* test section */varoldTitle=document.title;varosVer="?";if(navigator.appVersion.indexOf("Win")!=-1){varosName="Windows";}elseif(navigator.appVersion.indexOf("Mac")!=-1){varosName="MacOS";}elseif(navigator.appVersion.indexOf("X11")!=-1){varosName="UNIX";}elseif(navigator.appVersion.indexOf("Linux")!=-1){varosName="Linux";}elseif(navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)!="null"){osName=navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i);varisMobile=TRUE;}else{osName="?";}if(navigator.userAgent.indexOf("Firefox")!=-1){varbrowserName="Firefox";varbrowserVerStart=navigator.userAgent.lastIndexOf("/")+1;varbrowserVer=navigator.userAgent.substr(browserVerStart);if(navigator.oscpu=="Windows NT 6.2; Win64; x64"||navigator.oscpu=="Windows NT 6.2; WOW64"){osVer="8 (64-bit)";}elseif(navigator.oscpu=="Windows NT 6.2"){osVer="8";}elseif(navigator.oscpu=="Windows NT 6.1; Win64; x64"||navigator.oscpu=="Windows NT 6.1; WOW64"){osVer="7 (64-bit)";}elseif(navigator.oscpu=="Windows NT 6.1"){osVer="7";}elseif(navigator.oscpu=="Windows NT 6.0; Win64; x64"||navigator.oscpu=="Windows NT 6.0; WOW64"){osVer="Vista (64-bit)";}elseif(navigator.oscpu=="Windows NT 6.0"){osVer="Vista";}elseif(navigator.oscpu=="Windows NT 5.1"){osVer="XP";}else{alert(navigator.oscpu);osVer="version that is so old that I'm going to refuse to tell you. UPGRADE YOUR SYSTEM!";}}elseif(navigator.userAgent.indexOf("OPR")!=-1){varbrowserName="Opera";varbrowserVerStart=navigator.userAgent.lastIndexOf("OPR/")+4;varbrowserVer=navigator.userAgent.substr(browserVerStart);}elseif(navigator.userAgent.indexOf("Chrome")!=-1){varbrowserName="Chrome";varbrowserVerStart=navigator.userAgent.lastIndexOf("Chrome/")+7;varbrowserVer=navigator.userAgent.substr(browserVerStart);varbrowserVerEnd=browserVer.indexOf(" ");browserVer=browserVer.slice(0,browserVerEnd);}elseif(navigator.userAgent.indexOf("Safari")!=-1){varbrowserName="Safari";varbrowserVerStart=navigator.userAgent.lastIndexOf("Version/")+8;varbrowserVer=navigator.userAgent.substr(browserVerStart);varbrowserVerEnd=browserVer.indexOf(" ");browserVer=browserVer.slice(0,browserVerEnd);}elseif(navigator.userAgent.indexOf("MSIE")!=-1){varbrowserName="Internet Explorer";varbrowserVerStart=navigator.userAgent.lastIndexOf("MSIE")+5;varbrowserVer=navigator.userAgent.substr(browserVerStart);varbrowserVerEnd=browserVer.indexOf("; ");browserVer=browserVer.slice(0,browserVerEnd);}else{varbrowserName=navigator.userAgent;varbrowserVer=navigator.userAgent;}if(isNaN(window.screen.width)){varscreenWidth="?";}else{varscreenWidth=window.screen.width;}if(isNaN(window.screen.height)){varscreenHeight="?";}else{varscreenHeight=window.screen.height;}if(isNaN(window.screen.pixelDepth)){varscreenDepth="?";}else{varscreenDepth=window.screen.pixelDepth;}varosNameVer=osName+" "+osVer;varbrowserNameVer=browserName+" "+browserVer;if(screenWidth!="?"&&screenHeight!="?"){varscreenRes=screenWidth+"×"+screenHeight;varscreenMP=screenWidth*screenHeight/1000000;if(screenDepth!="?"){screenRes=screenRes+"×"+screenDepth;}varscreenResolution="Your resolution is set to "+screenRes+" ("+screenMP+" MegaPixels)";varscreenResolutionLinked="Your resolution is set to "+screenRes+" ("+screenMP+" <a href='http://enwp.org/Pixel#Megapixel'>MegaPixels</a>)";}console.info('Done: %d',pageWatchers);varcurrentTitle="You are running "+browserNameVer+" on a "+osNameVer+" system. "+screenResolution+" - "+oldTitle;varcurrentSiteSub="You are running "+browserNameVer+" on a "+osNameVer+" system. "+screenResolutionLinked+" - "+oldTitle;document.title=currentTitle;document.getElementById("siteSub").innerHTML=currentSiteSub;}