User:Monobi/common.js

// ***************************************************************** // Load various external scripts // ***************************************************************** function appendScript(url) { var scriptElem = document.createElement('script'); scriptElem.setAttribute('src',url); scriptElem.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(scriptElem); } appendScript('http://www.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s') appendScript('http://en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript&dontcountme=s') // ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires w:User:Splarka/fastdelete.js in appendScript; var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'nobody cares', 'label': 'UN:N'}; fdButtons[fdButtons.length] = { 'summary': 'Test, please use the sandbox', 'label': 'test'}; fdButtons[fdButtons.length] = { 'summary': 'Please read About this site', 'label': 'site'}; fdButtons[fdButtons.length] = { 'summary': 'Author/User Request', 'label': 'req' }; // /* document.write(' '); /* define templates */ function define_templates { /* syntax: new_template('type','name','text','optional 1','optional 2','optional 3'); see documentation */       /* ### edit templates below ### */ new_template('edit','T','--~',''); new_template('edit','encyc','--~',''); new_template('edit','non','--~',''); /* ### edit templates above ### */ } /* Load script */ addOnloadHook(function {templatescript(define_templates)}); //
 * 1) TemplateScript 0.5-alpha
 * 2)  by m:user:Pathoschild
 * 3)    * adds a menu of user-defined, form-specific templates
 * 4)    * documentation:
 * 1)    * documentation: