7

用 uBlock Origin 的自訂條件把 YouTube 的 Shorts 都拔掉

 2 years ago
source link: https://blog.gslin.org/archives/2022/03/18/10606/%e7%94%a8-ublock-origin-%e7%9a%84%e8%87%aa%e8%a8%82%e6%a2%9d%e4%bb%b6%e6%8a%8a-youtube-%e7%9a%84-shorts-%e9%83%bd%e6%8b%94%e6%8e%89/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

用 uBlock Origin 的自訂條件把 YouTube 的 Shorts 都拔掉

先拔掉 YouTube 訂閱頁裡面的 shorts 連結:

www.youtube.com##:matches-path(/feed/subscriptions) ytd-grid-video-renderer:has(a[href^="/shorts"])

再來拔掉首頁左邊出現的 shorts 分類連結:

www.youtube.com##ytd-mini-guide-entry-renderer:has(a[title="Shorts"])

必須說 :has() 真的是很好用...

Related

把 YouTube 的 Dislike 數字弄回來

最近 YouTube 也在搞事,把 Dislike 的數字拔掉了,後來在 Greasy Fork 上面找了一下,看到有兩套方法可以把數字補回來。 第一套是「Return YouTube Dislike」這個方法,從程式碼裡面可以看到是透過 API 拉出來的: function setState() { cLog('Fetching votes...'); doXHR({ method: "GET", responseType: "json", url: "https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=" + getVideoId(), onload: function (xhr) { if (xhr != undefined) { const { dislikes, likes } = xhr.response; cLog(`Received count: ${dislikes}`); setDislikes(numberFormat(dislikes)); createRateBar(likes, dislikes); }…

November 28, 2021

In "Computer"

Google Chrome 會 bypass Adblock 的問題

新版的 Google Chrome 使得 YouTube 可以繞過 Adblock 類軟體的阻擋限制 (像是 uBlock Origin),導致這些使用者會需要「看完完整的廣告影片 (無法 skip)」才能看本篇:「Google Chrome reportedly bypassing Adblock, forces users to watch full-length video ads」。 目前確認這是在修正 CVE-2015-1297 時產生的 bug: Update: We have been contacted by Rob Wu, a developer on the Chromium project - the open-source foundation for the Chrome browser…

September 8, 2015

In "Browser"

uBlock 的改版:交接後再 fork 成 uBlock Origin (uBlock₀)

原先的 µBlock 改名成 uBlock₀,並且把 uBlock 的名字交出去給了 Colorado Springs 的 uBlock。 原因可以在「Please clarify uBlock₀ vs. uBlock」這邊看到,由於這不是 full time job (他也不想要成為 full time job),所以他決定 freeze 目前的功能,僅維持 bugfix (因為對他來說夠用了,他自己平常也在用)。 依照這個原因,我的感覺是 uBlock 會成圍下一個肥大的 ABP,就乖乖留守 uBlock Origin (uBlock₀) 吧。

April 19, 2015

In "Browser"

a611ee8db44c8d03a20edf0bf5a71d80?s=49&d=identicon&r=gAuthor Gea-Suan LinPosted on March 18, 2022Categories Computer, Murmuring, Network, Recreation, WWWTags block, origin, short, shorts, ublock, video, youtube

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK