Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

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

  • 2 odpowiedzi
  • 1 osoba ma ten problem
  • 3 wyświetlenia
  • Ostatnia odpowiedź od 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?

Wybrane rozwiązanie

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/

Przeczytaj tę odpowiedź w całym kontekście 👍 1

Wszystkie odpowiedzi (2)

more options

Wybrane rozwiązanie

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