Created
June 2, 2012 15:43
-
-
Save Checksum/2858889 to your computer and use it in GitHub Desktop.
Bookmarklet to remove Facebook app signin links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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