Skip to content

Instantly share code, notes, and snippets.

@andreimaxim
Created June 4, 2010 09:47
Show Gist options
  • Save andreimaxim/425232 to your computer and use it in GitHub Desktop.
Save andreimaxim/425232 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
var _timer = setInterval(function() {
if (/loaded|complete/.test(document.readyState)) {
clearInterval(_timer);
var links = document.getElementsByTagName('a');
for(i = 0; i < links.length; i++)
links[i].removeAttribute("target");
}
}, 10);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment