(Página creada con «// instala Wikipedia: Usuario: Cacycle / wikEd editor de texto en el navegador (función () { var toAdd = ['left-navigation', 'p-cactions', 'p-namespaces']; for (var…») |
Sin resumen de edición |
||
Línea 1: | Línea 1: | ||
// | // install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor | ||
( | (function (){ | ||
var toAdd = ['left-navigation', 'p-cactions', 'p-namespaces']; | var toAdd = ['left-navigation','p-cactions','p-namespaces']; | ||
for (var i = 0; i <toAdd.length; i ++) { | for(var i=0 ; i < toAdd.length ; i++ ){ | ||
if (! $ ('#' + toAdd [i]). length) { | if( !$('#' + toAdd[i]).length ){ | ||
$ (' | $('body').append('<div style="display:none" id="' + toAdd[i] + '"></div>') ; | ||
} | } | ||
} | } | ||
mw.loader.load ('https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'); | mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript' ) ; | ||
} | } | ||
) (); | ) (); |
Revisión actual - 18:29 7 jun 2020
// install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor
(function (){
var toAdd = ['left-navigation','p-cactions','p-namespaces'];
for(var i=0 ; i < toAdd.length ; i++ ){
if( !$('#' + toAdd[i]).length ){
$('body').append('<div style="display:none" id="' + toAdd[i] + '"></div>') ;
}
}
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript' ) ;
}
) ();