Difference between revisions of "User:Wottem/common.js"

From Wazeopedia
(Replaced content with "// install Wikipedia:User:Cacycle/wikEd in-browser text editor (function () { mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action...")
Line 2: Line 2:
 
(function ()
 
(function ()
 
{
 
{
 +
var toAdd = ['p-cactions','column-one','column-content'];
 +
for(let i=0;i<toAdd.length;i++){
 +
if(!($('#' + toAdd[i]))){
 +
$('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' );
 
  }
 
  }
 
) ();
 
) ();

Revision as of 10:08, 28 August 2018

// install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor
(function ()
{
var toAdd = ['p-cactions','column-one','column-content'];
for(let i=0;i<toAdd.length;i++){
if(!($('#' + toAdd[i]))){
$('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' );
 }
) ();