User:ShadeTempest/global.js

importScriptPage("User:Joeytje50/tabinsert.js", "runescape"), importScriptPage("MultiUpload/code.js", "dev"), importArticles({   type: "script",    articles: [        "u:dev:AdvancedOasisUI/code.js",        'u:dev:AjaxRC/code.js',        "w:c:dev:WHAM/code.js",        "u:dev:MediaWiki:ChatHacks.js",        'w:c:dev:AjaxPatrol/code.js',        "u:dev:AjaxBatchDelete/code.2.js",        'u:dev:QuickTools/advanced.js',        "u:dev:MediaWiki:JWB/load.js",        'w:c:animalcrossing:User:Incongruence/chat.js/youtube.js'    ] }); const KEEP_TIME = 2734; function Message(message) { this.display = function { if ("granted" == Notification.permission) { var msg = new Notification(message.attributes.name, {               icon: message.attributes.avatarSrc,                body: message.attributes.text            }); setTimeout(function {               msg.close;            }, KEEP_TIME); }   }; }

function toggleProtection { protectToggle = protectToggle === !0 ? !1 : !0; }

function create10 { USER = "ShadeTempest", mainRoom.model.chats.bind("afteradd", function(message) {       if (message.attributes.name == USER && " " != message.attributes.text && protectToggle) for (i = 0; 11 > i; ++i) $("[name='message']")[0].value = " ",         mainRoom.sendMessage({ target: $("[name='message']"), which: 13, preventDefault: function {} });   }); }

if ("Chat" == wgCanonicalSpecialPageName) { Notification.requestPermission(function(message) {       "granted" == message && mainRoom.model.chats.bind("afteradd", function(message) { new Message(message).display; });   }); }

protectToggle = !1, $("form#Write").append('Protect'), create10;