Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Last active December 18, 2015 04:08
Show Gist options
  • Select an option

  • Save josephwegner/5722795 to your computer and use it in GitHub Desktop.

Select an option

Save josephwegner/5722795 to your computer and use it in GitHub Desktop.
Rick Roll if there are too many entities
var rickrollDebugger = setInterval(function() {
if($(".entity").length > 50) {
window.open("http://www.youtube.com/watch?v=dQw4w9WgXcQ");
} else {
console.log($(".entity").length);
}
}, 20000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment