Skip to content

Instantly share code, notes, and snippets.

@wodim
Last active December 18, 2018 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wodim/3b886ba75272c97973bf3d426d68290c to your computer and use it in GitHub Desktop.
Save wodim/3b886ba75272c97973bf3d426d68290c to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Armory
// @match http://*.warmane.com/*
// @match https://*.warmane.com/*
// ==/UserScript==
(function() {
'use strict';
document.body.addEventListener('mousedown', function(el) {
var targ = el.target || el.srcElement;
while (targ && targ.tagName !== 'A') {
targ = targ.parentNode;
}
if (targ && targ.href && targ.href.match(/https?:\/\/wotlk\.cavernoftime\.com/)) {
targ.href = targ.href.replace(/https?:\/\/wotlk\.cavernoftime\.com\//, 'https://db.rising-gods.de/?');
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment