User:C.Ezra.M/common.js
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// WikEd settings var wikEdConfig = {} // wikEdConfig.mainEditCSS = { // 'body.wikEdFrameBodyPlain': 'font-family: "JetBrains Mono";' // } // Mark blocked users mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript'); // Add link to Special:PrefixIndex/<pagename> mw.loader.load('https://bulbapedia.bulbagarden.net/w/index.php?title=User:C.Ezra.M/addPrefixesLink.js&action=raw&ctype=text/javascript'); // Add protection level padlocks, except on file description/talk pages if (![6,7].includes(mw.config.get('wgNamespaceNumber'))) { mw.loader.load("https://bulbapedia.bulbagarden.net/w/index.php?title=User:C.Ezra.M/protectionPadlocks.js&action=raw&ctype=text/javascript"); } mw.loader.load('https://bulbapedia.bulbagarden.net/w/index.php?title=User:C.Ezra.M/staffhl.js&action=raw&ctype=text/javascript'); mw.loader.load("https://bulbapedia.bulbagarden.net/wiki/User:C.Ezra.M/ruby.js?action=raw&ctype=text/javascript") mw.loader.load('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css', 'text/css'); mw.loader.getScript('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js') .then( function () { hljs.configure({ cssSelector: '.mw-code', languageDetectRe: /\bmw-code\s+mw-([\w-]+)\b/i }) hljs.highlightAll(); }, function (e) { mw.log.error(e.message); } );