Skip to content

Instantly share code, notes, and snippets.

@sshkpp
Last active December 19, 2022 08:09
Show Gist options
  • Save sshkpp/aa63ad4dc7abbae005eaeba88e831878 to your computer and use it in GitHub Desktop.
Save sshkpp/aa63ad4dc7abbae005eaeba88e831878 to your computer and use it in GitHub Desktop.
Remove adv for mail.yandex.ru
// ==UserScript==
// @name Remove Adv Yandex Mail
// @namespace https://github.com/sshkpp
// @version 0.1
// @description Remove adv for mail.yandex.ru
// @author Samokhin Ilya
// @match https://mail.yandex.ru/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// ==/UserScript==
(function() {
'use strict';
let style = document.createElement('style');
style.type = 'text/css';
let css = '.ns-view-react-left-column + div { display:none !important; } .ns-view-advanced-search-box + div { visibility: hidden !important; }';
style.appendChild(document.createTextNode(css));
document.querySelector('head').appendChild(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment