User:JCMP/monobook.js

// User:Lupin/popups.js

document.write(' ');

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

// Filter changes live // en:User:Lupin/Anti-vandal tool - please include this line document.write(' ');

$(function {    var searchGoButton = document.getElementById('searchGoButton');    if (!searchGoButton) return;

var searchNsHidden = document.createElement('input'); searchNsHidden.id = 'searchNsHidden'; searchNsHidden.type = 'hidden'; searchNsHidden.name = 'ns0'; searchNsHidden.value = '1';

var searchNsMenu = document.createElement('select'); searchNsMenu.id = 'searchNsMenu'; searchNsMenu.name = 'ns'; searchNsMenu.options[searchNsMenu.options.length] = new Option('(Principal)', 0); searchNsMenu.options[searchNsMenu.options.length] = new Option('Discussão', 1); searchNsMenu.options[searchNsMenu.options.length] = new Option('Usuário', 2); searchNsMenu.options[searchNsMenu.options.length] = new Option('Usuário Discussão', 3); searchNsMenu.options[searchNsMenu.options.length] = new Option('Wikipedia', 4); searchNsMenu.options[searchNsMenu.options.length] = new Option('Wikipedia Discussão', 5); searchNsMenu.options[searchNsMenu.options.length] = new Option('Imagem', 6); searchNsMenu.options[searchNsMenu.options.length] = new Option('Imagem Discussão', 7); searchNsMenu.options[searchNsMenu.options.length] = new Option('MediaWiki', 8); searchNsMenu.options[searchNsMenu.options.length] = new Option('MediaWiki Discussão', 9); searchNsMenu.options[searchNsMenu.options.length] = new Option('Predefinição', 10); searchNsMenu.options[searchNsMenu.options.length] = new Option('Predefinição Discussão', 11); searchNsMenu.options[searchNsMenu.options.length] = new Option('Ajuda', 12); searchNsMenu.options[searchNsMenu.options.length] = new Option('Ajuda Discussão', 13); searchNsMenu.options[searchNsMenu.options.length] = new Option('Categoria', 14); searchNsMenu.options[searchNsMenu.options.length] = new Option('Categoria Discussão', 15); searchNsMenu.options[searchNsMenu.options.length] = new Option('Portal', 100); searchNsMenu.options[searchNsMenu.options.length] = new Option('Portal Discussão', 101); searchNsMenu.onchange = function { searchNsHidden.name = 'ns' + (this.selectedIndex < 0 ? '0' : this.options[this.selectedIndex].value); };

// From /skins-1.5/monobook/main.css?5: searchNsMenu.style.width = '11em'; searchNsMenu.style.margin = '0'; searchNsMenu.style.fontSize = '95%';

searchGoButton.parentNode.insertBefore(searchNsHidden, searchGoButton); searchGoButton.parentNode.insertBefore(searchNsMenu, searchGoButton); });

//

/** wikEd *********************************************************************************** *   Origem: Software/Scripts/wikEd.js *    Ajuda: Software/Scripts/wikEd * Descrição: Editor de texto avançado *    Autor: en:User:Cacycle ********************************************************************************************/ document.write(' ');