mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
parent
9753681651
commit
6c2dbbebf0
@ -40,8 +40,9 @@
|
|||||||
name: "disableNotifications",
|
name: "disableNotifications",
|
||||||
isIcon: true,
|
isIcon: true,
|
||||||
callback: function(){
|
callback: function(){
|
||||||
settings.showNotifications = false;
|
settings.set("showNotifications", false).then(function(){
|
||||||
window.close();
|
window.close();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -69,11 +70,15 @@
|
|||||||
domain
|
domain
|
||||||
).then(function(domain){
|
).then(function(domain){
|
||||||
if (domain){
|
if (domain){
|
||||||
settings.set("showNotifications", false, domain);
|
settings.set("showNotifications", false, domain).then(function(){
|
||||||
}
|
|
||||||
window.close();
|
window.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "whitelistDomain",
|
name: "whitelistDomain",
|
||||||
@ -84,11 +89,15 @@
|
|||||||
domain
|
domain
|
||||||
).then(function(domain){
|
).then(function(domain){
|
||||||
if (domain){
|
if (domain){
|
||||||
settings.set("blockMode", "allow", domain);
|
settings.set("blockMode", "allow", domain).then(function(){
|
||||||
}
|
|
||||||
window.close();
|
window.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
].forEach(function(domainAction){
|
].forEach(function(domainAction){
|
||||||
domainNotification.addAction(domainAction);
|
domainNotification.addAction(domainAction);
|
||||||
@ -119,11 +128,15 @@
|
|||||||
"^" + url.href.replace(/([\\+*?[^\]$(){}=!|.])/g, "\\$1") + "$"
|
"^" + url.href.replace(/([\\+*?[^\]$(){}=!|.])/g, "\\$1") + "$"
|
||||||
).then(function(url){
|
).then(function(url){
|
||||||
if (url){
|
if (url){
|
||||||
settings.set("blockMode", "allow", url);
|
settings.set("blockMode", "allow", url).then(function(){
|
||||||
}
|
|
||||||
window.close();
|
window.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
].forEach(function(action){
|
].forEach(function(action){
|
||||||
Notification.addAction(action);
|
Notification.addAction(action);
|
||||||
|
@ -6,7 +6,7 @@ Version 0.5.1:
|
|||||||
-
|
-
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
-
|
- Changes made in the page action were not saved in all Firefox versions
|
||||||
|
|
||||||
known issues:
|
known issues:
|
||||||
- if a data URL request is blocked the page action button appears but shows no content
|
- if a data URL request is blocked the page action button appears but shows no content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user