User:ShadeTempest/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'community'); importScriptPage('User:Joeytje50/ChatPMs.js', 'community'); importScriptPage('User:Joeytje50/tabinsert.js', 'runescape'); importArticles({   type: "script",    articles: [        "u:dev:AdvancedOasisUI/code.js",        "w:c:dev:WHAM/code.js",        "u:c:User:Jr Mime/buttons.js",        'w:c:fang:AJAX Auto-refresh/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'    ] }); if(wgCanonicalSpecialPageName == 'Chat') { const KEEP_TIME = 2734;

function Message(message) { this.display = function { if(Notification.permission == "granted") { var msg = new Notification(message.attributes.name, {icon: message.attributes.avatarSrc, body: message.attributes.text}); setTimeout(function {       msg.close;      }, KEEP_TIME); } } }

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

function create10 { USER = "ShadeTempest" mainRoom.model.chats.bind("afteradd", function(msg) {   if(msg.attributes.name == USER && msg.attributes.text != " "){      for(i = 0; i < 11; ++i) {         $("[name='message']")[0].value = " ";         mainRoom.sendMessage({ target: $("[name='message']"), which: 13, preventDefault: function {} });      }    } else {} }); } $('form#Write').append('Protect'); } importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev');