Custom Adblock Rules

  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account

DeepLurker

kiwifarms.net
Joined
Apr 27, 2022
Despite running both Adblock Plus and Ghostery, sometimes I still see shit I'd rather not. When that happens, I feel a spiteful compulsion to look through the page code and create a custom rule to block whatever abomination is before me.

Here's a handfull of the ones I'm currently using:
youtube.com##ytd-rich-shelf-renderer
youtube.com/results##ytd-reel-shelf-renderer
Those block the pozzed shorts in the main and search pages (I also use 'Youtube-shorts block' to use the normal video player on shorts)

twitter.com##.css-1dbjc4n.r-aqfbo4.r-1p0dtai.r-1d2f490.r-12vffkv.r-1xcajam.r-zchlnj
This blocks the annoying blue bar when you are on Twitter while logged out

royalroad.com##.portlet.light.text-center
royalroad.com##.bold.uppercase.text-center
royalroad.com##.wide
royalroad.com##.portlet.text-center.fiction-list-item
royalroad.com##.portlet.light.t-center
 
Last edited:
Sometimes when you visit a website, a pop-up will appear telling you that you can log in with your Google account. If that stuff annoys you, this filter will block it: -

||accounts.google.com/gsi/*$xhr,script,3p

I use a bunch on YouTube, but this one removes the "1080p Premium" option when you select the quality, as that requires you to pay for a subscription: -

youtube.com##.ytp-quality-menu [role="menuitemradio"]:has-text(Premium)

Regarding YouTube shorts, for desktop users I would recommend this: -


It gives you the following options: -
  • Hide Shorts tab in navigation tab
  • Hide Shorts section in Home feed
  • Hide Shorts tab in channel page
  • Hide Shorts from subscriptions page
It also redirects any shorts so they play in the regular player, rather than the phone screen layout.
 
Found this on r/Piracy. Supposedly removes YouTube's new adblocker cockblock messages.

Code:
youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)

youtube.com##+js(set, Object.prototype.adBlocksFound, 0)

youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])

youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)

youtube.com##+js(json-prune, auxiliaryUi.messageRenderers.enforcementMessageViewModel)

youtube.com##+js(set, ytInitialPlayerResponse.auxiliaryUi.messageRenderers.enforcementMessageViewModel, undefined)

youtube.com#$##cinematics.ytd-watch-flexy{display:none}

I haven't encountered them yet personally so can't say whether it works or not, but replies to the thread are saying it does: https://old.reddit.com/r/Piracy/comments/15sd5ai/well_looks_like_im_not_allowed_to_watch_yt/
 
Back
Top Bottom