User:LadySetsuna/global.js

//============================================================== // RevealAnonIP (to work with AJAXRC) //     http://dev.wikia.com/wiki/RevealAnonIP //============================================================== // Give permission to view Anon IP only to Bureaucrats window.RevealAnonIP = { permissions : ["bureaucrat"] };

//============================================================== // AJAX Batch Delete Script //     http://dev.wikia.com/wiki/AjaxBatchDelete //============================================================== // Append /api.php?action=query&list=querypage&qppage=Unusedimages&qplimit=1000 to // the end of wiki name (replacing "/wiki/...") to get the list of pages easily batchDeleteDelay = 500;   // Default: 1000ms./01sec., Current: 500ms./0.5sec.

//============================================================== // AJAX Recent Changes Auto-Refresh Script //     http://dev.wikia.com/wiki/AjaxRC //============================================================== // Change the Display Text window.AjaxRCRefreshText = "Auto Refresh"; // Change the Hover Text window.AjaxRCRefreshHoverText = "Automatically refresh the page"; // Change refresh time to 30sec. var ajaxRefresh = 30000; // Add the option to Wiki Activity Page as well window.ajaxPages = ["Special:WikiActivity", "Special:RecentChanges"]; // To work with the Reveal Anon IP Script window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(RevealAnonIP.reveal);

//============================================================== // CacheCheck //     http://dev.wikia.com/wiki/CacheCheck //============================================================== // List of pages to add to skip if desired: // 1. 'Uncategorizedcategories' // 2. 'Uncategorizedpages' // 3. 'Uncategorizedimages' // 4. 'Uncategorizedtemplates' // 5. 'Unusedcategories' // 6. 'Unusedimages' // 7. 'Unusedtemplates' // 8. 'UnusedVideos' // 9. 'Wantedcategories' // 10. 'Wantedpages' // 11. 'Wantedfiles' cacheSkip = ["Specialpages", "Deadendpages", "Lonelypages", "Wantedtemplates"]; // If less than the # of results shown on a page, the script won't run on that page. cacheSkipLimit = 1000;

//============================================================== // Multi Upload (Past 50 because Admin) //     http://dev.wikia.com/wiki/MultiUpload //============================================================== // All URL encoded are not permitted for example, in textbox, // Image-picture.png will fail but Image picture.png will work. var MultiUploadoption = { max: 50      // 0 < max < 101 };

//============================================================== // Mass Rename //     http://dev.wikia.com/wiki/MassRename //============================================================== massRenameDelay = 500;    // Default: 1000ms./01sec., Current: 500ms./0.5sec. massRenameSummary = "(automatic)";

//============================================================== // Page Rename Auto Update //     http://dev.wikia.com/wiki/PageRenameAuto-update //============================================================== PRAoptions = { editSummary: "Updating page links (automatic)" }

//============================================================== // Import Scripts //============================================================== importArticles({   type: 'script',    articles: [        "w:c:dev:RevealAnonIP/usercode.js",     // Reveal Anon IP addresses        "u:dev:AjaxBatchDelete/code.2.js",      // AJAX Batch Delete        "u:dev:AjaxRC/code.js",                 // AJAX Recent Changes Auto-Refresh        // Automatically remove broken file links on pages using Special:WantedFiles.        "u:dev:CleanWantedFiles/code.js",       // Clean Wanted Files        "u:dev:CacheCheck/code.js",             // Cache Check        // Adds Quick Null Edit option to Edit drop down menu.        "u:dev:NullEditButton/code.js",         // Null Edit Button        "u:dev:MultiUpload/code.js",            // MultiUpload Past 50        "u:dev:MassRename/code.js",             // Mass Rename Files        "u:dev:PageRenameAuto-update/code.js",  // Page Rename Auto Update        "u:dev:DupImageList/code.js",           // Lists all duplicate images on a wiki ] });