MediaWiki:Common.js

From EvoEcu
Revision as of 06:22, 18 January 2012 by EdwardMarshall (talk | contribs) (Add SOPA blackout code.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
var rightNow = new Date;
var intlHours = rightNow.getUTCHours();
if( 0 == rightNow.getUTCMonth() &&
    2012 == rightNow.getUTCFullYear() &&
    ((18 == rightNow.getUTCDate() && 13 <= intlHours) || (19 == rightNow.getUTCDate() && 0 >= intlHours)))
  window.location = "http://sopastrike.com/strike";