User:Manyman/global.js

/* */

/* Navigation pop-ups */ importScriptURI("http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript");

/* Auto-refresh */ ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Forum:Comunity_Central_Forum"]; AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptURI("http://dev.wikia.com/index.php?title=AjaxRC/code.js&action=raw&ctype=text/javascript");

/* Find and Replace */ importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript');

/* CustomEditButtons */ importScriptURI("http://manyman.wikia.com/index.php?title=CEB/code.js&action=raw&ctype=text/javascript");

/* Quick preview */ importScriptURI("http://runescape.wikia.com/index.php?title=User:Quarenon/quickpreview.js&action=raw&ctype=text/javascript");

/* SkinSwitch */ importScriptPage('SkinSwitchButton/code.js', 'dev');

/* Mass Rollback */ importScriptPage('User:Quarenon/massrollback.js', 'runescape');

/* Revert link in RC */ importScriptPage('User:Quarenon/rcrollback.js', 'runescape');

/* UTC in local time zone */ importScriptPage('User:Quarenon/localcomments.js', 'runescape');

/* Rollback Summary */ importScriptPage("User:Grunny/rollbackSummary.js", "firefly");

/* VDA Lite */ importScriptURI("http://vda.wikia.com/index.php?title=MediaWiki:VDAlite.js&action=raw&ctype=text/javascript");

/* Fast Delete */ importScriptPage("User:Grunny/bdel.js", "firefly"); var fdButtons = []; fdButtons[fdButtons.length] = { "summary": "Spam/Vandalism", "label": "Vandalism/Spam"}; fdButtons[fdButtons.length] = { "summary": "Housekeeping", "label": "Housekeeping"}; fdButtons[fdButtons.length] = { "summary": "Deletion request", "label": "Author request"}; fdButtons[fdButtons.length] = { "summary": " ", "label": "No reason"};

/* Edit button on Answers */ importScriptPage("AnswersEditButton/code.js", "dev");

/* History button on Answers */ importScriptPage("AnswersHistoryButton/code.js", "dev");

/* Talk button on Answers */ importScriptPage("AnswersTalkButton/code.js", "dev");

/* PurgeButton */ PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev');

/* Toolbox */ importScriptPage('Toolbox/code.js', 'manyman');

/* This bit is Joeyaa's - adds links to anons in comments */ $('.details span[title]').each(function{       var t = $(this),        title = $(this).attr("title");        t.html('' + title + ''); });

/* Tests */ importScriptPage('Tests/code.js', 'manyman');

/* VDA */ importScriptPage("MediaWiki:VDAbeta.js", "vda"); $(function {    VDA.load("RV");    VDA.load("VW"); });

dil = new Array; function findDupImages(gf) { output = ""; url = "/api.php?action=query&generator=allimages&prop=duplicatefiles&gailimit=500&format=json"; if (gf) url += "&gaifrom=" + gf; $.getJSON(url,function (data) { if (data.query) { pages = data.query.pages; for (pageID in pages) { dils = ","+dil.join; if (dils.indexOf(","+pages[pageID].title) == -1 && pages[pageID].title.indexOf("File::") == -1 && pages[pageID].duplicatefiles) { output += " "+pages[pageID].title+" \n\n"; for (x=0;xFile:"+pages[pageID].duplicatefiles[x].name+"\n"; dil.push("File:"+pages[pageID].duplicatefiles[x].name.replace(/_/g," ")); } output += "\n\n" } } $("#mw-dupimages").append(output); if (data["query-continue"]) setTimeout("findDupImages('"+data["query-continue"].allimages.gaifrom+"');",5000); } }); } $(function { if ($("#mw-dupimages").length) findDupImages; }); /* */