User:Angela/global.js

// http://www.wikia.com/index.php?title=User:Angela/global.js&action=raw&ctype=text/javascript&dontcountme=s //

// ***************************************************************** // 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.setAttribute('style','margin-left: 10px;'); msbs.appendChild(link); } if((skin=='slate')||(skin=='smoke')) addOnloadHook(vskinTools)

//