Last active
February 4, 2017 21:03
-
-
Save carlin-q-scott/803815564ad3fe32db83f3fba6788900 to your computer and use it in GitHub Desktop.
WIP: This will remove Google Hangouts links from Google pages so that you can use your own dialer
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
function removeHangoutsLink(hangoutsLink) | |
{ | |
var hangoutsSpan = hangoutsLink.parentNode; | |
while (hangoutsLink.firstChild) hangoutsSpan.parentNode.insertBefore(hangoutsLink.firstChild, hangoutsSpan); | |
hangoutsSpan.parentNode.removeChild(hangoutsSpan); | |
} | |
var hangoutLinkOrLinks = $('a[href*="hangouts.google.com"]'); | |
if (Array.isArray(hangoutLinkOrLinks)) hangoutLinkOrLinks.each(removeHangoutsLink); | |
else removeHangoutsLink(hangoutLinkOrLinks); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment