MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' | importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' | ||
+ '&action=raw&ctype=text/javascript'); | + '&action=raw&ctype=text/javascript'); | ||
if(mw.config.values.wgUserId !=undefined){ | |||
$(".editbutton").show(); | |||
} |
Revision as of 12:24, 23 October 2020
/* 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' + '&action=raw&ctype=text/javascript'); if(mw.config.values.wgUserId !=undefined){ $(".editbutton").show(); }