MrOtherGuy / firefox-csshacks

Collection of userstyles affecting the browser
Mozilla Public License 2.0
3.13k stars 310 forks source link

Question: Any way to make autohide_sidebar only affect Sidebery? #324

Closed a-plastic-bag closed 9 months ago

a-plastic-bag commented 9 months ago

I'd like only Sidebery to autohide, and not other sidebars like history. How would I go about doing this?

MrOtherGuy commented 9 months ago

An easy way would be to restrict the selector on line 7 to only apply to sidebarcommand identifier derived from the extension id. So in Sidebery's case the new selector would be:

#sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]

There might be some issues caused by all the other rules still applying to all sidebar types but at first glance I don't see any major issues.

a-plastic-bag commented 9 months ago

That did the trick! Thanks!