Usuario:Lmorillas/vector.js
De WikiEducator
Nota: después de guardar, quizás necesites refrescar la caché de tu navegador para ver los cambios.
- Firefox / Safari: Mantén presionada Mayús mientras pulsas el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presiona Ctrl+Shift+R (⌘+Mayús+R en Mac)
- Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar, o presiona Ctrl+F5
- Opera: vacía la caché en Herramientas → Preferencias
// Basado en http://wikieducator.org/User:JimTittsler/vector.js importScript('Ususario:Lmorillas/googlesearch.js'); // reader mode for narrow screens --> para el tablet de 7" // should follow googlesearch.js if used // window.weReader = true; // force to always use reader mode, regardless of width importScript('Usuario:Lmorillas/reader.js'); $(function () { $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); $('#pt-mytalk') .after('<li><a href="/User:'+wgUserName+'/Blog">My blog</a></li>') .after('<li><a href="/User:'+wgUserName+'/Projects">My projects</a></li>') .after('<li>' + document.getElementById('content').offsetHeight + 'px</li>'); // change the font and size used for edit box $('#wpTextbox1').css('font-family', 'Courier New').css('font-size', '14px'); // gardening tool if (wgPageName === 'Special:NewPages') { $.getScript('/skins/common/we/spam.js'); } if (wgAction === 'history') { $.getScript('/skins/common/we/deleterevs.js'); } }); /* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor */ addOnloadHook(function() { var editTab = document.getElementById("ca-edit"); if (!editTab) return; var editURL = editTab.getElementsByTagName("a")[0].href; addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); }); /* hide the watch checkbox on LQT postings */ addOnloadHook(function () { var ef, labels; if (document.getElementById("lqt_method")) { ef = document.getElementById('editform'); /* narrow the search for labels */ if (ef) { document.getElementById('wpMinoredit').style.display = 'none'; document.getElementById('wpWatchthis').style.display = 'none'; labels = ef.getElementsByTagName('label'); for (var i=0; i<labels.length; ++i) { if ((labels[i].htmlFor === 'wpMinoredit') || (labels[i].htmlFor === 'wpWatchthis')) { labels[i].style.display = 'none'; } } } } });