MediaWiki:Common.js

From bg3.wiki
Revision as of 03:41, 10 July 2023 by Taylan (talk | contribs)
Jump to navigation Jump 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.
/* Any JavaScript here will be loaded for all users on every page load. */

// For experiments, we can limit this to a single page, like so:
//if (mw.config.get("wgTitle") == "Web") {

if (mw.config.get("wgRevisionId") < 11000) {
	alert(mw.config.get("wgNamespaceNumber"));
	var notice = document.getElementById("siteNotice");
	notice.style.border = "2px solid var(--bdr-hl)";
	notice.style.padding = "5px";
	notice.style.fontSize = "1.2em";
	notice.innerHTML = "<b>Warning: This page has not been updated since Early Access, the contents may be outdated.</b>";
}

//}