User:Alecran/global.js

function botonesCambiaSkin { $('#my-tools-menu li:nth-last-child(1)').after('Ver con Monobook');$('#my-tools-menu li:nth-last-child(1)').after('Ver con Vector'); }

addOnloadHook(botonesCambiaSkin);

/* Disable editing of talk page archives * Version 0.15 * Script by User:Porter21 (http://fallout.wikia.com) * i18n function by User:Dantman */ function disableArchiveEdit { // Configuration var config = window.DisableArchiveEditConfig = $.extend(true, {     archiveSubpage: 'Archivo',      disableCompletely: false,      textColor: '#D9D9D9',      userLang: true,      // Deutsch      de: {         archived: "Archiviert",         archivedTooltip: "Diese Seite ist ein Archiv und sollte nicht bearbeitet werden."      },      // English      en: {         archived: "Archived",         archivedTooltip: "This page is an archive and should not be edited."      },      // Español      es: {         archived: "Archivados",         archivedTooltip: "Esta página es un archivo y no debería ser modificado."      },      // Français      fr: {         archived: "Archivés",         archivedTooltip: "Cette page est une archive et ne devrait pas être modifié."      }   }, window.DisableArchiveEditConfig || {}); // Function for multi-language support (by Daniel Friesen aka User:Dantman) function msg(name) { if ( config.userLang && wgUserLanguage in config && name in config[wgUserLanguage] ) return config[wgUserLanguage][name]; if ( wgContentLanguage in config && name in config[wgContentLanguage] ) return config[wgContentLanguage][name]; return config.en[name]; }  // Check whether page is an archive if ((new RegExp('\\/\[' + config.archiveSubpage.substr(0,1).toUpperCase     + config.archiveSubpage.substr(0,1).toLowerCase + '\]' + config.archiveSubpage.substr(1)      + '\\s\*\\d\*')).test(wgTitle)) { // Remove "add new section" links and prepare altering "edit" page control switch (skin) { case 'monaco': $('#control_addsection').remove; $('#fe_newsection').remove; editlink = $('#ca-edit'); break; case 'monobook': $('#ca-addsection').remove; editlink = $('#ca-edit > a'); break; case 'oasis': case 'wikia': var oasisButton = $(((wgNamespaceNumber == 3) ? '#WikiaUserPagesHeader' : '#WikiaPageHeader') + ' > ul.wikia-menu-button > li'); oasisButton.children("a:first").prependTo($('ul:first', oasisButton)).wrap(' ').children('img').remove; oasisButton.prepend(''); $('a[data-id="addtopic"]', oasisButton).parent.remove; editlink = $('a:first', oasisButton); break; }     // Remove "edit section" links $('span.editsection').remove; // Alter "edit" page control if (config.disableCompletely) { editlink.remove; } else { editlink.attr('title', msg('archivedTooltip')).css('color', config.textColor).text(msg('archived')); }  } } jQuery(function($) {   if ((skin == 'monaco' || skin == 'monobook' || skin == 'oasis' || skin == 'wikia') && wgNamespaceNumber%2 != 0 && wgNamespaceNumber != 501) {     disableArchiveEdit ;   } });

importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js'    ] });