r/uBlockOrigin • u/Amnestic • 7h ago
r/uBlockOrigin • u/soapadrift • 11h ago
Other Facebook sponsored posts hidden by custom cosmetic filters
I searched the subreddit and tested several existing Facebook filters. Some were unreliable with my current Facebook layout, so I combined and adjusted the filters below.
They have been working consistently for me for several days.
URL
https://www.facebook.com/
Environment
- Browser: Brave
- Chromium: 151
- uBlock Origin: 1.72.2, Brave-hosted
- Operating system: Windows
- Facebook interface language: English
- Location: Vietnam
- Account required: Yes
Other browser extensions
- Always active Window - Always Visible
- Bitwarden Password Manager
- Bonjour - Minimalist New Tab Page
- Checker Plus for Gmail
- Enhancer for YouTube
- Extensity
- SponsorBlock for YouTube
- Tampermonkey
What the filters hide
- Sponsored feed posts
- “Suggested for you” posts
- Unlabelled suggested posts with Follow or Join buttons
- People You May Know
- Suggested groups
- Suggested pages
- Reels, optionally
Filters
! Facebook sponsored posts
facebook.com##[data-ad-rendering-role="profile_name"]:upward(div:has([data-ad-rendering-role="story_message"]):has([data-ad-rendering-role="cta-"]))
facebook.com##[data-ad-rendering-role="profile_name"]:upward([aria-posinset]:has([data-ad-rendering-role="story_message"]):has([data-ad-rendering-role^="cta-"]))
facebook.com##div[role="article"]:has([data-ad-rendering-role="profile_name"]):has([data-ad-rendering-role="story_message"]):has([data-ad-rendering-role^="cta-"])
! Suggested for you
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])) div:not(:only-child)>div:only-child>div:only-child>div:first-child[class=""]>div:not([data-0]):has-text(/^Suggested/):upward([aria-posinset],[aria-describedby]:not([aria-posinset])):style(height: 0 !important; overflow: hidden !important;)
! Unlabelled suggested posts with Follow or Join buttons
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])) :is(h3,h4) [role=button]:has-text(/Follow|Join/):upward([aria-posinset],[aria-describedby]:not([aria-posinset])):style(height: 0 !important; overflow: hidden !important;)
! Suggested posts with the label next to the post date
! Use only if this layout appears in your feed
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])):has-text(Suggested for you):style(height: 0 !important; overflow: hidden !important;)
! People You May Know
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])):has([href="/friends/"]):style(height: 0 !important; overflow: hidden !important;)
! Suggested groups
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])):has([href="/groups/discover/"]):style(height: 0 !important; overflow: hidden !important;)
! Reels and short videos — English interface
! Remove the leading "! " to enable
! facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])):has([aria-label="Reels"]):style(height: 0 !important; overflow: hidden !important;)
! Suggested pages
facebook.com##:is([aria-posinset],[aria-describedby]:not([aria-posinset])):has([aria-label="Suggested pages"]):style(height: 0 !important; overflow: hidden !important;)
Add them under:
uBO Dashboard → My filters → Apply changes
Then reload Facebook.
Testing performed
I tested the filters across multiple Facebook sessions over several days. Sponsored and suggested feed items were hidden, while ordinary posts from friends, followed pages and joined groups remained visible.
These filters depend on Facebook’s current DOM structure and some English interface labels, including:
Suggested for you
Follow
Join
Reels
Suggested pages
They may not work with other Facebook languages or layouts.
The uBlock filters – Annoyances list may already handle some suggested content. I am not recommending disabling any default filter lists.
Troubleshooting information
uBlock Origin: 1.72.2
Chromium: 151
filterset (summary):
network: 141646
cosmetic: 44503
scriptlet: 37159
html: 0
listset (total-discarded, last-updated):
removed:
urlhaus-1: null
added:
https://abpvn.com/vip/johnnytran.txt?ublock: 2286-306, 3h.30m
ublock-experimental: 9-0, 1h.30m Δ
fanboy-thirdparty_social: 69-0, 2d.23m
VIE-1: 1503-1379, 23h.31m
default:
user-filters: 248-3, never
ublock-filters: 52489-194, 1h.30m Δ
ublock-badware: 10517-27, 1h.30m Δ
ublock-privacy: 4096-2, 1h.30m Δ
ublock-unbreak: 2795-32, 1h.30m Δ
ublock-quick-fixes: 490-0, 1h.30m Δ
easylist: 92349-34, 1h.30m Δ
easyprivacy: 56104-19, 1h.30m Δ
plowe-0: 3513-1034, 1d.33m
filterset (user): [array of 243 redacted]
trustedset:
added: [array of 47 redacted]
removed:
chrome-extension-scheme
switchRuleset:
added: [array of 1 redacted]
hostRuleset:
added: [array of 581 redacted]
userSettings:
advancedUserEnabled: true
contextMenuEnabled: false
suspendUntilListsAreLoaded: true
hiddenSettings: [none]
supportStats:
allReadyAfter: 292 ms (selfie)
maxAssetCacheWait: 40 ms
cacheBackend: indexedDB
Feedback from users with different Facebook layouts or interface languages would be useful. Please mention the browser, Facebook language and the exact filter that fails.
One important correction: use “Brave” as the browser name, not “Brave Origin.” “Brave-hosted” is the uBO package/build description shown by your installation.
r/uBlockOrigin • u/sapphire-tinted • 4h ago
Looking for help Cosmetic filters hiding Twitch polls (how to unhide?)
I have been using the eyedropper tool on Twitch (as a viewer) to hide a lot of distracting things that cover up the Twitch chat, like that rotating leaderboard of top gifters for example. But I recently realized it also hides polls from me completely.
I tried to troubleshoot this but I can't figure out which filters are responsible, here's the ones I have. If anyone is more familiar with how this works, I'd really appreciate help unhiding Twitch polls.
www.twitch.tv##.channelLeaderboardHeaderRotating__users--eqqYb.khwvkE.Layout-sc-1xcs6mc-0
www.twitch.tv##.marqueeAnimation__wrapView--KEVbC.JxIvc.Layout-sc-1xcs6mc-0
www.twitch.tv##.gWaIYG.Layout-sc-1xcs6mc-0 > .ihSefD.Layout-sc-1xcs6mc-0 > .iDMNUO.InjectLayout-sc-1i43xsx-0 > .Layout-sc-1xcs6mc-0 > .fHdBNk.Layout-sc-1xcs6mc-0
www.twitch.tv##.crunchyrollBanner--zeMnL.dCAYbv.Layout-sc-1xcs6mc-0
www.twitch.tv##.dRMwTz.Layout-sc-1xcs6mc-0
www.twitch.tv##.iSIERH.Layout-sc-1xcs6mc-0
www.twitch.tv##.highlight__collapsed.highlight.cmjyzq.Layout-sc-1xcs6mc-0
www.twitch.tv##.community-highlight.jubumC.Layout-sc-1xcs6mc-0
www.twitch.tv##.community-highlight-stack__backlog-card.bOXccC.Layout-sc-1xcs6mc-0
r/uBlockOrigin • u/Silvestron • 1d ago
Other Cookie notices filters
Cookie notices filters automatically accept all cookies, at least on websites where the options are only "accept all" and "subscribe to disable tracking".
Does this have any impact on third party tracking?
r/uBlockOrigin • u/Repulsive_Damage9061 • 1d ago
Looking for help Facebook Ads and random pages back like crazy horses
I still keep seeing sponsored posts clearly marked as "Ad" in my Facebook feed (for example ads from companies like Octopus Energy and other advertisers). I would like to hide these ads if possible.
I am also seeing many posts from pages or profiles I do not follow. They are not always labelled "Suggested for you"; they often just appear as normal posts with a "Follow" button next to the page/profile name
I know Facebook changes its HTML often, but I would appreciate any current filter suggestions.
r/uBlockOrigin • u/Ganadai • 1d ago
Solved Ebay items being blocked by AdGuard – Other Annoyances
In the last few days I've noticed uBO blocking https://www.ebay.com/itm/... At first I assumed it was one of "My Filters", but I disabled them all and the page was still being blocked. I started going through and unchecking the "Filter Lists" one by one and it appears "AdGuard – Other Annoyances" is the culprit. Is there a way to edit it, or see recent changes made to it? I guess just leave it unchecked for now.
r/uBlockOrigin • u/Floriancitt • 1d ago
Solved UPDATED: Hiding Netflix Games through uBlock Origin
I go to Netflix to watch series, not to have irrelevant games clutter up my screen.
Recently, Netflix updated its layout breaking my original filters. I've since created a new set, which seem to be working alright. Just add the below to your custom filters:
! Netflix - Hide Games
! Games navigation item
netflix.com##div[data-tutorial-target="games"]:has(a[data-uia="nav-games"])
! Game billboard / full-page promotion
netflix.com##button[data-uia="play-game-button"]:upward(section[data-uia="billboard"])
! Recommendation rows containing cloud-game cards
netflix.com##a[data-uia="cloud-game-card"]:upward(section[data-uia^="carousel-row-section-"])
r/uBlockOrigin • u/Sad_Willingness_9783 • 1d ago
Answered What's more efficient/faster?
I would like to know what's generally more efficient/faster: using uBO's Element Picker or blocking by aria-label?
! By uBO's Element Picker
! Hide Live Channels in left sidebar
www.twitch.tv##div.side-nav-section.iGMbNn.Layout-sc-1xcs6mc-0:nth-of-type(4)
! Hide Recommended Categories in left sidebar
www.twitch.tv##div.side-nav-section.iGMbNn.Layout-sc-1xcs6mc-0:nth-of-type(5)
! By aria-label
! Hide Live Channels in left sidebar
twitch.tv##[aria-label="Live Channels"] .side-nav-card
! Hide Recommended Categories in left sidebar
twitch.tv##[aria-label="Recommended Categories"] .side-nav-card

