Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Automate toggling about:config values?

  • 5 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Windows 8.1, Firefox 102.0.1

I recently discovered that it is quite true that some folks (including the folks at Mozilla) store cookies in DOM storage.

For example, it is impossible to log into your Mozilla account (because you are not accepting cookies!) if you have set dom.storage.enabled = false using the about:config editor.

So, as you can see, those sneaky folks at Mozilla :) like to obscure "cookie" collecting by using DOM storage cookies instead of the usual cookies everyone complains about and have to be warned about by law. (I love the "I don't care about cookies" extension, by the way. It shuts up that completely asinine annoyance.)

As a test of sorts I would like toggle the blocking of DOM cookies on a regular basis by toggling dom.storage.enabled. Rather than going back and forth and toggling the value manually using the about:config editor I would like to automate the process, possibly with a Windows batch file or a script. Also, possibly, (just for fun) I would like to take this concept of the automating the changing of certain preference values into building an extension. If I ever learn how to properly code one, that is.

So, my question is -- Where is the dom.storage.enabled value stored? (I examined the pref.js file but it is not there unless it has some other name.)

Windows 8.1, Firefox 102.0.1 I recently discovered that it is quite true that some folks (including the folks at Mozilla) store cookies in DOM storage. For example, it is impossible to log into your Mozilla account (because you are not accepting cookies!) if you have set dom.storage.enabled = false using the about:config editor. So, as you can see, those sneaky folks at Mozilla :) like to obscure "cookie" collecting by using DOM storage cookies instead of the usual cookies everyone complains about and have to be warned about by law. (I love the "I don't care about cookies" extension, by the way. It shuts up that completely asinine annoyance.) As a test of sorts I would like toggle the blocking of DOM cookies on a regular basis by toggling dom.storage.enabled. Rather than going back and forth and toggling the value manually using the about:config editor I would like to automate the process, possibly with a Windows batch file or a script. Also, possibly, (just for fun) I would like to take this concept of the automating the changing of certain preference values into building an extension. If I ever learn how to properly code one, that is. So, my question is -- Where is the dom.storage.enabled value stored? (I examined the pref.js file but it is not there unless it has some other name.)

Tất cả các câu trả lời (5)

more options

Hữu ích?

more options

The file prefs.js seems to contain only modified preferences.

Hữu ích?

more options

Re Dropa: Thank you for sharing but I reviewed those pages ages ago and they have abolutely nothing to do with DOM cookie storage. Clearing cookies does NOT clear DOM cookies (which I believe are stored in webappsstore.sqlite). Clearing cookies clears only regular cookies stored in cookies.sqlite.

To prevent DOM cookies from being stored you can set about:config dom.storage.enabled = false.

Note: Set to false this disables all DOM storage not just the storage of DOM cookies.

Hữu ích?

more options

WARNING from the moderator team: Changing Firefox pref from the about:config page can sometimes break Firefox or cause strange behavior. You should only do this if you know what you're doing.

Please read Firefox advanced customization and configuration options to learn more.

Hữu ích?

more options

Note that you can clear local storage by using Everything as the time frame for "Clear Recent History".

You can also click the padlock and use "Clear cookies and site data..." to clear the cookies and storage for a specific webpage.

  • Settings -> Privacy & Security
    Cookies and Site Data: "Clear Data" and "Manage Data"

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.