diff --git a/README.md b/README.md index 8433486..226fc81 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,21 @@ Serverless Redirect: `https://neuter.mchang.xyz/filter` ### SponsorBlock sub-list Less aggressive in elements to block -[add to uBo](https://subscribe.adblockplus.org/?location=https://neuter.mchang.xyz/filters/sponsorblock&title=yt-neuter%20sponsorblock) +[add to uBo](https://subscribe.adblockplus.org/?location=https://neuter.mchang.xyz/filter/sponsorblock&title=yt-neuter%20sponsorblock) 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](https://subscribe.adblockplus.org/?location=https://neuter.mchang.xyz/filter/noview&title=YouTube%20Neuter%20noview) + +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](https://neuter.mchang.xyz/script/yt-no-autoplay.user.js) - Change "Subscribe" background to blend in with the rest of the theme [Install](https://neuter.mchang.xyz/script/mute-subscribe.user.js) diff --git a/docs/README.md b/docs/README.md index 7c2a1ee..b99cec6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -33,6 +33,10 @@ Extremely aggressive misc filters Conservative subset of yt-neuter for SponsorBlock (PRs require additional scrutiny) [docs](./filters/sponsorblock.md) | [add to uBo](https://subscribe.adblockplus.org/?location=https://neuter.mchang.xyz/filter/sponsorblock&title=YouTube%20Neuter%20-%20SponsorBlock) +## noview +Hide forced low-view videos from browse feeds +[docs](./filters/noview.md) | [add to uBo](https://subscribe.adblockplus.org/?location=https://neuter.mchang.xyz/filter/noview&title=YouTube%20Neuter%20-%20noview) + ## requests niche transformative filters requested diff --git a/docs/filters/misc.md b/docs/filters/misc.md index 0f22dc0..1d8898e 100644 --- a/docs/filters/misc.md +++ b/docs/filters/misc.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fmisc.txt&title=yt-neuter%20misc) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/misc.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fmisc&title=yt-neuter%20misc) | [View List](https://neuter.mchang.xyz/filter/misc) ## network requests * remove offline service worker diff --git a/docs/filters/nolive.md b/docs/filters/nolive.md index 2552ad7..909cd2c 100644 --- a/docs/filters/nolive.md +++ b/docs/filters/nolive.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fnolive.txt&title=yt-neuter%20nolive) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/nolive.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fnolive&title=yt-neuter%20nolive) | [View List](https://neuter.mchang.xyz/filter/nolive) ## global elements ### sidebar navigation diff --git a/docs/filters/nomusic.md b/docs/filters/nomusic.md index 8b3840c..4e6c8f1 100644 --- a/docs/filters/nomusic.md +++ b/docs/filters/nomusic.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fnomusic.txt&title=yt-neuter%20nomusic) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/nomusic.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fnomusic&title=yt-neuter%20nomusic) | [View List](https://neuter.mchang.xyz/filter/nomusic) ## global elements ### sidebar navigation diff --git a/docs/filters/noshorts.md b/docs/filters/noshorts.md index 5ed16eb..75cee15 100644 --- a/docs/filters/noshorts.md +++ b/docs/filters/noshorts.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fnoshorts.txt&title=yt-neuter%20noshorts) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/noshorts.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fnoshorts&title=yt-neuter%20noshorts) | [View List](https://neuter.mchang.xyz/filter/noshorts) ## generics * shelves diff --git a/docs/filters/notrack.md b/docs/filters/notrack.md index 107882d..52757d1 100644 --- a/docs/filters/notrack.md +++ b/docs/filters/notrack.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fnotrack.txt&title=yt-neuter%20notrack) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/notrack.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fnotrack&title=yt-neuter%20notrack) | [View List](https://neuter.mchang.xyz/filter/notrack) ## network requests * quality of experience diff --git a/docs/filters/noview.md b/docs/filters/noview.md new file mode 100644 index 0000000..7a61cae --- /dev/null +++ b/docs/filters/noview.md @@ -0,0 +1,6 @@ +# Install + +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fnoview&title=yt-neuter%20noview) | [View List](https://neuter.mchang.xyz/filter/noview) + +## video browsing + * remove forced low view count videos [#62](https://github.com/mchangrh/yt-neuter/issues/62) \ No newline at end of file diff --git a/docs/filters/premium.md b/docs/filters/premium.md index 7ef38a9..b171832 100644 --- a/docs/filters/premium.md +++ b/docs/filters/premium.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fpremium.txt&title=yt-neuter%20premium) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/premium.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fpremium&title=yt-neuter%20premium) | [View List](https://neuter.mchang.xyz/filter/premium) ## video browsing * 3-dot dropdown ([#38](https://github.com/mchangrh/yt-neuter/issues/38)) diff --git a/docs/filters/requests.md b/docs/filters/requests.md index 436d796..ea671c8 100644 --- a/docs/filters/requests.md +++ b/docs/filters/requests.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Frequests.txt&title=yt-neuter%20requests) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/requests.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Frequests&title=yt-neuter%20requests) | [View List](https://neuter.mchang.xyz/filter/requests) ## /video ### in-player diff --git a/docs/filters/sponsorblock.md b/docs/filters/sponsorblock.md index a5dff4f..fcaf4c0 100644 --- a/docs/filters/sponsorblock.md +++ b/docs/filters/sponsorblock.md @@ -1,7 +1,7 @@ ### Subset of yt-neuter for sponsorblock # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fsponsorblock.txt&title=yt-neuter%20sponsorblock) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/sponsorblock.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fsponsorblock&title=yt-neuter%20sponsorblock) | [View List](https://neuter.mchang.xyz/filter/sponsorblock) ## global elements ### popups diff --git a/docs/filters/ytkids.md b/docs/filters/ytkids.md index 21cbbc5..1f8c4ba 100644 --- a/docs/filters/ytkids.md +++ b/docs/filters/ytkids.md @@ -1,7 +1,7 @@ ### yt-neuter for yt kids # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Ffilters%2Fytkids.txt&title=yt-neuter%20ytkids) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/filters/ytkids.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Ffilter%2Fytkids&title=yt-neuter%20ytkids) | [View List](https://neuter.mchang.xyz/filter/ytkids) ## /video ### metadata diff --git a/docs/gendocs.js b/docs/gendocs.js index 88ee633..ca5348a 100644 --- a/docs/gendocs.js +++ b/docs/gendocs.js @@ -3,10 +3,11 @@ const { readFileSync, writeFileSync } = require('fs') const getName = (filter) => filter == 'yt-neuter' ? filter - : `yt-neuter ${filter.replace('filters/', '')}` + : `yt-neuter ${filter.replace('filter/', '')}` function generateInstallLink(filter) { - const listURL = `https://raw.githubusercontent.com/mchangrh/yt-neuter/main/${filter}.txt` + filter = filter.replace('filters/', 'filter/') + const listURL = `https://neuter.mchang.xyz/${filter}` const installURL = `https://subscribe.adblockplus.org/?location=${encodeURIComponent(listURL)}&title=${encodeURIComponent(getName(filter))}` return `# Install\n\n[Subscribe](${installURL}) | [View List](${listURL})\n` } @@ -38,10 +39,11 @@ const filters = [ "filters/nomusic", "filters/noshorts", "filters/notrack", + "filters/noview", "filters/premium", "filters/requests", "filters/sponsorblock", - "filters/ytkids", + "filters/ytkids" ] for (const filter of filters) { diff --git a/docs/yt-neuter.md b/docs/yt-neuter.md index d290cab..616a9c4 100644 --- a/docs/yt-neuter.md +++ b/docs/yt-neuter.md @@ -1,6 +1,6 @@ # Install -[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fraw.githubusercontent.com%2Fmchangrh%2Fyt-neuter%2Fmain%2Fyt-neuter.txt&title=yt-neuter) | [View List](https://raw.githubusercontent.com/mchangrh/yt-neuter/main/yt-neuter.txt) +[Subscribe](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fneuter.mchang.xyz%2Fyt-neuter&title=yt-neuter) | [View List](https://neuter.mchang.xyz/yt-neuter) ## generics * shelves diff --git a/filters/noview.txt b/filters/noview.txt new file mode 100644 index 0000000..5fe4d07 --- /dev/null +++ b/filters/noview.txt @@ -0,0 +1,13 @@ +[uBlock Origin] +! Title: YouTube Neuter - noview +! Last modified: 2024/02/04 +! Expires: 10 days +! Homepage: https://github.com/mchangrh/yt-neuter +! Licence: Unlicense +! + +! install link + +!!!! video browsing +! remove forced low view count videos #62 +youtube.com##ytd-compact-video-renderer:has(.secondary-metadata:has(>ytd-video-meta-block.byline-separated):has(.badge:has(>:has-text(New)))) \ No newline at end of file