[go: up one dir, main page]

Jump to content

User:XComhghall/global.js

From Meta, a Wikimedia project coordination wiki

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
const defaultSummary = function(w) {if (w.sectionName === undefined) return ' '; if (w.sectionName === mw.config.get('wgTitle')) return '/* top */ '; else return '/* ' + w.sectionName + ' */ '};
// The above line does absolutely nothing. Is there some code / function that I can write here to declare defaultSummary?
mw.loader.load('https://cdn.jsdelivr.net/npm/wikiplus-core@latest/dist/Main.js');