Difference between revisions of "User:Tobias Alcaraz/common.js"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
(Replaced content with "→Since there's no personal JS in this wiki, this code is run through an browser extension.: →Syntax highlight script.: if (!document.body.classList.contains('acti...") Tag: Replaced |
m |
||
Line 2: | Line 2: | ||
/* Syntax highlight script. */ | /* Syntax highlight script. */ | ||
− | if (!document.body.classList.contains('action-edit') | + | if (!document.body.classList.contains('action-edit') return; |
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); | mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); |
Revision as of 17:03, 7 July 2023
/* Since there's no personal JS in this wiki, this code is run through an browser extension. */ /* Syntax highlight script. */ if (!document.body.classList.contains('action-edit') return; mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); syntaxHighlighterConfig = { timeout: 500, boldOrItalicColor: '#44466d', wikilinkColor: '#245477', externalLinkColor: '#244d491', headingColor: '#44466d', listOrIndentColor: '#4d1a19', signatureColor: '#66331e', tableColor: '#5e5129', templateColor: '#5e5129', parameterColor: '#66331e', hrColor: '#44466d', tagColor: '#662946', commentColor: '#4d1a19', entityColor: '#474d23', backgroundColor: '#212121', foregroundColor: '#eee' } }