MediaWiki:Common.js: Difference between revisions

From Emerald Forest Hotel
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 6: Line 6:
}
}


// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'+'&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'+'&action=raw&ctype=text/javascript');

Revision as of 12:14, 18 July 2021

/* Any JavaScript here will be loaded for all users on every page load. */

if(mw.config.values.wgUserId !=undefined){
const $elem = $(".editbutton");
$elem[0].style.setProperty('display', 'block', 'important');
}

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