Last active
December 18, 2018 17:55
-
-
Save wodim/3b886ba75272c97973bf3d426d68290c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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