在 Firefox 擴展中執行此操作后:
browser.browsingData.remove({"since": 0, "originTypes": {"unprotectedWeb": true, "protectedWeb": true, "extension": true} }, {
"cache": true,
"cookies": false, // I delete them separately
"downloads": true,
//"fileSystems": true, // not available on FF
"formData": true,
"history": true,
"indexedDB": true,
"localStorage": true,
"passwords": false,
"pluginData": true,
"serviceWorkers": true,
}, function() {
console.log('done');
});
一切都已成功洗掉(歷史記錄等),但這仍然存在:

為什么?這不是因為 cookie(這些網站目前有 0 個 cookie,我仔細檢查了這一點)。
如何完全洗掉所有內容?
注意:我已經"permissions": ["storage", "browsingData", "cookies", "<all_urls>"]在清單中設定了。
uj5u.com熱心網友回復:
這是 DataTypeSets 的串列。例如,您錯過了“appcache”。希望對您有所幫助,否則您是否已經查看過 about:cache?
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/445464.html
標籤:javascript 火狐 饼干 火狐插件 firefox-addon-webextensions
