Giter Site home page Giter Site logo

mchangrh / yt-neuter Goto Github PK

View Code? Open in Web Editor NEW
174.0 10.0 12.0 402 KB

uBlock filter(s) list for blocking unwanted YouTube elements

Home Page: https://neuter.mchang.xyz

License: The Unlicense

JavaScript 27.82% Adblock Filter List 72.18%
adblock youtube no-shorts filter ublock-origin-filters no-live no-music

yt-neuter's Introduction

Aggressive YouTube uBlock filter list

Originally on a gist but ported over to better track new elements to block

if you like this, you'll probably also like blocktube (no affiliation)


Install

add to uBo

Filter URLs
GitHub: https://raw.githubusercontent.com/mchangrh/yt-neuter/main/yt-neuter.txt
Serverless Redirect: https://neuter.mchang.xyz/filter

SponsorBlock sub-list

Less aggressive in elements to block

add to uBo

Filter URLs
GitHub: https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/sponsorblock.txt
Serverless Redirect: https://neuter.mchang.xyz/filter/sponsorblock

noview

Hide force-pushed low-view videos

add to uBo

Filter URLs
GitHub: https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/noview.txt
Serverless Redirect: https://neuter.mchang.xyz/filter/noview

Userscripts

  • Disable recommended and playlist AutoPlay Install
  • Change "Subscribe" background to blend in with the rest of the theme Install
  • Make YT Quality icons red again Install
  • Remove everything from description links but hostname Install
  • Remove Emojis in Titles Install
  • Remove channel trailers Install
  • Remove Experiment Flags Install
  • Persist YT Controls Install
  • Replaces YouTube rounded views and relative date with absolute values Install
  • Force YouTube grid to fit more elements per row Install

More scripts at mchangrh/uscripts

Filters

More specific or generic filters docs

Scriptlets

Addon scriptlets for uBlock Origin to block/replace elements Instructions
https://raw.githubusercontent.com/mchangrh/yt-neuter/main/scriptlets.js

yt-neuter's People

Contributors

ajayyy avatar github-actions[bot] avatar mchangrh avatar metametapod avatar mini-bomba avatar sebm253 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yt-neuter's Issues

restructure and rearrange structure for custom filter builder

  • consistently define structure for site elements
  • provide visual guide and structure for site blocks
  • consistent structure and template across filter lists
  • neuter aliases for unnamed, consistently defined site elements
  • consistent naming for url endpoints

Lottie round 2 [wip]

#18

  • Lottie is now tied into the like icon even rendering, destroying or freezing removes the icon
  • the window.lottie object cannot be set.js'd
  • the animation defn urls cannot be removed
  • paths are re-added

Add More Share Button

So, currently there is "Share" button filter on normal video. But there is also "Share" button on shorts.
image

This just simply ###share-button

Note: Might block others cause its a very generic name, and you know that youtube for no reason use duplicate id. But tried looking the id in homepage, and normal video. All #share-button is grayed out/hidden)


Also, there is "Share" if you click the ... on youtube homepage
image

Filters that simply works:tm:: ##tp-yt-paper-item:has-text(Share)

Note: Again, Im not sure if its block other element. I'm not the "master" at this kind of things (css selector, uBo filter)

[tracking] surveys

Remove all surveys found in base CSS file, some might be generic some might not be

Big Video Info

image
I dont know what to call it, but basically its the big video info at the bottom of the description

Branded shelf renderer

remove more branded shelves 1b0aac4

featured

<ytd-rich-section-renderer class="style-scope ytd-rich-grid-renderer"><!--css-build:shady--><!--css-build:shady--><div id="content" class="style-scope ytd-rich-section-renderer"><ytd-brand-video-shelf-renderer class="style-scope ytd-rich-section-renderer" elements-per-row="4" rounded-container="" modern="" is-dark-theme=""><!--css-build:shady--><!--css-build:shady--><div id="dismissible" class="style-scope ytd-brand-video-shelf-renderer" style="background-color:rgba(0,0,0,1.000);">
  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">
    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">
      <div id="metadata-container" class="style-scope ytd-brand-video-shelf-renderer">
        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">
          <yt-img-shadow id="logo-image" height="20" class="style-scope ytd-brand-video-shelf-renderer no-transition" style="background-color: transparent;" loaded=""><!--css-build:shady--><!--css-build:shady--><img id="img" draggable="false" class="style-scope yt-img-shadow" alt="" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=" height="20"></yt-img-shadow>
          <div id="badge-container" class="style-scope ytd-brand-video-shelf-renderer" style="color:#ffffff;">
            <yt-formatted-string id="badge" class="style-scope ytd-brand-video-shelf-renderer">Featured</yt-formatted-string>

