Content deleted Content added
declare function only if necessary; fiddle with variable scope |
allow this to run in Draft namespace (118) as requested by User:LittlePuppers and use mw.config.get |
||
Line 4:
*/
const namespaceNumber = mw.config.
// Add a link just above the edit box, if you're in the main or Draft namespace.
if ( namespaceNumber === 0 || namespaceNumber === 118 )
{
mw.loader.load("//en.wiktionary.org/w/index.php?title=User:Erutuon/styles/wikitext-cleanup.css&action=raw&ctype=text/css", "text/css");
|