-
-
Save rafaelcalleja/546b570d5a9d1f04284fad1c79bd46b7 to your computer and use it in GitHub Desktop.
Enable localhost images in GMail
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 () { | |
while (img = document.evaluate('//img[contains(@src, \'googleusercontent.com\')]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue) { | |
var src = img.attributes.src.value; | |
src = src.substr(src.indexOf('#') + 1); | |
img.attributes.src.value = src; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment