Mail Ad Remover Beta

Removes annoying Mail.ru animated and context adverts

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           Mail Ad Remover Beta
// @description    Removes annoying Mail.ru animated and context adverts
// @author         Galchonok
// @include        http://e.mail.ru/*
// @include        https://e.mail.ru/*
// @version        1.3
// @namespace https://greasyfork.org/users/3077
// ==/UserScript==

//Parent Element To animated and context adverts
grandparent = document.getElementById('ScrollBodyInner'); 
var removeMailAdverts = function(){
//Mail Adverts
document.getElementById('slot-container_2').style.visibility = 'hidden'; 
document.getElementById('slot-container_2').style.display = 'none';
document.getElementById('rb-context-left-slots').style.visibility = 'hidden';
document.getElementById('rb-context-left-slots').style.display = 'none';
document.getElementById('getmov230935510').style.visibility = 'hidden';
document.getElementById('getmov230935510').style.display = 'none';
document.getElementById('b-slot_left_direct').style.visibility = 'hidden';
document.getElementById('b-slot_left_direct').style.display = 'none';
}; 
//Below function happens whenever the contents of 
//grandparent change
grandparent.addEventListener("DOMSubtreeModified", removeMailAdverts, true);
//fires off the function to start with
removeMailAdverts();