Skip to content

fuck dev doc banners by vaaski

Details

Authorvaaski

LicenseMIT

Categoryvuejs.org

Created

Updated

Code size2.4 kB

Code checksumc2dade1f

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes all the banners trying to sell you something on documentation sites I frequently visit, mostly in the vue ecosystem.

Notes

Userstyle doesn't have notes.

Source code

  /* ==UserStyle==
@name           fuck dev doc banners
@namespace      github.com/vaaski
@version        1.0.0
@description    Removes all the banners trying to sell you something on documentation sites I frequently visit, mostly in the vue ecosystem.
@author         vaaski
==/UserStyle== */
  @-moz-document url-prefix("https://router.vuejs.org"),
  url-prefix("https://pinia.vuejs.org") {
    #bb-banner,
    .banner_image_1,
    .banner_image_2,
    .banner,
    [role=banner] {
      display: none !important;
    }

    html.has-bb-banner.bb-type-top,
    html.vuemastery-menu-fixed {
      margin-top: 0px !important;
    }

    html.vuemastery-menu-fixed .VPNav,
    html.vuemastery-menu-fixed .VPSidebar {
      top: 0px;
    }

    html.has-bb-banner .VPNav,
    html.has-bb-banner .VPSidebar,
    html.has-bb-banner .VPDoc.has-sidebar.has-aside .aside-container {
      top: 0px !important;
    }

    html.has-banner {
      --vp-layout-top-height: 0px !important;
    }
  }

  @-moz-document url-prefix("https://vuejs.org") {
    .banner,
    [role=banner],
    #bb-banner {
      display: none !important;
    }

    html:not(.banner-dismissed) {
      --vt-banner-height: 0px !important;
    }

    html.has-bb-banner.bb-type-top {
      margin-top: 0;
    }

    html.has-bb-banner .VPNav,
    html.has-bb-banner .VPSidebar,
    html.has-bb-banner .VPContentDoc.has-sidebar.has-aside .aside-container {
      top: 0px;
    }

    @media (min-width: 960px) {
      .VPSidebar[data-v-06a625ab] {
        top: calc(var(--vt-nav-height) + var(--vt-banner-height, 0px));
      }
    }
  }

  @-moz-document url-prefix("https://developer.mozilla.org") {
    .top-banner {
      display: none;
    }
  }

  @-moz-document url-prefix("https://vueuse.org") {
    #bb-banner {
      display: none;
    }
  }

  @-moz-document url-prefix("https://nuxt.com") {
    [href="https://ui.nuxt.com/pro?utm_source=nuxt-website&utm_medium=banner"],
    .app-banner[rel="noopener noreferrer"] {
      display: none !important;
    }
  }
  @-moz-document url-prefix("https://capacitorjs.com"),
  url-prefix("https://stenciljs.com") {
    [role="banner"] {
      display: none !important;
    }
  }
  @-moz-document domain("nativescript.org") {
    #bb-banner,
    [id="top"] > a[target="_blank"] {
      display: none !important;
    }

    html.has-bb-banner.bb-type-top {
      margin-top: 0 !important;
    }
  }

Reviews

No reviews yet.