1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Improved design of the page action display.

This commit is contained in:
kkapsner 2017-10-14 12:24:53 +02:00
parent 03bf34d092
commit ae0763cfe6
14 changed files with 614 additions and 13 deletions

View file

@ -29,6 +29,7 @@ Promise.all([
document.getElementById("globalActions"),
[{
name: "disableNotifications",
isIcon: true,
callback: function(){
browser.storage.local.set({showNotifications: false});
window.close();
@ -53,6 +54,7 @@ Promise.all([
[
{
name: "ignorelistDomain",
isIcon: true,
callback: function(domain){
modalPrompt(
browser.i18n.getMessage("inputIgnoreDomain"),
@ -67,6 +69,7 @@ Promise.all([
},
{
name: "whitelistDomain",
isIcon: true,
callback: function(domain){
modalPrompt(
browser.i18n.getMessage("inputWhitelistURL"),
@ -87,18 +90,21 @@ Promise.all([
[
{
name: "displayFullURL",
isIcon: true,
callback: function({url}){
alert(url.href);
}
},
{
name: "displayCallingStack",
isIcon: true,
callback: function({errorStack}){
alert(parseErrorStack(errorStack));
}
},
{
name: "whitelistURL",
isIcon: true,
callback: function({url}){
modalPrompt(
browser.i18n.getMessage("inputWhitelistDomain"),