Created
June 15, 2013 14:37
-
-
Save mcenirm/5788352 to your computer and use it in GitHub Desktop.
Disable Google Plus links
This file contains hidden or 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
var pluslinks = document.querySelectorAll('a[href^="https://plus.google.com/"]'); | |
for (var i = 0; i < pluslinks.length; i++) { | |
var a = pluslinks[i]; | |
a.oldonclick = a.onclick; | |
a.onclick = function() { return false; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment