Skip to content

Instantly share code, notes, and snippets.

@KartikTalwar
Created December 23, 2013 19:20
Show Gist options
  • Save KartikTalwar/8102990 to your computer and use it in GitHub Desktop.
Save KartikTalwar/8102990 to your computer and use it in GitHub Desktop.
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