User:Angela/global.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:Angela/contribtools.js&action=raw&ctype=text/javascript&dontcountme=s'); appendScript('http://www.wikia.com/index.php?title=User:Splarka/fastdelete.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': 'spam', 'label': 'DeleteSpam!'};

// ***************************************************************** // Add some tool buttons to the top of articles in smoke/slate // ***************************************************************** function vskinTools { addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=edit','Edit'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=history','History'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=delete','Delete'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=protect','Protect'); addMSBlink(wgScriptPath + 'index.php?title=Special:Movepage/' + wgPageName,'Move'); } function addMSBlink(url,text) { var msbs = document.getElementById('myStuffBar').getElementsByTagName('a')[0].parentNode; var link = document.createElement('a'); link.href = url; link.appendChild(document.createTextNode(text)); link.style.marginLeft = '10px'; link.style.color = 'red'; msbs.appendChild(link); } if((skin=='slate')||(skin=='smoke')) addOnloadHook(vskinTools)

//