Skip to content

Instantly share code, notes, and snippets.

@Checksum
Created June 2, 2012 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Checksum/2858889 to your computer and use it in GitHub Desktop.
Save Checksum/2858889 to your computer and use it in GitHub Desktop.
Bookmarklet to remove Facebook app signin links
(function() {
var links = document.querySelectorAll('.ogAggregationSubstorySlideHeadline > a');
for( var i=0, len=links.length; i < len; i += 1) {
var url = links[i].getAttribute('href');
url = decodeURIComponent(url.split("?")[1].split("&")[2].split("=")[1]);
links[i].setAttribute('href',url);
links[i].setAttribute('target','_blank');
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment