Skip to content

Instantly share code, notes, and snippets.

@bereal
Last active May 2, 2021 06:09
Show Gist options
  • Save bereal/c05b6dd5ef12a87203cb7747fc14f16b to your computer and use it in GitHub Desktop.
Save bereal/c05b6dd5ef12a87203cb7747fc14f16b to your computer and use it in GitHub Desktop.
Скрываем хрень про иностранного агента с сайта Медузы
// ==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