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(t){this.display=function{if("granted"==Notification.permission){var e=new Notification(t.attributes.name,{icon:t.attributes.avatarSrc,body:t.attributes.text});setTimeout(function{e.close},KEEP_TIME)}}}function toggleProtection{protectToggle=protectToggle===!0?!1:!0}function create10{USER="ShadeTempest",mainRoom.model.chats.bind("afteradd",function(t){if(t.attributes.name==USER&&" "!=t.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(t){"granted"==t&&mainRoom.model.chats.bind("afteradd",function(t){new Message(t).display})})}protectToggle=!1,$("form#Write").append('Protect'),create10;