inoagent

Hide foreign agent banners on popular media websites

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name            inoagent
// @version         1.0
// @description     Hide foreign agent banners on popular media websites
// @description:ru  Скрыть баннер об иностранном агенте на сайтах популярных СМИ
// @author          Oleg Kalachev
// @license         MIT
// @match           https://www.rosbalt.ru/*
// @match           https://meduza.io/*
// @match           https://tvrain.ru/*
// @match           https://istories.media/*
// @match           https://pasmi.ru/*
// @match           https://zona.media/*
// @grant           GM_addStyle
// @run-at          document-start
// @namespace https://greasyfork.org/users/827970
// ==/UserScript==

// Registry: https://minjust.gov.ru/ru/documents/7755/

if (location.host == 'meduza.io') {
	GM_addStyle('#div-gpt-ad { display: none !important }');

} else if (location.host == 'tvrain.ru') {
	GM_addStyle('.menu3__foreign-agent-wrapper { display: none !important }');
	GM_addStyle('.document-head__title_foreign_agent { display: none !important }');

} else if (location.host == 'zona.media') {
	GM_addStyle('.mz-agent-banner { display: none !important }');

} else if (location.host == 'www.rosbalt.ru') {
	GM_addStyle('.rkngov { display: none !important }');

} else if (location.host == 'istories.media') {
	GM_addStyle('.ForeignAgentBanner { display: none !important }');

} else if (location.host == 'pasmi.ru') {
	GM_addStyle('.content .excerpt:first-of-type { display: none !important }');
}