[英]Hide Amazon Cart Using userContent.css
I'm trying to hide the Amazon cart (the "panel" on the right hand side).我试图隐藏亚马逊购物车(右侧的“面板”)。 It makes Christmas shopping for your family more challenging.
它使您家人的圣诞购物更具挑战性。
I thought I could put something like this in my userContent.css;我想我可以把这样的东西放在我的 userContent.css 中;
@-moz-document domain(amazon.com) {
#nav-flyout-ewc { display: none !important; }
}
But so far I'm not having much luck.但到目前为止,我的运气并不好。
I'm using Firefox:我正在使用 Firefox:
Version 82.0.2 Build ID 20201027185343 Distribution ID canonical
And the userContent.css is in the "chrome" folder in my Profile Directory as reported by about:support并且 userContent.css 位于我的配置文件目录中的“chrome”文件夹中,如 about:support 报告的那样
I've taken a bit of a dive trying to sort this out myself and (like you) wasn't satisfied with just blanket bombing the body.我花了一些时间试图自己解决这个问题,并且(像你一样)对只是全面轰炸身体并不满意。 Here's my solution ( which in the process of finding, helped me realise I didn't have to do it for the subdomain '
smile.
', too ):这是我的解决方案(在查找过程中,它帮助我意识到我也不必为子域“
smile.
”执行此操作):
@-moz-document domain(amazon.co.uk) {
#nav-flyout-ewc { display:none !important; }
.nav-ewc-persistent-hover.a-js body { padding-right: 0px !important; }
.nav-ewc-persistent-hover body { padding-right: 0px !important; }
}
You would obviously just change this to ' .com
' or, if you wish to affect multiple sites, then, this:显然,您只需将其更改为“
.com
”,或者,如果您希望影响多个站点,则为:
@-moz-document domain(amazon.com), domain(amazon.co.uk) {
#nav-flyout-ewc { display:none !important; }
.nav-ewc-persistent-hover.a-js body { padding-right: 0px !important; }
.nav-ewc-persistent-hover body { padding-right: 0px !important; }
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.