User:~Mana~/common.js

importScript('User:Deltaneos/FastDelete.js', 'yugioh'); importScript('User:Dinoguy1000/newmessageshistory.js', 'yugioh'); importScriptPage('AjaxBatchDelete/code.js', 'dev'); $('#wpSave').attr('value','Save').html('Save'); /* Edit version of http://dev.wikia.com/wiki/Purgetab/code.js */ if(wgNamespaceNumber != -1 && wgCurRevisionId != 0) addOnloadHook(addEditButton) function addEditButton { switch(skin) { case 'monobook': addPortletLink('p-cactions',wgScriptPath + '/index.php?title=' + encodeURIComponent(wgPageName) + '&action=edit', 'edit'); break; case 'wikia': addPageBarlink_edit(wgScriptPath + '/index.php?title=' + encodeURIComponent(wgPageName) + '&action=edit', 'edit'); break; } } function addMSBlink_edit(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); } function addPageBarlink_edit(url, text) { var pc = document.getElementById('page_controls'); if(pc.length < 1) return var d = document.createElement('div'); var link = document.createElement('a'); link.href = url; link.appendChild(document.createTextNode(text)); var nuli = document.createElement('li'); nuli.id = 'control_edit'; nuli.appendChild(d); nuli.appendChild(link); pc.appendChild(nuli); }