User:Marlamin/common.js

From wowdev
< User:Marlamin
Revision as of 16:59, 8 July 2018 by Marlamin (talk | contribs) (Created page with "var split = window.location.pathname.split("/"); if(split.length == 3 && split[1] == "DB"){ $('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.
var split = window.location.pathname.split("/");
if(split.length == 3 && split[1] == "DB"){
$('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bottom: 1px dashed black; padding: 3px; background: #eee; font-size: 0.8em; display: block;'><a style='text-decoration: none; display: block;' href='https://github.com/wowdev/WoWDBDefs/blob/master/definitions/" + split[2] + ".dbd'> A (possibly) more up-to-date version of definitions for this DBC can also be found in the WoWDBDefs repo on GitHub. <b>Click this box view it.</b></a></div>");
}