inoagent

Hide foreign agent banners on popular media websites

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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 }');
}