MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
if(mw.config.values.wgUserId !=undefined){ | if(mw.config.values.wgUserId !=undefined){ | ||
const $elem = $(".editbutton"); | const $elem = $(".editbutton"); | ||
$elem[0].style.setProperty('display', 'block', 'important'); | |||
const $elem1 = $("#p-tb"); | |||
$elem[0].style.setProperty('display', 'block', 'important'); | $elem[0].style.setProperty('display', 'block', 'important'); | ||
} | } | ||
$.getScript("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript"); | $.getScript("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript"); |
Revision as of 12:54, 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"); $elem[0].style.setProperty('display', 'block', 'important'); } $.getScript("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript");