搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Saving Inspect element changes permanently

more options

How do you save the changes you made on inspect element on firefox?

All im getting is youtube videos of how to do it for chrome and you require an extension!

How do you save the changes you made on inspect element on firefox? All im getting is youtube videos of how to do it for chrome and you require an extension!
附加的畫面擷圖

由 cor-el 於 修改

所有回覆 (6)

more options

What kind of changes is this about ?

If this is about CSS changes or hide content then you can use CSS code in userContent.css instead of a content blocking extension to make this permanent (i.e. apply the new rules with every visit). If this is about making changes that require the use of JavaScript then you always need an extension to inject a content script.


In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

More info about userContent.css and userChrome.css in case you are not familiar: *https://www.userchrome.org/what-is-userchrome-css.html

有幫助嗎?

more options

Did the videos suggest using the Stylish or Stylus extension? Stylus is a recommended extension, meaning it gets a heightened security review by the Add-ons team:

(I use Stylus myself to fix various site problems.)

有幫助嗎?

more options

Cor-el is that just for chrome or firefox also?

有幫助嗎?

more options

Everything cor-el posted was for the Firefox web browser.

This has nothing to do with the separate Google Chrome web browser.

有幫助嗎?

more options

Okay so basically for example lets say i want to permanently just for my screen have this image deleted/or hidden whatever how can I do this without using an extension?

I believe someone brought up usercontent.css?

有幫助嗎?

more options

userContent.css is an optional file you can create which Firefox will apply to all web pages. You can scope the style rules in the file to apply only to particular pages using the @-moz-document syntax. I don't know whether there is an authoritative site to guide you into this.

(If you find articles about userChrome.css, that file is used to style the user interface, but some of the setup logistics are the same.)

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題