1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 20:16:33 +02:00

Added tool to clear persistent rng for a specific container

Fixes #368
This commit is contained in:
kkapsner 2019-06-14 10:45:34 +02:00
parent 895c7a36d7
commit 03524fd789
7 changed files with 59 additions and 0 deletions

View file

@ -34,6 +34,21 @@
logging.notice("send message to main script");
extension.message.send({"canvasBlocker-clear-domain-rnd": true});
},
clearPersistentRndForContainer: function(){
browser.contextualIdentities.query({}).then(function(identities){
modal.select(
extension.getTranslation("clearPersistentRndForContainer_title"),
identities.map(function(identity){
return {
name: `${identity.name} (${identity.cookieStoreId})`,
object: identity
};
})
).then(function(identity){
extension.message.send({"canvasBlocker-clear-container-rnd": identity.cookieStoreId});
}, ()=>{});
});
},
inspectSettings: function(){
logging.verbose("open settings inspection");
window.open("export.html", "_blank");

View file

@ -85,6 +85,7 @@
},
{
"name": "clearPersistentRnd",
"actions": ["clearPersistentRnd", "clearPersistentRndForContainer"],
"displayDependencies": [
{
"blockMode": ["fake"],