User:Cizagna/global.js

importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/contribtools.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/mwcustomeditbtns.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/filelisttools.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/forumtools.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/ajaxpatrollinks.js&action=raw&ctype=text/javascript&dontcountme=s');

// ***************************************************************** // Adds custom automatic one-click delete tabs to any deletable page. importScriptURI('http://www.wikia.com/index.php?title=User:Cizagna/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s') var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label' : 'S'};

// ***************************************************************** //  Adds 0 edit Link beside the title if (!window.$G){	window.$G = YAHOO.util.Dom.get;} function addZeroEditSectionLink{ if (wgNamespaceNumber == -1 || wgAction != 'view') return; var s = $T.create('span', {'class':'editsection',style:'float:none;position:absolute;'}); var a = $T.create('a', {href: wgScript+'?title='+wgPageName+'&action=edit&section=0', title:'Editar la sección inicial'}, 'editar'); $T.makeChildren([document.createTextNode('['),a,document.createTextNode(']')],s); (document.getElementById('content')||document.getElementById('article')).getElementsByTagName('h1')[0].appendChild(s); } addOnloadHook(addZeroEditSectionLink)

// ***************************************************************** // Subpages tab if(wgNamespaceNumber!=-1) addOnloadHook(function { addPortletLink('p-cactions','/wiki/Special:Prefixindex/' + escape(wgPageName),'Subpages','ca-subpages','Show subages of ' + wgPageName); });

// ***************************************************************** // Alternating skin tabs function skinview { var skinlink = document.location.href; var antiskin;

if(skinlink.indexOf('?')==-1) skinlink += '?useskin='; else skinlink += '&useskin='; if(skin == 'monobook') antiskin = 'monaco'; else antiskin = 'monobook';

skinlink += antiskin;

if(skin == 'monobook') { addPortletLink('p-cactions', skinlink, antiskin, 'ca-skin'); skinlink += '&usetheme=custom'; addPortletLink('p-cactions', skinlink, 'custom', 'ca-skin'); } else addPageBarlink(skinlink,antiskin,'control_skin'); } addOnloadHook(skinview)