Skip to content

KevinNyaa/My-Safari-Content-Blockers-Rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

My Safari Content Blockers Rules

Twitter

Cosmetic Rules

! [iOS 16+] Remove not article(Who to follow(h2) + UserCell + Show more(a), Discover more(h2))
x.com##div[data-testid=cellInnerDiv]:has(> div > div > article) ~div[data-testid=cellInnerDiv] > div > div > :where(div:has(h2), button[data-testid=UserCell],a,section)

! [iOS 16+] Remove Discover more posts
x.com##html:has(link[href*="/status/"]) div[data-testid=cellInnerDiv]:has(> div > div > div > h2) ~div

Media unblur and fit media in box

For browsing Twitter only in Safari main app.

  • MacOS/iOS UserCSS will not work in Safari PWA(add to home).
  • MacOS content blocker will not work in Safari PWA(add to home).

Media unblur for UserCSS.

.r-drfeu3, li > div > div > div > div:has(>svg)
{display: none !important}
.r-yfv4eo
{filter: none !important}

Fit media in box for UserCSS.

div[style^="background-image"]
{background-size: contain !important; background-position: center !important}

For UBlock Origin.

! x.com/ unblur for UBlock Origin
x.com##.r-yfv4eo:style(filter: none !important)
! x.com remove show
x.com##.r-drfeu3
! x.com/<user_name>/media remove show
x.com##li > div > div > div > div:has(>svg)
! fit media in box 
x.com##div[style^=background-image]:style(background-size: contain !important; background-position: center !important)

Releases

No releases published

Packages

No packages published