• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Any way to remove Youtube top bar? Perhaps with a user CSS?

    Opera for Windows
    3
    6
    1900
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • med1an1ck
      med1an1ck last edited by

      Do you know of a way to remove the Youtube bar?

      And if not, perhaps you could help me with the method of blocking html code snippets from loading, since to have the bar gone one just needs preventing these two lines of html code from loading in Opera:

      <div id="yt-masthead-container" class="yt-grid-box yt-base-gutter">
      <div id="masthead-positioner-height-offset"/>
      

      Got any idea?

      Reply Quote 0
        1 Reply Last reply
      • sgunhouse
        sgunhouse Moderator Volunteer last edited by

        Version of Opera? Do you have a content blocker installed?

        The forum swallowed your code, let me see if I can figure out how to do a proper code block ...

        Reply Quote 0
          1 Reply Last reply
        • Deleted User
          Deleted User last edited by

          Use Stylish to write some UserCSS.

          Or Adblock to remove annyoing content by context menu.

          Reply Quote 0
            1 Reply Last reply
          • med1an1ck
            med1an1ck last edited by

            Sgunhouse, My Opera version is 12.16 and I have AdBlock Plus installed, though unfortunately I don't know how to employ it to remove the Youtube top bar.

            I've tried both Stylish and adblock and they both require an "Opera-browser" - probably the updated version, but I don't want to update since I couldn't figure out how to create custom context menus (important for me) in the v.24.x Opera and the new version also put me off as one cannot navigate through pages with keyboard as easily (shift + Up/Down/Left/R, custom shortcuts for new or private tabs and so on).

            Reply Quote 0
              1 Reply Last reply
            • Deleted User
              Deleted User last edited by

              Stylish and Adblock works fine on Opera 12.

              Add filter rule for won filter in Adblock:

              www.youtube.com##DIV[id="yt-masthead-container"][class="yt-grid-box yt-base-gutter"]

              And top bar is gone on YT.

              Reply Quote 0
                1 Reply Last reply
              • med1an1ck
                med1an1ck last edited by

                angiesdom, thank you very much for pointing out that the extensions worked Ok on Opera 12. I had the User Agent Changer installed for Google to have the latest layout (Google fetches the old layout for Opera 12) - and hence could not install any extension as the download page assumed I was browsing it through Firefox.

                I put these two lines into my already functioning AdBlock Plus and the Youtube search bar vanished:

                `www.youtube.com##DIV[id="yt-masthead-container"][class="yt-grid-box yt-base-gutter"]
                www.youtube.com##DIV[id="masthead-positioner-height-offset"]`
                

                I had to put the second filter as the first though removed the search bar itself left the empty space behind it in place and since it was space that I was initially seeking when trying to remove the search bar, I needed the second filter to do that job as well. Thanks very much for help as I wouldn't know how to write filter code for the AdBlock myself. Consider the topic solved.

                Reply Quote 0
                  1 Reply Last reply
                • First post
                  Last post

                Computer browsers

                • Opera for Windows
                • Opera for Mac
                • Opera for Linux
                • Opera beta version
                • Opera USB

                Mobile browsers

                • Opera for Android
                • Opera Mini
                • Opera Touch
                • Opera for basic phones

                • Add-ons
                • Opera account
                • Wallpapers
                • Opera Ads

                • Help & support
                • Opera blogs
                • Opera forums
                • Dev.Opera

                • Security
                • Privacy
                • Cookies Policy
                • EULA
                • Terms of Service

                • About Opera
                • Press info
                • Jobs
                • Investors
                • Become a partner
                • Contact us

                Follow Opera

                • Opera - Facebook
                • Opera - Twitter
                • Opera - YouTube
                • Opera - LinkedIn
                • Opera - Instagram

                © Opera Software 1995-