Skip to content

Instantly share code, notes, and snippets.

  • Save esperecyan/4a0cde831fdffe48bfefe2f5a9a3d4a1 to your computer and use it in GitHub Desktop.
Save esperecyan/4a0cde831fdffe48bfefe2f5a9a3d4a1 to your computer and use it in GitHub Desktop.
uBlock Origin Myフィルター例    SPDX-License-Identifier: MIT    © 2020 100の人
! X/Twitterで2023-10-07頃から発生している、プロフィールページなどの短縮されていない投稿にも「さらに表示」が付加される不具合の回避
twitter.com##[data-testid="tweetText"]:not(:has-text(/([^\n]*\n){10,}|…$/)) + [data-testid="tweet-text-show-more-link"]
twitter.com##div:not(:has([data-testid="icon-verified"])) + div > [data-testid="tweetText"]:not(:has-text(/([^\n]*\n){10,}/)) + [data-testid="tweet-text-show-more-link"]
twitter.com##[data-testid="messageEntry"] [data-testid="tweet-text-show-more-link"]
! 「タイムラインにトピックも表示しましょう」「おすすめトピック」「おすすめ」(ユーザー)「Who to follow」「もっと見つける」の削除
twitter.com##[data-testid="cellInnerDiv"]:has(h2:has-text(/トピック|おすすめ|Who to follow|についてのツイートをさらに表示するには|もっと見つける/))
twitter.com##[data-testid="cellInnerDiv"]:has(h2:has-text(/トピック|おすすめ|Who to follow|についてのツイートをさらに表示するには/)) ~ [data-testid="cellInnerDiv"]:not(:has(article))
twitter.com##[aria-label="タイムライン: 会話"] [data-testid="cellInnerDiv"]:has(h2:has-text(もっと見つける)) ~ [data-testid="cellInnerDiv"]
! 2022-01下旬から発生している「センシティブな内容を含む可能性のあるメディアを表示する」が有効にならない不具合の回避
twitter.com## div:has(> div:first-child + div:last-child [d^="M3.693"]):style(min-height: unset !important)
twitter.com## div:has([data-testid="tweetPhoto"], a):not(:has([d^="M3.693"])):has(+ div:last-child [d^="M3.693"]):style(filter: none !important)
twitter.com## div:has([data-testid="tweetPhoto"], a):not(:has([d^="M3.693"])) + div:not(:has([data-testid="tweetPhoto"], a)):has([d^="M3.693"]):style(top: unset !important; left: unset !important; padding: unset !important)
twitter.com##:is([id^="verticalGridItem-"], [aria-expanded="true"]) div:has( a):not(:has([d^="M3.693"])) + div:not(:has( a)):has([d^="M3.693"]):style(gap: unset !important; background-color: rgba(0, 0, 0, 0.5) !important; border-radius: 1rem)
twitter.com## div:has([data-testid="tweetPhoto"], a):not(:has([d^="M3.693"])) + div:not(:has([data-testid="tweetPhoto"], a)):has([d^="M3.693"]) div:style(margin: unset !important)
twitter.com##:is([id^="verticalGridItem-"], [aria-expanded="true"]) div:has( a):not(:has([d^="M3.693"])) + div:not(:has( a)):has([d^="M3.693"]) div:style(font-size: 9px !important; font-weight: unset !important; line-height: unset; padding: 0 0.5em !important)
twitter.com## div:has([data-testid="tweetPhoto"], a):not(:has([d^="M3.693"])) + div:not(:has([data-testid="tweetPhoto"], a)):has([d^="M3.693"]) :is(svg:has([d^="M3.693"]), svg:has([d^="M3.693"]) + div + div, div:has(> svg [d^="M3.693"]) + div)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment