Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save schlos/16ebdef4ab499cb9ece66c43d8009ae8 to your computer and use it in GitHub Desktop.
Save schlos/16ebdef4ab499cb9ece66c43d8009ae8 to your computer and use it in GitHub Desktop.
gmail-enhancer
// ==UserScript==
// @name gmail-enhancer
// @namespace gmail-enhancer
// @description gmail-enhancer UX experience
// @include https://mail.google.com/mail/*
// @version 1.2
// @grant none
// ==/UserScript==
(function() {
var removeHangoutsConversation = function() {
var lines = document.querySelectorAll(".zA");
var tbody = document.querySelectorAll(".F tbody");
for (var i = 0, l = lines.length; i < l ; i++) {
if (lines[i].childNodes[6].children[0] != undefined) {
if (lines[i].childNodes[6].children[0].className = "xM aVb") {
console.info("tr hangouts "+i+" was removed.");
lines[i].style.visibility = "hidden";
lines[i].style.height = "0px";
while (lines[i].hasChildNodes()) {
lines[i].removeChild(lines[i].lastChild);
}
}
}
}
};
var time1 = setTimeout(removeHangoutsConversation, 14000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment