User:Benjaminthewill123123/AllScripts.js

//Variable Definitions var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; var ajaxindicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; var ajaxRefresh = 10000;

//Imports importArticles({   type: "script",    articles: [        "w:c:dev:WHAM/code.js",        "w:c:dev:AjaxRC/code.js",        "w:c:dev:AjaxBatchDelete/code.js",        "w:c:dev:AjaxPatrol/code.js",        "w:c:dev:AjaxUndo/code.js",        "w:c:dev:NoImageLightbox/code.js",        "w:c:dev:Sine/code.js",    ] });

//Rollback Ajax

function SetAjaxRollback { $('a.mw-rollback-link').click(function(e) {		e.preventDefault;		var $rblink = $(this);		var href = this.getElementsByTagName('a')[0].href;		this.innerHTML = ' ';		$.ajax({ url: href, success: function { $rblink.text(function (i, val) {return val + ' [success]';}); loadPageData; },			error: function { $rblink.text(function (i, val) {return val + ' [failed]';}); loadPageData; }		});	}); }