function loadHTML(path, success, error) { var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) { if (xhr.status === 200) { if (success) success(xhr.responseText); } else { if (error) error(xhr); } } }; xhr.open("POST", 'https://tool.gollygoose.com/Tool/Score?counter=true&minvotes=2', true); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhr.send("referer=" + window.location.href); } loadHTML('https://tool.gollygoose.com/Tool/Score?counter=true&minvotes=2', function(content) { var target = document.getElementById("score"); target.outerHTML = content; }, function(xhr) { console.error(xhr); } ); document.write(""); document.write('
');