Last active
May 2, 2021 06:09
-
-
Save bereal/c05b6dd5ef12a87203cb7747fc14f16b to your computer and use it in GitHub Desktop.
Скрываем хрень про иностранного агента с сайта Медузы
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name iNoAgent | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Remove foreign agent bs | |
// @author sdolotom | |
// @match https://meduza.io/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function remove() { | |
const elem = document.getElementById('div-gpt-ad'); | |
if (elem) elem.remove(); | |
} | |
window.addEventListener('load', remove); | |
remove(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment