Skip to content

Instantly share code, notes, and snippets.

@t27
Last active July 8, 2025 09:31
Show Gist options
  • Save t27/e188046e9457b8ce4d2e448c25f2bc29 to your computer and use it in GitHub Desktop.
Save t27/e188046e9457b8ce4d2e448c25f2bc29 to your computer and use it in GitHub Desktop.
Ublock Origin rules to hide the Amazon.com Cart sidebar that can't be hidden via any setting/config on the website
! Ublock Origin rules to hide the Amazon.com Cart sidebar that can't be officially hidden
! hide the sidebar
www.amazon.com###nav-flyout-ewc
www.amazon.com###nav-flyout-anchor
! ensure the rest of the site covers full width
www.amazon.com##body:style(padding-right: 0px !important)
@darkmanifest
Copy link

I signed up for an account solely to thank you for posting this, I HATE that sidebar and couldn't figure out how to get the cosmetic filtering just right. This works perfectly.

@VLM-TechEd
Copy link

I've never entered a script in uBlock O before. How does one do so? Thank you.

@peterberbec
Copy link

I signed in just to say THANK YOU!

@dromeo79
Copy link

This is great. Thanks for sharing.

I had to open the Ublock Origin dashboard and add these lines to "my filters" section.

@Moulick
Copy link

Moulick commented Nov 3, 2024

Thanks!

@srt-jay
Copy link

srt-jay commented Mar 14, 2025

Thank you so much! Every time I'd block it, the white space just stayed there like they made it a PITA on purpose.

Could never remember how I did it on my desktop, and thanks to you I don't have to! Take my star, please. You've earned it.

Can't believe that 8 years later Amazon still hasn't listened to the feedback and are tone deaf as always.

@Zhurama
Copy link

Zhurama commented Jul 8, 2025

This works 99.5% perfectly.. Best solution yet.

Removing the flyout-anchor in line 5 caused me to noe be able to access any pop down menus on the page and the wishlist is inaccessible without going directly into Accounts>Your Lists, so I commented that line out. This leaves the anchor on the page and a slight overspill of the frame, but it otherwise solves my problem with no pop down menus.

I mean.. I wouldn't mind the cart subtotal so much if it actually fit the frames and didn't have a gap that causes it to run off of the visible page with no apparent solution..

For the @VLM-TechEd above who asked.. Add these lines by goign to>
uBlock Origin Options> My Filters> Add lines 1-8 to the My Filters Section> Apply Changes> Refresh Amazon Page and POOF!!! Fixed!

TYVVVSVVM!
Namaste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment