Skip to content

Commit

Permalink
update paid/member comment filters
Browse files Browse the repository at this point in the history
- add sneaky generate_204 on <img>
- add hyperaggressive list
  • Loading branch information
mchangrh committed Oct 1, 2024
1 parent 8b6912d commit af6b225
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 13 deletions.
16 changes: 16 additions & 0 deletions docs/filters/hyper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## This is a hyper-aggressive block list, use very sparingly. This is more aggressive than the misc list
## This list is not for ANYONE. It will break a lot of things, sometimes intentionally.
## network requests
* images
* remove banner, channel emojis, uploader profile in comments (https://github.com/iv-org/invidious/issues/3796)
* remove user profile images
* lottie
* remove lottie renderer
* remove lottie animations
## /video
### comments
* remove comment author images
* paid comments
* remove all paid comments
* channel member comments
* remove all member comments
2 changes: 2 additions & 0 deletions docs/filters/misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
* settings
* make quality selector superscript red again
### comments
* channel member comments
* channel member emoji
* remove emoji
* comment creation
* remove emoji shortcuts for comments
Expand Down
1 change: 1 addition & 0 deletions docs/gendocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function syncReadFile(filter) {

const filters = [
"yt-neuter",
"filters/hyper",
"filters/misc",
"filters/nolive",
"filters/nomusic",
Expand Down
6 changes: 4 additions & 2 deletions docs/yt-neuter.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@
* featured places
* large channel infocard ([#35](https://github.com/mchangrh/yt-neuter/issues/35))
### comments
* channel member comment badge
* translate button
* paid comments
* paid (thanks) comment badge
* paid (thanks) comment highlight
* translate button
* channel member comments
* channel member comment badge
### recommendations sidebar
* watch on youtube
* nudges (recommendation/ turn on watch history)
Expand Down
33 changes: 33 additions & 0 deletions filters/hyper.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[uBlock Origin]
! Title: YouTube Neuter - hyper aggressive
! Last modified: 2024/10/01
! Expires: 10 days
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
!

!!!! This is a hyper-aggressive block list, use very sparingly. This is more aggressive than the misc list
!!!! This list is not for ANYONE. It will break a lot of things, sometimes intentionally.

!!!! network requests
!! images
! remove banner, channel emojis, uploader profile in comments (https://github.com/iv-org/invidious/issues/3796)
||yt3.googleusercontent.com$image,domain=youtube.com
! remove user profile images
||yt3.ggpht.com$image,domain=youtube.com
!! lottie
! remove lottie renderer
||www.gstatic.com/external_hosted/lottie/lottie_light.js$script,domain=youtube.com
! remove lottie animations
||www.gstatic.com/youtube/img/lottie/*$domain=youtube.com

!!!! /video
!!! comments
! remove comment author images
www.youtube.com###author-thumbnail
!! paid comments
! remove all paid comments
www.youtube.com##ytd-comment-thread-renderer:has(#paid-comment-chip[role=button])
!! channel member comments
! remove all member comments
www.youtube.com##ytd-comment-thread-renderer:has(>ytd-comment-view-model[has-sponsor-badge])
6 changes: 4 additions & 2 deletions filters/misc.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[uBlock Origin]
! Title: YouTube Neuter - misc
! Last modified: 2024/09/08
! Last modified: 2024/10/01
! Expires: 10 days
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
Expand Down Expand Up @@ -70,6 +70,9 @@ www.youtube.com##.ytp-videowall-still-info-content:style(opacity: 1 !important)
! make quality selector superscript red again
www.youtube.com##.ytp-menuitem sup.ytp-swatch-color-white:style(color: var(--yt-spec-static-brand-red, #f00) !important;)
!!! comments
!! channel member comments
! channel member emoji
www.youtube.com##.yt-core-attributed-string--inline-block-mod>img[src^="https://yt3.googleusercontent.com"]
! remove emoji
www.youtube.com##img.emoji
!! comment creation
Expand All @@ -93,7 +96,6 @@ www.youtube.com##yt-animated-action
! makes subscribe button blend in with other buttons (scriptlet)
www.youtube.com##+js(repc, .ytd-subscribe-button-renderer>button, yt-spec-button-shape-next--filled, yt-spec-button-shape-next--tonal)


!!! description box
!! creator description
! remove mention highlights
Expand Down
3 changes: 2 additions & 1 deletion filters/notrack.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[uBlock Origin]
! Title: YouTube Neuter - notrack
! Last modified: 2024/08/09
! Last modified: 2024/10/01
! Expires: 10 days
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
Expand All @@ -24,6 +24,7 @@
||www.youtube.com/youtubei/v1/log_event?$empty
! ? generic stats ping
||www.youtube.com/generate_204
||youtube.com/generate_204$image
||www.youtube.com/error_204
||m.youtube.com/generate_204
||m.youtube.com/error_204
Expand Down
18 changes: 10 additions & 8 deletions yt-neuter.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[uBlock Origin]
! Title: YouTube Neuter
! Last modified: 2024/09/08
! Last modified: 2024/10/01
! Expires: 1 day
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
Expand Down Expand Up @@ -301,14 +301,16 @@ www.youtube.com##ytd-video-description-infocards-section-renderer>a#header[href^
www.youtube.com##ytd-video-description-infocards-section-renderer>#action-buttons

!!! comments
! channel member comment badge
youtube.com##span#sponsor-comment-badge
! paid (thanks) comment badge
youtube.com###paid-comment-chip
! paid (thanks) comment highlight
www.youtube.com##ytd-comment-renderer#comment:style(--ytd-comment-paid-background-color: transparent !important;)
! translate button
youtube.com##.translate-button[state="untoggled"]
!! paid comments
! paid (thanks) comment badge
youtube.com###paid-comment-chip[role=button]
! paid (thanks) comment highlight
www.youtube.com##ytd-comment-view-model>#paid-comment-background
!! channel member comments
! channel member comment badge
youtube.com##span#sponsor-comment-badge

!!! recommendations sidebar
! watch on youtube
Expand All @@ -317,7 +319,7 @@ www.youtube.com##ytd-tvfilm-offer-module-renderer
www.youtube.com##ytd-feed-nudge-renderer
!! video-specific sidebar
! fundraiser
www.youtube.com###donation-shelf
www.youtube.com###donation-shelf
m.youtube.com##ytm-donation-shelf-renderer
! other sponsored videos (#1)
www.youtube.com##ytd-engagement-panel-section-list-renderer[target-id="ytbc-related-shelf"]
Expand Down

0 comments on commit af6b225

Please sign in to comment.