How to view/delete local storage in Firefox?
In Google Chrome there is an easy way to see what's in local storage as well as modify or delete it after inspecting it.
Is there a tool or something to do the same in Firefox?
You can delete localStorage items one by one using Firebug (a useful web development extension) or Firefox's developer console.
Firebug Method
Developer Console Method
You can enter these commands into the console:
localStorage; // click arrow to view object's properties
localStorage.removeItem("foo");
localStorage.clear(); // remove all of localStorage's properties
Storage Inspector Method
Firefox now has a built in storage inspector, which you may need to manually enable. See rahilwazir's answer below.
From Firefox 34 onwards you now have an option for Storage Inspector, which you can enable it from developer tools settings
Once there, you can enable the Storage
options under Default Firefox Developer tools
Updated 27-3-16
Firefox 48.0a1 now supports Cookies editing.
Updated 3-4-16
Firefox 48.0a1 now supports localStorage and sessionStorage editing.
Updated 02-08-16
Firefox 48 (stable release) and onward supports editing of all storage types, except IndexedDB
To inspect your localStorage items you may type console.log(localStorage);
in your javascript console (firebug for example or in new FF versions the shipped js console).
You can use this line of Code to get rid of the browsers localStorage contents. Just execute it in your javascript console:
localStorage.clear();
链接地址: http://www.djcxy.com/p/74032.html
上一篇: 修改和添加扩展到Firefox的问题