Skip to content

Instantly share code, notes, and snippets.

@mcenirm
Created June 15, 2013 14:37
Show Gist options
  • Save mcenirm/5788352 to your computer and use it in GitHub Desktop.
Save mcenirm/5788352 to your computer and use it in GitHub Desktop.
Disable Google Plus links
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