User:Dorumin/global.js

/* This page is just a huge mess. Feel free to take anything. My wallet is probably in there, too. */

// Uprising? (function {   if (wgAction != 'view') return;    var walker = document.createTreeWalker(document, NodeFilter.SHOW_TEXT),    n;    while (n = walker.nextNode)        n.textContent = n.textContent.replace(/FANDOM/g, 'Wikia'); });

// Add quick logs mw.hook('QuickLogs.loaded').add(function(ql) {   ql.addLink('useravatar', { message: 'avatar log', by: ql.user }, 4);   ql.addLink('delete', { message: 'delete log', by: ql.user }, 7); });

// Redirect to base page if ends with '/' if (window.location.href.match("/$")) { window.location.href = window.location.href.slice(0, -1); }

// always remove that annoying thing $('.youtubeplayer, .featured-video__wrapper').remove;

// Ajax Block settings window.AjaxBlock = { blockReasons: { 'Vandalism': 'Vandalism', 'Spam': 'Spam', 'Repeated policy violations': 'Repeated violations', 'Sockpuppetry/Ban Evasion': 'Sockpuppetry', 'Moved to a new account': 'Moved', 'Removing content/blanking pages': 'Page blanking', 'Inserting false information or nonsense': 'Gibberish', 'Intimidating behaviour/harassment/trolling': 'Troll/Harassment', 'Unacceptable username, avatar, or global masthead': 'Name/avatar', 'Under the legal age': 'COPPA', 'Failing to comply with the File Policy': 'File Policy', 'Posting/Discussing leaked content': 'Leaks' },   check: { creation: true, talk: true, autoBlock: true, override: true } };

window.AjaxDelete = {noUndelete: true}; // Nope

/*window.announcementsIgnore = { option: 'opt-out-all', exceptWikiIds: [] };*/

/****************** Import scripts ******************/ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:AjaxBlock/code.js',        'u:dev:MediaWiki:AjaxDelete/code.js',        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MediaWiki:CodeSelectAll/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:DisplayTimer/code.js',        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:HoverEditCount/code.js',        'u:dev:MediaWiki:ListFiles/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:QuickLogs/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:UnhideUserMasthead/code.js',        'u:dev:MediaWiki:ViewDeleted/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:kockMediaWiki:a:User:KockaAdmiralac/LinkModifications.js' ] });