Skip to content

Instantly share code, notes, and snippets.

@TheAndrey
Last active April 30, 2024 19:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheAndrey/11eacc8ea931f33e846ec8edeb4b247a to your computer and use it in GitHub Desktop.
Save TheAndrey/11eacc8ea931f33e846ec8edeb4b247a to your computer and use it in GitHub Desktop.
Блокировка самой назойливой рекламы в мире
/* ==UserStyle==
@name Yandex ADBlock
@namespace TheAndrey
@version 1.1.9
@license WTFPL
@preprocessor default
@updateURL https://gist.github.com/TheAndrey/11eacc8ea931f33e846ec8edeb4b247a/raw/yandex.user.css
==/UserStyle== */
@-moz-document domain("yandex.ru"), domain("ya.ru"), domain("dzen.ru") {
/* Твой софт - говно (c) */
.adv.adv_pos_popup.adv_type_direct,
.popup2.distr-popup.popup2_visible_yes,
.desk-notif-card.desk-notif-card_teaser_yes.desk-notif-card_expanded_yes.i-bem,
.popup2.dist-overlay__popup.modal_theme_normal.modal_autoclosable_yes.i-bem.popup2_visible_yes,
.dist-stripe.dist-stripe_js_inited,
.BrowserUpdater {
display: none !important;
}
/* Реклама в почте */
.mail-Layout-Main>.mail-Advanced-Search+div[class^='ns-view-'],
.ns-view-mail-pro-left-column-button,
.ns-view-mail-pro-left-column-button+div[class^='ns-view-'],
.mail-DirectLineContainer,
.mail-Layout-Aside-Inner .b-banner {
display: none !important;
}
/* Залогинься! */
.zalogin-smart.i-zalogin-cookie_js_inited {
display: none;
}
/* Музыка реклама */
.payment-popup-annoyer {
display: none !important;
}
/* Делает метку "реклама" в результатах поиска яркой */
.label_theme_direct.organic__label,
.organic__advLabel {
background-color: #e74c3c !important;
color: white;
border-radius: 3px;
padding-left: 5px;
}
.LabelDirect,
.DirectLabel,
.direct-label {
border: 2px solid #e74c3c !important;
filter: none !important;
}
/* Ненужная плашка в результатах поиска */
.Warning_type_roskomnadzor {
display: none !important;
}
/* Реклама Алисы */
.alice-fab__promo-shortcut,
.AliceFabPromo {
display: none !important;
}
/* Реклама */
.ads-block,
.adfox-creative,
.adFox,
.ads-block_side,
.AdvMedia,
.AdvRsyaCrossPage,
.adv-manager__wrapper,
.neo-advert,
.b-banner.b-banner_js_inited,
.direct-public,
.direct-public__right-direct-wrapper,
.DirectInline,
.direct.root__bottom-ad,
.MediaViewer div[id^='yandex_ad_stripe_'],
.RelatedImagesDirect,
.incut_type_direct,
.weather-maps__ad_visible,
.weather-maps__ad_visible_yes,
.RsyaGuarantee-Frame,
.RsyaGuarantee,
.serp-item.RsyaOrganic,
.sidebar-container .banner-view,
.photos-player-view__footer-advert._active,
.super-banner,
.grid-chunk__adv-column,
.grid-chunk__adv-wide,
.teaser_hd.teaser_hd_visible,
.sidebar-direct,
#adv-main,
#adv-middle,
#adv-bottom,
#ImagesViewer-SidebarAdv,
div[data-chunk='promo'],
div[id^='R-I-'],
div[data-zone-name='EntryPointPopup'],
div[data-zone-name='HeadBanner'],
div[data-zone-name='banner'],
.i-bem[class$='_inserted_yes'] .MastHead,
#search-result-aside .VanillaReact,
#rsya-guarantee {
/* visually hidden trick */
position: absolute !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
border: 0 !important;
clip: rect(0 0 0 0) !important;
}
}
@zenden2k
Copy link

Благодарю

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment