Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if(window.location.href.indexOf("mail.google.com") != -1) {
window.onload = function () {
var jq = document.createElement('script');
jq.src = "https://s3.amazonaws.com/bucket/gmail.js";
document.getElementsByTagName('body')[0].appendChild(jq);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment