User:Tardis1963/global.js

function EditBar {

winwidth = $(document).width; offset = (((winwidth-1000)/2)-139)

if(wgCanonicalNamespace == 'Special') {} else { $('header.WikiHeader').after('    ');

if((wgUserGroups.indexOf("sysop")) != -1) { $('div#renamebutton').after('<div id="protectbutton" style="position: fixed; top: 312px; left: ' + offset + 'px; width: 130px;"><img src="http://images3.wikia.nocookie.net/doctor-who-collectors/images/f/f6/Protect.png" width="130"></a> <div id="deletebutton" style="position: fixed; top: 355px; left: ' + offset + 'px; width: 130px;"><img src="http://images1.wikia.nocookie.net/doctor-who-collectors/images/8/8c/Delete.png" width="130"></a> ') }

if((wgCanonicalNamespace.indexOf("talk")) != -1 || wgCanonicalNamespace == 'Forum' || wgCanonicalNamespace == 'Blog' || wgCanonicalNamespace == 'User_blog') { $('div#talkbutton').hide; }	} }

addOnloadHook(EditBar);