// ==UserScript==
// @name         Gmail Remover Assinatura Mailtrack
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://mail.google.com/mail/u/*
// @grant        none
// ==/UserScript==

(function() {
	'use strict';
	setInterval(function() {
		/* auto click 'remove' signature button */
		var removes = document.getElementsByClassName('mt-remove');
		for( var i = 0; i < removes.length; i++ ) {
			removes[i].click();
		}

		/* removes any modal of mailtrack */
		if(document.getElementsByClassName('mt-modal-iframe').length)
			document.getElementsByClassName('mt-modal-iframe')[0].remove(); 
		if(document.getElementsByClassName('modal-backdrop').length)
			document.getElementsByClassName('modal-backdrop')[0].remove(); 
	},1000);
})();

@@ -559,16 +559,36 @@
 rack */%0A
+%09%09var deletar = %5B%5D;%0A
 %09%09if(doc
@@ -634,36 +634,59 @@
 iframe').length)
-%0A%09%09%09
+ deletar = deletar.concat( 
 document.getElem
@@ -719,30 +719,19 @@
 iframe')
-%5B0%5D.remove(
+ 
 );
- 
 %0A%09%09if(do
@@ -785,20 +785,43 @@
 .length)
-%0A%09%09%09
+ deletar = deletar.concat( 
 document
@@ -865,10 +865,217 @@
 op')
-%5B0
+ );%0A%09%09if(document.querySelectorAll('%5Bid*=intercom%5D, %5Bid=fred%5D').length) deletar = deletar.concat( document.querySelectorAll('%5Bid*=intercom%5D, %5Bid=fred%5D') );%0A%0A%09%09for(var i = 0; deletar.length; i++) %7B%0A%09%09%09deletar%5Bi
 %5D.re
@@ -1081,17 +1081,23 @@
 emove();
- 
+%0A%09%09%7D%0A%09%09
 %0A%09%7D,1000

update for modals