User:Funest/monobook.js

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
< User:Funest
Revision as of 18:09, 17 July 2014 by Funest (talk | contribs) (Created page with "var logo = document.querySelectorAll('a[title="Visit the main page"]'); var number = Math.floor((Math.random() * 3) + 1); if (number == 1) { logo.style.background-image = "...")
(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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
var logo = document.querySelectorAll('a[title="Visit the main page"]');
var number = Math.floor((Math.random() * 3) + 1);

if (number == 1) {
  logo.style.background-image = "https://lh4.googleusercontent.com/-ziwpYa3MhLU/U8gKZ1CHPaI/AAAAAAAAARg/eje3jKlJqZg/w161-h152-no/Wiki+Logo+KHHD25+%2528ver4%2529.png";
} else if (number == 2) {
  logo.style.background-image = "https://lh4.googleusercontent.com/-snvUTQQeGAs/U8gEuySFFwI/AAAAAAAAAQo/v1FW5QLSnlM/w161-h152-no/Wiki+Logo+KHHD25+%2528ver2%2529.png";
} else if (number == 3) {
  logo.style.background-image = "https://lh4.googleusercontent.com/-TYRJvBBdLlo/U8gItOAyNjI/AAAAAAAAARA/y2FlZ1SDf2I/w161-h152-no/Wiki+Logo+KHHD25+%2528ver3%2529.png"
}