mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
parent
895c7a36d7
commit
03524fd789
7 changed files with 59 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
},
|
||||
{
|
||||
"name": "clearPersistentRnd",
|
||||
"actions": ["clearPersistentRnd", "clearPersistentRndForContainer"],
|
||||
"displayDependencies": [
|
||||
{
|
||||
"blockMode": ["fake"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue