User:GorySnomQueen5702/global.js

//Imports importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxEdit.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:BlogLink/code.js',        'u:dev:MediaWiki:CacheCheck/code.js',        'u:dev:MediaWiki:CategoryQuickRemove.js',        'u:dev:MediaWiki:EditBio/code.js',        'u:dev:MediaWiki:EditConflictAlert/code.js',        'u:dev:MediaWiki:FloatingToc/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:Linksweeper/code.js',        'u:dev:MediaWiki:MarkBlocked.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:MassRename/code.js',        'u:dev:MediaWiki:ModernLeaderboard.js',        'u:dev:MediaWiki:MultiUpload/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:RailWAM/code.js', 'u:dev:MediaWiki:RecentChangesModule/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:ReferencePopups/code.js', 'u:dev:MediaWiki:RefreshThreads/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:Thread Inspection/code.js', 'u:dev:MediaWiki:TokenRefresh.js', 'u:dev:MediaWiki:TopEditors/code.js', 'u:dev:MediaWiki:UploadInPage/code.js', 'u:dev:MediaWiki:UserCheck/code.js', 'u:dev:MediaWiki:UserLastActivity.js', 'u:dev:MediaWiki:ViewRemoved/code.js', "u:pultyrandomtesting:User:Yxtqwf/global-js/FindAndReplace-js", "u:pultyrandomtesting:User:Yxtqwf/global-js/MassEdit-js", "u:pultyrandomtesting:User:Yxtqwf/global-js/searchContribs-js", "u:pultyrandomtesting:User:Yxtqwf/global-js/Wikimarks-js" ] }); // UploadInFile Optimization window.needsLicense = true; window.allowMultiUpload = true; window.maxFiles = 10; window.uploadDetails = false; window.UploadFileIcon = "https://vignette.wikia.nocookie.net/kirby/images/4/4a/A%C3%B1adirImagen.png/revision/latest?cb=20171020011105"; window.ignoreWarnings = 0 || false; window.UploadFileOasis = false; importArticles({ type: 'script', articles: [ "u:dev:UploadInPage/code.js" ] }); //UserTags Optimization window.UserTagsJS = {	modules: {},	tags: {		discord: {u: 'Discord Moderator'},		rb: {u: 'Rollback'}       } }; UserTagsJS.modules.custom = {    'FireOfTheWings': ['rb'],	'FluentInMusic': ['discord'],	'Magic death spit': ['rb'],	'Mushrmkng': ['discord', 'rb'],	'Sandwingscales': ['rb'],	'StArchaeopteryx': ['rb'] }; /* Change 'Edit' button to 'Edit The Snommy Page UwU' Change 'Publish' button to 'Make global :)' */ (function {   "use strict";    document.getElementById('wpSave').setAttribute("value", "Publish Scroll"); }); /* WIP var api = new mw.Api; $(function {   $( ".ns-1201 .replies .msg-body a[href^='https://wingsoffire.fandom.com/wiki/Thread:']," + ".ns-1201 .replies .msg-body a[href^='/wiki/Thread:']" ).each(function { var $this = $(this); var id = $this.attr("href").split("/Thread:")[1].split("?")[0].split("#")[0]; api.get({           action: "query",            pageids: id,        }).done(function(data) {            var title;            if (data.query.pages[id])                title = data.query.pages[id].title;            if (title && title.split("/")[0] === "Board Thread:Roleplay")                $this.text("ROLEPLAY AD").css("text-decoration", "line-through");        }); }); }); //Test function BlockMessages { 'use strict'; var replies = $(".replies"); var messages; for (var reply in replies) { messages = reply.querySelectorAll(".speech-bubble-message a"); for (var message in messages) { if (message.href == "https://wingsoffire.fandom.com/wiki/Message_Wall:Moonwatcher_Beauty") { message.href = "https://blogclan.katecary.co.uk/2018/03/25/dovewing-vs-bumblestripe-house-divided-by-oakwhisker/"; }       }    } } BlockMessages;