Difference between revisions of "MediaWiki:Common.js"

From Emerald Forest Hotel
Jump to navigation Jump to search
 
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
 
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
if(mw.config.values.wgUserId !=undefined){
+ '&action=raw&ctype=text/javascript');
const $elem = $(".editbutton");
$elem[0].style.setProperty('display', 'block', 'important');
 
const $elem1 = $("#p-tb");
$elem1[0].style.setProperty('display', 'block', 'important');
}
 
$.getScript("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript");

Latest revision as of 12:56, 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');

const $elem1 = $("#p-tb");
$elem1[0].style.setProperty('display', 'block', 'important');
}

 $.getScript("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript");