User:Paradox the Phoenix/global.js

window.fdButtons = [ {       summary: 'Housekeeping', label: 'HK' },   {        summary: 'Vandalism', label: 'V'   }, {       summary: 'Spam', label: 'S'   } ];

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PatrolPanel.js',        'u:dev:MediaWiki:ThemeToggler.js',        'u:dev:MediaWiki:ClickyNavigation.js',        /*'u:dev:MediaWiki:SnowStorm.js',*/        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:PurgeButton.js',        'u:dev:MediaWiki:AutoCreateUserPages.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:AjaxBatchUndelete.js',        'u:dev:MediaWiki:AllPagesHideRedirect/code.js',        'u:dev:MediaWiki:BackToTopButton/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:MediaWiki:Reconstitution.js',        'u:dev:MediaWiki:MassNullEdit/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:EditLeaderboard.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:DivEditor/code.js', /* */       /*'u:dev:MediaWiki:AutoPurge/code.js',*/ 'u:dev:MediaWiki:FastCreate.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:MarkForDeletion/code.js', 'u:dev:MediaWiki:QuickTemplate/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:FirstEditDate.js', 'u:dev:MediaWiki:AddAnnouncement/code.js', 'u:dev:MediaWiki:CodeQuickLinks/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:QuickTitle/code.js', 'u:dev:MediaWiki:AddArticleToCategory/code.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:AjaxDelete/code.js', 'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:PageCreator/code2.js', ] });

window.pageCreatorConfig = { useUTC: false, useTimeago: true };

window.AjaxDelete = { deleteReasons: { 'Vandalism': 'Vandalism', 'Spam': 'Spam', 'Marked for speedy deletion': 'Speedy', 'Marked for deletion': 'Marked', 'Empty page': 'Empty', 'Author request': 'Author request', 'Irrelevant': 'Irrelevant', 'Failed to comply with the manual of style': 'Manual' },   imageDeleteReasons: { 'Offensive': 'Offensive', 'Inappropriate': 'Inappropriate', 'Harassment': 'Harassment', 'Housekeeping/Unused': 'Unused', 'Copyright infringement': 'Copyright', 'Author request': 'Author request' } };

window.RollbackWikiDisable = false; window.BackToTopFade = 0;

/* window.customCodeQuickLinks= { replaceAllDefaultLinks: false, linkSet: { siteFiles: [ {               name: "JSPages", href: "/wiki/Special:JSPages" },           {                name: "ImportJS", href: "/wiki/MediaWiki:ImportJS" }       ],        userFiles: [ {               name: "Global.js", href: "//c.fandom.com/wiki/Special:MyPage/global.js" },           {                name: "Global.css", href: "//c.fandom.com/wiki/Special:MyPage/global.css" }       ]    } };

window.qtUserPageTemplate = ''; window.qtEnableUserPageOverwrite = true;

window.MarkForDeletion = { promptedDeleteReason: "housekeeping", replace: false };

window.FCButtons = [ {       label: 'Create user page', target: 'User:Paradox_the_Phoenix', summary: 'Creating user page', content: '', alwaysDisplay: true, prepend: false, /*placement:*/ /*require:*/ }/*,*/ ];

window.FastDeleteNoConfirm = true;

/* link text text

window.batchDeleteDelay = 1000; window.batchUndeleteDelay = 1000; window.nullEditDelay = 1000; window.massBlockDelay = 1000;

/*window.autoPurgePages = ["User:Paradox_the_Phoenix", "Template:User:Paradox_the_Phoenix"];*/

window.customUserAccountAge = { showFullDate: true };

window.MassEditConfig = { interval: 1500, placement: { element: "tools", type: "prepend" } };

window.AutoCreateUserPagesConfig = { content: { 2: '',   },    summary: 'User page created', notify: '$1' };

(function unvotePoll(window, $, mw) {   if (window.unvotePollLoaded) return;    window.unvotePollLoaded = true;

var url;

mw.loader.using(['mediawiki.util']).then(function {       var threadId = extractThreadId(mw.util.getParamValue('unvotePoll'));        url = mw.util.wikiScript('wikia');

if (threadId) unvote(threadId);

$('#WikiaBar ul.tools').append(           $('').append( $('') .attr('href', "#") .text('PollUnvote') .on('click', promptBox) )       );    });

function unvote(threadId) { $.getJSON(url, {           controller: 'DiscussionThread',            method: 'getThread',            threadId: threadId        }).error(function {            alert('(UnvotePoll) Error loading thread information');        }).then(function(data) {            var pollId = data.poll && data.poll.id;

if (!pollId) { alert('(UnvotePoll) Failed to retrive poll data or thread is not a poll'); return; }

$.post(url, {               controller: 'DiscussionPoll',                method: 'castVote',                pollId: pollId,                answerIds: ''            }).error(function {                alert('(UnvotePoll) Unvoting failed');            }); });   }

function promptBox { var threadId = prompt('Insert link or thread ID of a poll to unvote:'); if (threadId) { threadId = extractThreadId(threadId); if (threadId) { unvote(threadId); } else { alert('(UnvotePoll) Error: Invalid input'); }       }    }

function extractThreadId(str) { var regex = new RegExp('^(?:' + mw.config.get('wgServer').replace(/(https?:\/\/)/, '(?:https?://)?') + '/f/p/)?(\\d+)(:?/r/\\d+.*)?$');

if (typeof str !== 'string' || !regex.test(str)) return false; return str.replace(regex, '$1'); }

})(this, jQuery, mediaWiki);