// ==UserScript==
// @name           quitanuncios
// @namespace      http://remeseiro.com/greasemonkey/
// @include        http://gmail.google.com/*
// @include        http://mail.google.com/*
// @include        https://gmail.google.com/*
// @include        https://mail.google.com/*
// ==/UserScript==


(function() {

    var quitaAds =
    {
        checkPage: function()
        {
			var a = document.getElementById("ra");
			var b = document.getElementById("rb");
			var c = document.getElementById("rp");
			var d = document.getElementById("fbc");//ticker sponsored link
				
			if (!a) {
				return;
			}
			if (!b) {
				return;
			}
			if (!c) {
				return;
			}
			if (!d) {
				return;
			}

			a.setAttribute("style", a.getAttribute("style") + "; display:none");
			b.setAttribute("style", b.getAttribute("style") + "; display:none");
			c.setAttribute("style", c.getAttribute("style") + "; display:none");
			d.setAttribute("style", d.getAttribute("style") + "; display:none");
			
		}
	}

	quitaAds.checkPage();

})();