Skip to content

Instantly share code, notes, and snippets.

@thrashr888
Created October 12, 2012 19:15
Show Gist options
  • Select an option

  • Save thrashr888/3880933 to your computer and use it in GitHub Desktop.

Select an option

Save thrashr888/3880933 to your computer and use it in GitHub Desktop.
the most amazing javascript code i've ever written
<script>
var docwritebuffer = "";
document.wrong = document.write;
document.write = function(html){
docwritebuffer = html;
}
</script>
<script type="text/javascript" src="http://myforum.disqus.com/popular_threads_widget.js?num_items=5"></script>
<script>
document.write = document.wrong;
setTimeout(function(){
//console.log(docwritebuffer);
$('#popularthreads').append(docwritebuffer);
}, 3000);
</script>
@Technical-ashish-vishwakarma

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment