User:Cheeseskates/global.js

window.globalLinks={global:{"User":"Special:Mypage","Talk":"Special:Mytalk","Contribs":"Special:MyContributions","Admins":"Special:ListAdmins","Activity":"Special:RecentChanges?hidebots=0","Maintenance":"Special:Maintenance","Torus":"Special:Torus","Purge":"%page%?action=purge","QQX":"%page%?uselang=qqx","NoJS":"%page%?useuserjs=0","NoCSS":"%page%?useusercss=0","Raw":"%page%?action=raw",},community:{"JS":"Special:Mypage/global.js","CSS":"Special:Mypage/global.css"},};mw.loader.using("mediawiki.api",function{var self={init:function{if($(".mw-rollback-link").length){return;} if(mw.config.get("wgAction")=="history"&&$("#pagehistory li").length>1){$("#pagehistory li:first .mw-history-undo a").before(' rollback | ');}else{if(mw.config.get("wgCanonicalSpecialPageName")=="Contributions"){$("#mw-content-text ul").find("li").each(function{if($(this).find(".mw-uctop").length){$(this).append(' [rollback] ');}});}else{if(($.getUrlVar("diff")||$.getUrlVar("oldid"))&&$("#differences-nextlink").length===0){$(".mw-usertoollinks:last").after('   [rollback] ');}}} $(".mw-custom-rollback-link a").click(function{self.getRevisionIdAndContent($(this).attr("data-id"));$(this).parent.remove;});},getRevisionIdAndContent:function(term){var cb=new mw.Api;cb.get({action:"query",prop:"revisions",titles:term,rvprop:"user|ids",rvlimit:500,cb:(new Date).getTime}).done(function(body){if(!body.error){var sks;var id;for(id in body.query.pages){sks=body.query.pages[id].revisions;} var node=sks[0].user;var params;var revids;for(id in sks){if(sks[id].user!=node){params=sks[id].user;revids=sks[id].revid;break;}} if(params){cb.get({action:"query",prop:"revisions",rvprop:"content",revids:revids,cb:(new Date).getTime}).done(function(body){if(!body.error){var later="";var page;for(page in body.query.pages){if(body.query.pages[page].revisions){later=body.query.pages[page].revisions[0]["*"];}} self.performRollback(term,later,node,params);}else{(new BannerNotification("Unable to rollback (failed to get page content): "+body.error.code,"error")).show;}}).fail(function{(new BannerNotification("Unable to rollback: failed to get page content!","error")).show;});}else{(new BannerNotification("Unable to rollback: no different editor found!","error")).show;}}else{(new BannerNotification("Unable to rollback (failed to get revisions): "+body.error.code,"error")).show;}}).fail(function{(new BannerNotification("Unable to rollback: failed to get revisions!","error")).show;});},performRollback:function(value,key,dataAndEvents,startArray){var that=new mw.Api;var codeSegments=" ";that.post({action:"edit",title:value,text:key,summary:codeSegments,token:mw.user.tokens.values.editToken}).done(function(replay){if(!replay.error){(new BannerNotification("Rollback successful!","confirm")).show;}else{(new BannerNotification("Unable to rollback (failed to publish edit): "+replay.error.code,"error")).show;}}).fail(function{(new BannerNotification("Unable to rollback: failed to publish edit!","error")).show;});}};self.init;});if($('strong:contains("Changes:")').length){$("#WikiaPageHeader").find("p").children("a").after(' (history)');} a=$('a[href$="?action=edit&redlink=1"]');if(a.attr("href")){a.attr("href",a.attr("href").replace("?action=edit&redlink=1",""));} window.ajaxRefresh=1000;window.AjaxRCRefreshText='Auto-refresh';window.AjaxRCRefreshHoverText='Automatically refresh the page';window.ajaxPages=["Special:WikiActivity","Special:RecentChanges","Special:Watchlist","Special:AbuseLog","Special:Log","Special:Log/upload","Special:Images","Special:Videos","Special:Newwikis","Report:Vandalism","Report:Spam","Report:User profile headers","Report:Users and IPs needing checked","Spezial:WikiActivity","Spezial:Letzte_Änderungen","Spezial:Logbuch","Especial:WikiActivity","Especial:CambiosRecientes","Especial:Registro","Toiminnot:WikiActivity","Toiminnot:Tuoreet_muutokset","Toiminnot:Loki","Spécial:WikiActivity","Spécial:Modifications_récentes","Spécial:Journal","Speciale:WikiActivity","Speciale:UltimeModifiche","Speciale:Registri","特別:WikiActivity","特別:最近の更新","特別:ログ","특수기능:위키활동내역","특수기능:최근바뀜","특수기능:기록","Speciaal:WikiActivity","Speciaal:RecenteWijzigingen","Speciaal:Logboeken","Specjalna:Aktywność_na_wiki","Specjalna:Ostatnie_zmiany","Specjalna:Rejestr","Especial:Mudanças_recentes","Служебная:WikiActivity","Служебная:RecentChanges","Служебная:Log","Đặc_biệt:Hoạt_động_wiki","Đặc_biệt:Thay_đổi_gần_đây","Đặc_biệt:Nhật_trình","Special:最近更改","Special:日志","特殊:WikiActivity","特殊:近期變動","特殊:日誌","Spesiaal:WikiActivity","Spesiaal:Onlangse_wysigings","Spesiaal:Logboek","خاص:WikiActivity","خاص:أحدث_التغييرات","خاص:سجل","Адмысловае:WikiActivity","Адмысловае:RecentChanges","Адмысловае:Log","Специални:WikiActivity","Специални:Последни_промени","Специални:Дневници","Especial:Canvis_recents","Especial:Registre","Ειδικό:WikiActivity","Ειδικό:ΠρόσφατεςΑλλαγές","Ειδικό:Μητρώο","Eri:WikiActivity","Eri:Viimased_muudatused","Eri:Logid","ویژه:WikiActivity","ویژه:تغییرات_اخیر","ویژه:سیاهه‌ها","Especial:Cambios_recentes","Especial:Rexistros","Speciális:WikiActivity","Speciális:Friss_változtatások","Speciális:Rendszernaplók","Istimewa:WikiActivity","Istimewa:Perubahan_terbaru","Istimewa:Catatan","Speciaal:Lètste_verangeringe","Speciaal:Logbeuk","Specialus:WikiActivity","Specialus:Naujausi_keitimai","Specialus:Sąrašas","Spesial:WikiActivity","Spesial:Siste_endringer","Spesial:Logg","Especial:Darrièrs_cambiaments","Especial:Jornal","Special:Schimbări_recente","Special:Jurnal","Посебно:WikiActivity","Посебно:СкорашњеИзмене","Посебно:Извештај","Спеціальна:WikiActivity","Спеціальна:RecentChanges","Спеціальна:Log",];abuseLogRC_interval=5;abuseLogRC_entries=5;abuseLogRC_showTo="all";abuseLogRC_order="newer";abuseLogRC_position="before";abuseLogRC_collapsible=true;abuseLogRC_userInfo=true;window.AjaxBlock={blockReasons:{"Misbehaving. (appeal)":"Misbehaving","Disruption. (appeal)":"Disruption","spamming. (appeal)":"Spamming","trolling. (appeal)":"Trolling","Banditry. (appeal)":"Banditry","Shocking content. (appeal)":"Shocking Content","Sockpuppeting. (appeal)":"Sockpuppet","Cross-wiki drama. (appeal)":"Cross-Wiki Drama","Cross-wiki Vandal/troll.":"Cross-Wiki Vandal/Troll","Vandal/spam bot.":"Vandal/Spam Bot","Violating Wikia's ToU.":"ToU Violation",},check:{creation:true,talk:false,autoBlock:true,override:true,}};window.AjaxDelete={deleteReasons:{"w:Help:Vandalism":"Vandalism","w:Help:Spam":"Spam","Marked for speedy deletion":"Speedy","Empty page":"Empty","Author's request":"Author request","Irrelevant to ":"Irrelevant","Failed to comply with the manual of style for over 6 months":"MoS"},imageDeleteReasons:{"Offensive":"Offensive","inappropriate":"inappropriate","Harassment":"Harassment","Housekeeping/Unused":"Unused","Copyright infringement":"Copyright","Author's request":"Author request"},autoCheckWatch:false,noUndelete:true};window.cacheSkip=[];window.cacheSkipLimit=1E3;window.topLevelCat="";var fdButtons=[];fdButtons[fdButtons.length]={"summary":"spam","label":"S"};fdButtons[fdButtons.length]={"summary":"vandalism","label":"V"};fdButtons[fdButtons.length]={"summary":"Housekeeping","label":"HK"};fdButtons[fdButtons.length]={"summary":"Cleanup","label":"C"};fdButtons[fdButtons.length]={"summary":"Unused","label":"U"};fdButtons[fdButtons.length]={"summary":"Unofficial/Not-Needed/Irrelevant","label":"UNI"};fdButtons[fdButtons.length]={"summary":"Other reason","label":"Other"};window.railWAM={logPage:"User:Cheeseskates/WAM Log"};WHAMBotMe=true;WHAMBotReason="Official Cleanup Business";WHAMDelay=100;$(function{importArticles({type:"script",articles:["u:dev:MediaWiki:AbuseLogRC.js","u:dev:MediaWiki:AjaxBatchDelete/code.2.js","u:dev:MediaWiki:AjaxBatchUndelete.js","u:dev:MediaWiki:AjaxBlock/code.js","u:dev:MediaWiki:AjaxDelete/code.js","u:dev:MediaWiki:AjaxPatrol/code.js","u:dev:MediaWiki:AjaxRC/code.js","u:dev:MediaWiki:AjaxRename/code.js","u:dev:MediaWiki:AjaxThreadUnfollow/code.js","u:dev:MediaWiki:AntiUnicruft/code.js","u:dev:MediaWiki:ArchiveTool/code.js","u:dev:MediaWiki:AutoEditPages/code.js","u:dev:MediaWiki:CacheCheck/code.js","u:dev:MediaWiki:CatFilter/code.js","u:dev:MediaWiki:CategoryRenameAuto-update/code.js","u:dev:MediaWiki:ContribsLink/code.js","u:dev:MediaWiki:DifferentSkinEditor/code.js","u:dev:MediaWiki:DiscussionsFeed.js","u:dev:MediaWiki:DisplayTimer/code.js","u:dev:MediaWiki:DupImageList/code.js","u:dev:MediaWiki:EditIntroButton/code.js","u:dev:MediaWiki:EntityConvert/code.js","u:dev:MediaWiki:FastDelete/code.js","u:dev:MediaWiki:FastOldImageDelete/code.js","u:dev:MediaWiki:FileUsageAuto-update/code.js","u:dev:MediaWiki:FindAndReplace/code.js","u:dev:MediaWiki:FloatingTableHeader/Code.js","u:dev:MediaWiki:FloatingToc/code.js","u:dev:MediaWiki:GlobalEditcount/code.js","u:dev:MediaWiki:HeaderLinks/code.js","u:dev:MediaWiki:HoverEditCount/code.js","u:dev:MediaWiki:LastEdited/code.js","u:dev:MediaWiki:ListFiles/code.js","u:dev:MediaWiki:MarkBlocked.js","u:dev:MediaWiki:MarkForDeletion/code.js","u:dev:MediaWiki:MassBlock/code.js","u:dev:MediaWiki:MassCategorization/code.js","u:dev:MediaWiki:MassNullEdit/code.js","u:dev:MediaWiki:MassProtect/code.js","u:dev:MediaWiki:MassRename/code.js","u:dev:MediaWiki:MassRenameRevert/code.js","u:dev:MediaWiki:MassUserRights/code.js","u:dev:MediaWiki:MessageBlock/code.js","u:dev:MediaWiki:MisspelledPage/code.js",'u:dev:MediaWiki:MonobookHighlight.js',"u:dev:MediaWiki:NewPagesUser.js","u:dev:MediaWiki:Nuke/code.js","u:dev:MediaWiki:NullEditButton/code.js","u:dev:MediaWiki:OldFilePages/code.js","u:dev:MediaWiki:PageRenameAuto-update/code.js","u:dev:MediaWiki:PortableCSSPad/code.js","u:dev:MediaWiki:ProtectedHighlight/code.js","u:dev:MediaWiki:QuickDiff/code.js","u:dev:MediaWiki:Quick Management/code.js","u:dev:MediaWiki:QuickThreads/code.js","u:dev:MediaWiki:QuickToolsv2/code.js","u:dev:MediaWiki:RailWAM/code.js","u:dev:MediaWiki:ReaderMode/code.js","u:dev:MediaWiki:RecentChangesMultiple/code.2.js","u:dev:MediaWiki:ReplyAndClose/code.js","u:dev:MediaWiki:RevealAnonIP/code.js","u:dev:MediaWiki:SearchSuggest/code.js","u:dev:MediaWiki:ThreadIndicator/code.js","u:dev:MediaWiki:Thread Inspection/code.js","u:dev:MediaWiki:UnsafeScripts/code.js","u:dev:MediaWiki:UserRightsRecord/code.js","u:dev:MediaWiki:View Source/code.js","u:dev:MediaWiki:YouTubeModal/code.js","u:admintools:MediaWiki:Common.js/ajaxRollback.js","u:admintools:MediaWiki:Common.js/extraRollbacks.js","u:admintools:MediaWiki:Common.js/iprange.js","u:admintools:MediaWiki:Common.js/Maintenance.js","u:corey:MediaWiki:EasyPublish.js","u:josephhawk:User:Josephyr/categorycleanup.js","u:josephhawk:User:Josephyr/filecleanup.js","u:josephhawk:User:Josephyr/linksweeper.js","u:josephhawk:User:Josephyr/redirects.js","u:josephhawk:User:Josephyr/tc.js","u:kocka:MediaWiki:AjaxCommentDelete/code.js","u:kocka:MediaWiki:AjaxThreadDelete/code.js","u:kocka:MediaWiki:MessageWallActions/code.js","u:kocka:MediaWiki:RedirectMessageWall/code.js","u:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript","u:kocka:User:KockaAdmiralac/PatrolAll.javascript","u:kocka:User:KockaAdmiralac/TorusAutoFullscreen.javascript","u:monchbox:MediaWiki:Torus.js","u:starmanw:MediaWiki:MultiUpload/code.js","u:starmanw:MediaWiki:QuickLogs/code.js","u:starmanw:MediaWiki:TopandDownButton.js","u:starmanw:User:Dorumin/WHAM",]});});