User:Prince(ss) Platinum/sonic-screwdriver.js

$(function($) {   var screwdriver = {        init: function {            this.core;            this.button;        },        button: function {            var node = document.createElement('a');                node.textContent = "Sonic Screwdriver";                node.className = "wikia-button";                node.id = "sonic-screwdriver";                node.addEventListener('click', function  { screwdriver.modal; });           $('li.start-a-wiki').html($(node));        },        core: function {            var core = '';            $('body').append(core);            mw.util.addCSS('.screwdriver-button{margin-top:5px;} .ssblock{text-align:center;}');        },        modal: function {            var modal = '  The ultimate in sonic wiki technology

BK BN BD DL MV PP UP RP RT RR SS TA UA WA RC '; $('body').append(modal); $('#screwdriver').dialog({               height: 155,                modal: true            }); $('.screwdriver-button').button; }   };    $(function {        screwdriver.init;    }); })(this.jQuery);