Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Forked from tlxue/gist:1151105
Created August 17, 2011 10:20
Show Gist options
  • Save disinfeqt/1151270 to your computer and use it in GitHub Desktop.
Save disinfeqt/1151270 to your computer and use it in GitHub Desktop.
Rabbit Shit
(function(){
var links = document.getElementsByTagName("a"),
i;
for (i=0;i<links.length;i++){
links[i].addEventListener('click',function(e){
e.preventDefault(); // this is better if you want to disable links
// return false
},false);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment