User:BonTheFox/common.css

/*All codes are taken from UCP wiki :P*/ /* Raz Mail's Code from the Dev Fandom. */ /*THIS CODE IS TAKEN FROM COMMUNITY FANDOM. SOME ADDONS MAY OR MAY NOT WORK.*/ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js',        'u:dev:MediaWiki:BlogLink/code.js',        'u:dev:MediaWiki:Discussions Delete All/code.js',        'u:dev:MediaWiki:DiscussionsViewer.js',        'u:dev:MediaWiki:DiscussionsActivity.js',        'u:dev:MediaWiki:AdminDashboard block/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:AbuseLogRC.js',        'u:dev:MediaWiki:AddBlockUserTag/code.js', /*        'u:dev:MediaWiki:YouShallNotPass/code.js',*/ /*Temp under review*/        'u:dev:MediaWiki:UserAccountAge/code2.js',        'u:dev:MediaWiki:UserRightsRecord/code.js',        'u:dev:MediaWiki:DiscussionTemplates.js',        'u:dev:MediaWiki:CopyCodeButton.js',        'u:dev:MediaWiki:LakeLinks.js',          'u:dev:MediaWiki:PortableListUsers.js', 'u:dev:MediaWiki:ProfileIcons.js', 'u:dev:MediaWiki:ProtectionIcons.js', 'u:dev:MediaWiki:AvatarLink.js', 'u:dev:MediaWiki:ClickyNavigation.js', 'u:dev:MediaWiki:Quick Management/code.js', 'u:dev:MediaWiki:CodeLinksDropdown.js', 'u:dev:MediaWiki:DisableCode/code.js', 'u:dev:MediaWiki:EditBio/code.js', 'u:dev:MediaWiki:QuickComments/advanced.js', 'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:ToDoList.js', 'u:dev:MediaWiki:ExternalLinkWarning.js', 'u:dev:MediaWiki:LegacyWall/code.js', 'u:dev:MediaWiki:AddArticleToCategory/code.js', 'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:ProtectedHighlight/code.js', 'u:dev:MediaWiki:ReaderMode/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', /*seems like a mass rollback lol*/ 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:ListFiles/code.js', 'u:dev:MediaWiki:Nuke/code.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', ] }); /*WHAM*/ /*********************************** WHAM *************************************/ window.WHAMBotMe = true; window.WHAMBotReason = "Mass reverting edits made by vandal (w:c:dev:WHAM)"; window.WHAMDeleteReason = "Deleting unneeded pages made by vandal"; window.WHAMBlockReason = "Violation of User Conduct: Vandalising (vandal)"; /*MASS CODES*/ importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassUserRights/code.js', 'u:dev:MediaWiki:MassRenameRevert/code.js', 'u:dev:MediaWiki:MassPatrol/code.js', 'u:dev:MediaWiki:MassUserRights/code.js', 'u:dev:MediaWiki:MassRedirect/code.1.js', 'u:dev:MediaWiki:MassRename/code.js', 'u:dev:MediaWiki:MassRollback.js', ] }); /*MassBlock importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:FastBlock.js', ] }); window.FastBlock = [   {        label: 'NSFW Raider',        expiry: 'infinite',        reason: 'Violation of User_Conduct: Raider - Posting NSFW content',        autoblock: 1,        nocreate: 1    },    {        label: 'ScLink',        expiry: 'infinite',        reason: 'Violation of User_Conduct: Raider - Posting scam links to scam other wiki users',        autoblock: 1,        nocreate: 1    },    {        label: 'AltAcc',        expiry: 'infinite',        reason: 'Violation of Rules and Guidelines: Alt account',        autoblock: 1,        nocreate: 1    },    {        label: 'Vand (Inf)',        expiry: 'infinite',        reason: 'Violation of User_Conduct: Vandalism',        autoblock: 1,        nocreate: 1    },    {        label: 'Raid',        expiry: 'infinite', reason: 'Violation of User_Conduct: Raider', autoblock: 1, nocreate: 1 }, /*Only list wikis with the rules' name "Rules and Guidelines"*/ /* /*   {        label: 'LabelToBeDisplayed', expiry: 'ExpTime', autoblock: '1 if true, 0 if false', nocreate: '1 if true, 0 if false' }, ];   /*Code down taken from Karasuneth, on Adopt Me! Wikia licensed under CC BY 3.0. Thanks :P*/ /* Fixes userpage redlinks to no longer open the editor for that page. */ mw.hook("wikipage.content").add(function($content) {   var links = $('#mw-content-text a.new');    links.each(function(index, element){ if (!$(element).attr('href')) { var title = $(element).attr('title'); if (title.startsWith('User:') && title.endsWith('(page does not exist)')) { title = title.slice(0, -22); var decodedURL = mw.util.getUrl(title); $(element).removeAttr('data-uncrawlable-url'); $(element).attr('href', decodedURL); }       }    }); }); /* Restores the post button to redirect to user's Discussions posts as it did on Legacy */ mw.loader.using('mediawiki.api', function {   'use strict';    var user = mw.config.get('wgRelevantUserName');    if ( window.DiscussionPLReady || !user ) return;   window.DiscussionPLReady = true;    var api = new mw.Api,        data, id;    api.get({ action: 'query', list: 'users', ususers: user }).then(function(d) { data = d.query.users; if (!data.length) return; id = data[0].userid; var interval = setInterval(function {           if ($('#userProfileApp .user-profile-navigation').length) {                clearInterval(interval);                var identity = $('.user-identity-stats a[href^="/wiki/Special:UserProfileActivity/'+user+'"]');                if (identity.length) {                    identity.each(function { $(this).attr('href', '/f/u/'+id); });               }            }        }, 1000);    }); });
 * This will be updated if needed, since idrk if I'll like it on every wiki
 * Example table