MediaWiki:Common.js

From Obsidian Scheduler
Revision as of 17:11, 25 March 2021 by Craig (talk | contribs) (Created page with "Any JavaScript here will be loaded for all users on every page load.: <!-- BoldChat Live Chat Button HTML v5.00 (Type=Web,ChatButton=My Chat Button - Medium,Website=- Non...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */
<!-- BoldChat Live Chat Button HTML v5.00 (Type=Web,ChatButton=My Chat Button - Medium,Website=- None -) -->
<div style="text-align: center; white-space: nowrap;">
<script type="text/javascript">
  var bccbId = Math.random(); document.write(unescape('%3Cdiv id=' + bccbId + '%3E%3C/div%3E'));
  window._bcvma = window._bcvma || [];
  _bcvma.push(["setAccountID", "420408690637749684"]);
  _bcvma.push(["addStatic", {type: "chat", bdid: "7132511324762972080", id: bccbId}]);
  var bcLoad = function(){
    if(window.bcLoaded) return; window.bcLoaded = true;
    var vms = document.createElement("script"); vms.type = "text/javascript"; vms.async = true;
    vms.src = "https://vmss.boldchat.com/aid/420408690637749684/bc.vms4/vms.js";
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(vms, s);
  };
  if(window.pageViewer && pageViewer.load) pageViewer.load();
  else if(document.readyState=="complete") bcLoad();
  else if(window.addEventListener) window.addEventListener('load', bcLoad, false);
  else window.attachEvent('onload', bcLoad);
</script>
</div>
<!-- /BoldChat Live Chat Button HTML v5.00 -->
<!-- BoldChat Visitor Monitor HTML v5.00 (Website=- None -,ChatButton=- None -,ChatInvitation=My Invite Ruleset) -->
<script type="text/javascript">
  window._bcvma = window._bcvma || [];
  _bcvma.push(["setAccountID", "420408690637749684"]);
  _bcvma.push(["setParameter", "InvitationID", "416622039416554093"]);
  _bcvma.push(["pageViewed"]);
  var bcLoad = function(){
    if(window.bcLoaded) return; window.bcLoaded = true;
    var vms = document.createElement("script"); vms.type = "text/javascript"; vms.async = true;
    vms.src = "https://vmss.boldchat.com/aid/420408690637749684/bc.vms4/vms.js";
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(vms, s);
  };
  if(window.pageViewer && pageViewer.load) pageViewer.load();
  else if(document.readyState=="complete") bcLoad();
  else if(window.addEventListener) window.addEventListener('load', bcLoad, false);
  else window.attachEvent('onload', bcLoad);
</script>
<noscript>
</noscript>
<!-- /BoldChat Visitor Monitor HTML v5.00 -->