User:Parkour2906/common.js

mw.loader.using('mediawiki.util', 'ext.fandom.ContentReview.legacyLoaders.js').then(function {	'use strict';	importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:AlwaysShowBottomBar.js', 'u:dev:MediaWiki:AnnouncementsIgnore.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:BulkVideoUpload.js', 'u:dev:MediaWiki:CategoryQuickRemove.js', 'u:dev:MediaWiki:DarkAbuseFilter.js', 'u:dev:MediaWiki:DecodeURI.js', 'u:dev:MediaWiki:DisableVisualEditor.js', 'u:dev:MediaWiki:IgnoreNotifications.js', 'u:dev:MediaWiki:JSONViewer.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:MaximizeAce.js', 'u:dev:MediaWiki:UploadMultipleFiles.js', 'u:dev:MediaWiki:MultipleActivity.js', 'u:dev:MediaWiki:NewImages.js', 'u:dev:MediaWiki:NotifPatches.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:PatrolRC/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:QuickPurge.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:SocialActivityModern.js', 'u:dev:MediaWiki:SyntaxHighlight.js', 'u:dev:MediaWiki:ViewNotificationsUsers.js', 'u:dev:MediaWiki:WallGreeting.js', 'u:dev:MediaWiki:WikiActivity.js' ]	});	mw.loader.load("https://wingsoffire.fandom.com/wiki/User:Parkour2906/AjaxUndo.js?action=raw&ctype=text/javascript");	mw.loader.load("https://wingsoffire.fandom.com/wiki/User:Parkour2906/ChangeSystemMessages.js?action=raw&ctype=text/javascript");	mw.loader.load("https://wingsoffire.fandom.com/wiki/User:Parkour2906/Rollback.js?action=raw&ctype=text/javascript");	// Bookmarks	$(function { if (typeof bookmarks == 'undefined') { bookmarks = [ ['Main Page'] ];	   }	    var bookmarksHTML = '' + '' + ' Bookmarks ' + ' ' + '' + '', href, html; for (var i = 0; i < bookmarks.length; i++) { href = bookmarks[i][0]; if (bookmarks[i].length > 1) { html = bookmarks[i][1]; } else { html = href; }	       bookmarksHTML += '' + html + '';	    }	    $(".wds-global-navigation__links").append(bookmarksHTML);	});	// Automatically hide the preview and make a button to hide and show it	$(function {		$(".ve-oasis-header").css("z-index", "0");		$("#wpPreviewWidget input").attr("value", "Refresh Preview");		$("#wpPreviewWidget").after(" ");		$("#wpHidePreviewWidget").click(function {			if ($("#wikiPreview").css('display') == 'none') { $("#wikiPreview").css("display", "block"); $("#wpHidePreviewWidget").attr("value", "Hide Preview"); } else { $("#wikiPreview").css("display", "none"); $("#wpHidePreviewWidget").attr("value", "Show Preview"); }		});		$("#wpPreviewWidget").click(function { if ($("#wikiPreview").css('display') == 'none') { $("#wikiPreview").css("display", "block"); $("#wpHidePreviewWidget").attr("value", "Hide Preview"); }		});		$("#wikiPreview").css("display", "none");	 }); // Bookmark links window.bookmarks = [ ['Project:AutoWikiBrowser/Script', 'JWB'], ['https://wingsoffire.fandom.com/wiki/User:Parkour2906/RCM', 'RCM'] ];	// NewImages configuration $(function {		var newImages = $(".photo-module").clone;		if ($('.WikiaRail .premium-recirculation-rail').length) {			$(".photo-module")[0].remove;			$(".WikiaRail .premium-recirculation-rail").before(newImages);			}	}); // IgnoreNotifications window.andrewds1021.ignore_notifications.ignore_errors = true; window.andrewds1021.ignore_notifications.all_users = true; window.andrewds1021.ignore_notifications.filters = [{ types: [ "article-comment-at-mention", "article-comment-reply-at-mention", "post-at-mention", "thread-at-mention" ],		not: { wiki_ids: [ 177, // Community Central 571430, // Wings of Fire Wiki 1113133, // Murder Mystery 2 Wiki 1785142, // She-ra and the Princesses of Power Wiki ]		}	},	{		types: "discussion-upvote", not: {wiki_ids: 0} }	];	// ViewNotificationsUsers window.andrewds1021.view_notifications_users.types = [ 'discussion-post', 'discussion-upvote', 'message-wall-post' ];	window.andrewds1021.view_notifications_users.content = "name"; // Remove Email Confirmation Banner $(function {		var notifications = $(".wds-banner-notification");		notifications.remove;	}); });