User:Vastmine1029/global.js

// Show all announcements except those from the following [city_id] wikis window.announcementsIgnore = { option: 'opt-in-all', exceptWikiIds: [ 2502419, /* the-avocados */ 2009968, /* blox-fruits */ 2170197 /* bgs-community-content */ ] };

importArticles({   type: 'script',    articles: [    	'u:dev:MediaWiki:AnnouncementsIgnore.js',    	'u:dev:MediaWiki:DisableCode/code2.js',        'u:dev:MediaWiki:DisplayTimer/code.js',		'u:dev:MediaWiki:LastEdited/code.js',		'u:dev:MediaWiki:MassBlock/code.js',		'u:dev:MediaWiki:MarkBlocked.js',		'u:dev:MediaWiki:PortableCSSPad/code.js',		'u:dev:MediaWiki:QuickDiff/code.js',		'u:dev:MediaWiki:Rollback/code.js',		'u:dev:MediaWiki:ShowUserGroups.js',		'u:dev:MediaWiki:Status/code.js',		'u:dev:MediaWiki:SyntaxHighlight.js',		'u:dev:MediaWiki:ThemeToggler.js',		'u:dev:MediaWiki:UserAccountAge/code2.js',		/*'u:dev:MediaWiki:UserAndIPTools.js', - Not compatible*/		'u:dev:MediaWiki:WHAM/code.2.js'    ] });

/* Credits to joritochip :) */ 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);            }        }    }); }); 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);	}); });

/* https://adoptme.fandom.com/api.php?action=query&list=users&ususers=Shaki123Ss&usprop=blockinfo|groups|editcount|registration|emailable|gender*/ /*api.php?action=query&list=blocks&bkusers=USERNAME

/*mw.loader.using('mediawiki.api', function {	'use strict'; });*/

$(function {		if ($(".wds-banner-notification__text").html.includes("trivia")) {			$(".wds-banner-notification").remove;		}			else {			return;		}	});