User:Wottem/common.js

From Wazeopedia

< User:Wottem

Revision as of 10:25, 28 August 2018 by Wottem (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

// 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' ) ;

 }
) ();