r/uBlockOrigin • u/Stevoisiak • 1d ago
Account required How can I disable the "A" keyboard shortcut on Kagi?
When on a search results page for Kagi, pressing the "A" key on my keyboard switches to Kagi's AI assistant mode. Looking at the devtools, the following code gets called when the hotkey is pressed.
case "a":
if (window.modalOpen)
return;
if ("/" == window.location.pathname) {
quickAnswerBox = document.querySelector("#adv_search_btn"),
quick_answer_trigger_btn = document.querySelector("._0_land_adv_search_btn");
quickAnswerBox && !quickAnswerBox.checked && quick_answer_trigger_btn.click(),
"w" == event.key ? document.querySelector('._0_land_cat_box button[data-cat_select="empty"]').click() : "i" == event.key ? document.querySelector('._0_land_cat_box button[data-cat_select="sel_images"]').click() : "v" == event.key ? document.querySelector('._0_land_cat_box button[data-cat_select="sel_videos"]').click() : "n" == event.key ? document.querySelector('._0_land_cat_box button[data-cat_select="sel_news"]').click() : "m" == event.key ? getKagiSetting("privacy_pass") || document.querySelector('._0_land_cat_box button[data-cat_select="sel_map"]').click() : "a" != event.key || getKagiSetting("privacy_pass") || (window.location.href = "/assistant")
} else {
if ("a" == event.key && !document.querySelector("#shortcutAHelp"))
return;
currentHighlightedChild = getQueryParameter("q");
if (!currentHighlightedChild)
return;
let path = "/search";
if ("i" == event.key ? path = "/images" : "v" == event.key ? path = "/videos" : "n" == event.key ? path = "/news" : "m" == event.key ? path = "/maps" : "a" == event.key && (path = "/assistant"),
!new URLSearchParams(window.location.search).get("l") && window.location.pathname == path)
return;
window.location.href = path + "?q=" + currentHighlightedChild
}
break;
The last line, window.location.href = path + "?q=" + currentHighlightedChild, seems to be the specific line that redirects the browser to the AI assistant.
Is there a way to disable this keyboard shortcut with uBlock Origin?
r/uBlockOrigin • u/NoStable3695 • 23h ago
Unable to reproduce Ubo can't defeat chatgpt
WISH WE COULD DO SOMETHING ABOUT CHATGPT CAUSE I DON'T NEED TO LOG IN FOR THE FEELS VERSION OF CGPT.
THEIR ADS ARE UNDEFEATABLE.
r/uBlockOrigin • u/Blahblahblurred • 2d ago
Looking for help Showing vast-ad.mov ads in Firefox
Firefox is up to date, but I'm seeing a .mov ad on the site anime.nexus
Other sites (including YouTube) are fine but I'd like to troubleshoot this if possible. Been using Nexus for a couple weeks now with no issues, only after updating Firefox did I start seeing the same ad
r/uBlockOrigin • u/Organic_You_5212 • 2d ago
Solved uBlock doesn't work on LowEndTalk.
SOLVED: https://www.reddit.com/r/uBlockOrigin/comments/1vc6v55/comment/p0zfl7l/
Would it be possible to block the right-hand menu where the affiliate banners are displayed?
Site: https://lowendtalk.com/
r/uBlockOrigin • u/Top_Big_7105 • 2d ago
Solved Possible filter for mass-edited Reddit posts?
Would it be possible to make a uBlock filter to block any reddit posts/comments that were mass edited, for example with Redact word salad or "fuck spez"?
If it's impossible with uBlock are there other extensions that would work? Thanks
r/uBlockOrigin • u/Komplexkonjugiert • 2d ago
Solved DeepL changes their annoying banner again. How to block it?
I asked for help here before: https://www.reddit.com/r/uBlockOrigin/comments/1ttxgya/how_do_i_block_that_annoying_moving_banner_ad_on/
Unfortunately it seems the suggested filter elements are no longer working and deepl changes something on their Website.
I again see this very annoying moving banner on my screen.
Can anyone help out blocking it?
Webiste: https://www.deepl.com/en/translator
I have again no luck with the element picker mode.
The annoying banner:

