Created
September 27, 2021 09:40
-
-
Save mgussekloo/3e6a8b324b74652a7328dfec0dabccdf to your computer and use it in GitHub Desktop.
This file contains 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
<script> | |
document.addEventListener('click', function(e) { | |
// If the clicked element doesn't have the right selector, bail | |
if (!event.target.matches('a[href="#mm"]')) return; | |
e.preventDefault(); | |
var getparams = {}; | |
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { getparams[key] = value; }); | |
window.location.href = 'https://api.mediamasters.nl/external-game/session-result?sessionId=' + getparams.sessionId; | |
return; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment