This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

Automatically change or remove certain elements (by id or class) from certain websites whenever I open them?

  • 2 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 3 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย Metallkiller

more options

There are several websites I use daily, where I'd like to either remove certain elements (e.g. a sidebar I don't ever use), or change them to make it more usable (e.g. add position: sticky to a navbar).

I found a similar question that got answers with "Permanent Remover" and "Element Hiding Helper", but those aren't Quantum-Ready. One person also mentioned building his own scripts for this kind of thing. If there isn't that kind of addon, could you point me to a small example script that runs on each site load, so I have a starting point?

There are several websites I use daily, where I'd like to either remove certain elements (e.g. a sidebar I don't ever use), or change them to make it more usable (e.g. add position: sticky to a navbar). I found a similar question that got answers with "Permanent Remover" and "Element Hiding Helper", but those aren't Quantum-Ready. One person also mentioned building his own scripts for this kind of thing. If there isn't that kind of addon, could you point me to a small example script that runs on each site load, so I have a starting point?

วิธีแก้ปัญหาที่เลือก

You can do it using the Stylus addon:

https://addons.mozilla.org/firefox/addon/styl-us/

Removing certain elements is also possible with uBlock Origin:

https://addons.mozilla.org/firefox/addon/ublock-origin/

อ่านคำตอบนี้ในบริบท 👍 1

การตอบกลับทั้งหมด (2)

more options

วิธีแก้ปัญหาที่เลือก

You can do it using the Stylus addon:

https://addons.mozilla.org/firefox/addon/styl-us/

Removing certain elements is also possible with uBlock Origin:

https://addons.mozilla.org/firefox/addon/ublock-origin/

more options

TyDraniu said

You can do it using the Stylus addon: https://addons.mozilla.org/firefox/addon/styl-us/

Stylus is awesome, thank you! Makes it very easy to just change stuff around on the fly and permanently :D