User:ShadeTempest/global.js

importScriptPage("User:Monchoman45/ChatHacks.js", "community"), importScriptPage("User:Joeytje50/ChatPMs.js", "community"), importScriptPage("User:Joeytje50/tabinsert.js", "runescape"), importScriptPage("MultiUpload/code.js", "dev"), importScriptPage("AJAX Auto-refresh/code.js", "fang"); importArticles({   type: "script",    articles: [        "u:dev:AdvancedOasisUI/code.js",        "w:c:dev:WHAM/code.js",        'w:c:dev:AjaxPatrol/code.js',        "u:dev:AjaxBatchDelete/code.2.js",        'u:dev:QuickTools/advanced.js',        'w:c:animalcrossing:User:Incongruence/chat.js/youtube.js'    ] }); 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) { const KEEP_TIME = 2734; Notification.requestPermission(function(message) {       "granted" == message && mainRoom.model.chats.bind("afteradd", function(message) { new Message(message).display; });   }); }

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