User:Quarenon/monaco.js

/** * You are viewing Quarenon's personal JavaScript page! If you would like information * on the scripts used on this page, visit * http://runescape.wikia.com/wiki/User:Quarenon/Scripts */

//importScript('User:Quarenon/rcrollback.js');

function rollbackEverythingButton { alert('rollbackEverythingButton'); var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link"); alert('rollback[0]: ' + hasRollback[0] + '; wgCSPN: ' + wgCanonicalSpecialPageName + ';'); if (hasRollback[0] && wgCanonicalSpecialPageName && wgCanonicalSpecialPageName == 'Contributions') { var list = null;

if (skin == 'monobook') { list = document.getElementById('p-tb').getElementsByTagName('ul')[0]; } else { var lists = document.getElementById('link_box').getElementsByTagName('ul');

alert('list length: ' + lists.length'); if (lists[0].getElementsByTagName('li').length <= lists[1].getElementsByTagName('li').length) { list = lists[0]; } else { list = lists[1]; }		}

var li = document.createElement('li'); var a = document.createElement('a'); a.href = 'javascript:rollbackEverything'; a.appendChild(document.createTextNode('Rollback all')); a.title = 'Rollback all edits displayed here.'; li.appendChild(a); list.insertBefore(li, list.firstChild); } } addOnloadHook(rollbackEverythingButton); function rollbackEverything { for (var i in document.links) { if (document.links[i].href.indexOf('action=rollback') != -1) { window.open(document.links[i].href); }   	} }

importScript('User:Quarenon/autowelcome.js');

// Comments in Local Time var LocalComments = { dateDifference: false, dateFormat: 'dmy', timeFirst: true };

importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Gary_King/comments_in_local_time.js&action=raw&ctype=text/javascript');

var ezHiscoresReminder = 0; var ezHiscoresPlayer = 'Quarenon'; var ezHiscoresPage = 'User:Quarenon/Hiscores'; var ezHiscoresLog = 1;

importScript('User:Quarenon/ezhiscores.js');

importScript('User:Quarenon/smileys.js');

importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

//importScript('User:Quarenon/watchlistnotify.js');

importScript('User:Quarenon/autocvu.js');

importScript('User:Quarenon/purge.js');