inoagent

Hide foreign agent banners on popular media websites

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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 }');
}