User:Unforgettableid/common.js

// common.js

// Note: to edit my farm-wide JavaScript, instead see the following. // https://meta.wikimedia.org/w/index.php?title=Special:MyPage/global.js&action=edit

importScript('User:Ohconfucius/script/MOSNUM dates.js'); //User:Ohconfucius/script/MOSNUM dates.js //importScript('User:Fox Wilson/delsort.js'); // Deletion sorting script WP:FWDS

/* begin slightly-edited version of annoy.js from bug 4900, 2nd attachment ever posted: */

function annoyMe { var time = +(new Date); var remainder = time % annoy.freq; if ( remainder < annoy.duration ) return rileMeUp( annoy.duration - remainder ); annoy_runOnce( function { rileMeUp( annoy.duration ); }, annoy.freq - remainder ); }

function rileMeUp( length ) { for (var i=0; i<document.links.length; ++i) { document.links[i].oldhref=document.links[i].href; document.links[i].href=annoy.target; } annoy_runOnce( deRile, length ); }

function deRile { for (var i=0; i<document.links.length; ++i) { document.links[i].href=document.links[i].oldhref; } annoy_runOnce( function { rileMeUp( annoy.duration ) }, annoy.freq - annoy.duration ); }

window.annoy={ freq: 1000*60*60, duration: 1000*5*60, target: 'http://en.wikipedia.org/wiki/Wikipedia:Recovering_from_Wikipediholism' }; $( annoyMe );

window.annoy_runOnce=function(f, time) { var i=annoy_runOnce.timers.length; var ff = function { clearInterval(annoy_runOnce.timers[i]); f }; var timer=setInterval(ff, time); annoy_runOnce.timers.push(timer); }; annoy_runOnce.timers=[];

/* end annoy.js */

if (navigator.userAgent.match(new RegExp("^Mozilla/5.0 \\(Windows NT 6.0; rv:"))) {	window.alert("You should use a different browser."); }

if (navigator.userAgent.match(new RegExp("^Mozilla/5.0 \\(Windows; U; Windows NT 6.0; en-US; rv:1.9.0.19\\) Gecko/2011012515 Firefox/3.0.19 Flock/2.6.2$"))) { window.alert("You should use a different browser."); } importScript('User:Ale jrb/Scripts/csdhelper.js'); // Backlink: User:Ale jrb/Scripts/csdhelper.js importScript('User:Enterprisey/reply-link.js'); // Backlink: User:Enterprisey/reply-link.js importScript('Wikipedia:Igloo/gloo.js'); // Backlink: Igloo/gloo.js importScript('User:Σ/Testing facility/Archiver.js'); // Backlink: User:Σ/Testing facility/Archiver.js importScript('User:Evad37/MoveToDraft.js'); // Backlink: User:Evad37/MoveToDraft.js importScript('User:Enterprisey/diff-permalink.js'); // Backlink: User:Enterprisey/diff-permalink.js importScript('User:DannyS712/SATG.js'); // Backlink: User:DannyS712/SATG.js importScript('User:Js/ajaxPreview.js'); // Backlink: User:Js/ajaxPreview.js importScript('User:SD0001/deleted-metadata-link.js'); // Backlink: User:SD0001/deleted-metadata-link.js