Filter Update: Block youtube "enhanced bitrate Premium" popup spam

a while ago I started to get harassed by these every single time I seek or paused any video
bqcabVq

you can see how often i get spammed by this video demo.

now i think I've got the rule setup right:

youtube.com##ytd-popup-container > tp-yt-paper-dialog:has(ytd-offline-promo-renderer)
youtube.com##.opened

the .opened class is to stop the black flicker every time ublock or any adblocker blocks the main element. its very noticeable.

I'm mainly using your sponsor block as i find the main one too aggressive for my needs.

yoodle (YT animated logo)

turns out it wasn't blocked in lottie #18
webp image used for today's "Growth" yoodle
https://www.gstatic.com/youtube/img/promos/growth/2b2f29d593640cd29b48f4f2bc680b47b86b4895ade8285f6f39bde50a427354_122x56.webp

chrome_QLxQRW1yFQ.mp4

[Bug] Blocked "Save" Button on Youtube Comment

Bug

The bug is basically hide the "greyed out" Submit button on comment. And completely removed the Save button on comment editing.

With YouTube Neuter filter turned on:

Comment w/o content
image
Comment w/ content (expected behaviour)
image
Edit the comment w/ AND w/o content changed (the "Save" button just disappeared)
image

With Youtube Neuter filter turned off:

Comment w/o content ("Submit" button should come up, but its grayed out)
image
Comment w/content (the same)
image
Edit the comment w/o content changed ("Save" greyed out)
image
Edit the comment w/ content changed (There is "Save" button)
image

`Community` Tab

For some reasaon i wanat to use Community tab , and i just can't use it until i off ublock with script
is there anyway user can get costomized experience
or just performace tweak , not the usability or looks tweak !

force-pushed low view videos

just some observations to document the filter

  • all have byline-separated (also shared with sponsored video post)
  • all have New tag

It is only in the combination of the two that there exists this forced-view element, filtering by views seems to be an alternative (<100)

[Bug] Featured Playlist blocked Chapters, Large Channel Info Cards

The current filter is ##ytd-structured-description-content-renderer:has(ytd-structured-description-playlist-lockup-renderer). And if we see, it will block chapters, and also the large channel info cards.
image

Additional info

image
Apparently, "featured playlist" filter also capture when there is featured music, what?

The filter should be like the Large Channel Info Cards (#35), and also Featured Music
New filter: ##ytd-video-description-course-section-renderer (shorter 👍)
And now, it will only block the featured playlist.
image

[tracking] generics for filters

with success from generic blocks in noshorts (b53142a)

see if generics will work on other filters, and where they might break since most of the syntax is identical

[Bug] Hiding save button

##yt-button-view-model:has(>button-view-model> button[aria-label=Save])

should be replaced with

##yt-button-view-model:has(>button-view-model> [aria-label='Save to playlist'])

[reflow] more elements per shelf

On channel pages, elements are left-aligned and don't reflow accordingly

  • hook into right arrow click to populate new elements
  • reflow elements according to width

experiment flags

in response to #33, messing with experiment flags is very very useful and works very very well. This issue is to track a possible scriptlet/ userscript to take over a lot of the more janky functionality with experiment flag toggling.

Question

What does removing installable progressive web app functionality do?

[Question] What is annotation?

What is annotation filter? Its seems its just block the endcards.
image
Why annotation is not in the "endscreen" filter? It literally just block the endscreen (maybe)
Also, in the "endscreen" filter, the endscreen.js is blocked. But its still showing up the endscreen? Idk why its blocked in the "endscreen" filter
image

channel sort-by "for you"

I currently do not have this experiment so I cannot work on a fix. A static filter will not works since it apparently defaults to "for you"

YT Animated Like Icon

currently the best way to block it is to block the like_icon schema

||www.gstatic.com/youtube/img/lottie/animated_like_icon/*.json^,redirect=noop.js

this blocks both the dark and light versions of the animations so they can't be loaded by the lottie script.

path: "https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_v2_light.json",
pathDarkTheme: "https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_v2_dark.json",

Unintended Consequences

the lotte script (likely their animation player) can also be blocked at which also disable animations for the home icon and nothing else

||www.gstatic.com/external_hosted/lottie/lottie_light.js$domain=youtube.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.