1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-10-31 18:38:45 +01:00

Added button in options site to display release notes.

Fixes #83
This commit is contained in:
kkapsner 2016-11-13 15:34:33 +01:00
parent 82bb25d0f2
commit 749b088fe9
7 changed files with 33 additions and 3 deletions

View File

@ -4,6 +4,7 @@
*.zip
.*
*.txt
!releaseNotes.txt
*.md
test/
addon description/

View File

@ -87,7 +87,7 @@
mode = "allow";
break;
default:
console.log("Unknown blocking mode (" + blockMode + "). Default to block everything.");
// console.log("Unknown blocking mode (" + blockMode + "). Default to block everything.");
}
return mode;
}

View File

@ -81,4 +81,9 @@
return _(ev.data);
});
var data = require("sdk/self").data;
preferences.on("showReleaseNotes", function(){
var url = data.url("releaseNotes.txt").replace("/data/", "/");
require("sdk/tabs").open(url);
});
}());

View File

@ -64,5 +64,8 @@
"whiteList_description": "Domänen oder URLs, die die <canvas>-API verwenden dürfen. Mehrere Einträge müssen durch ein Komma getrennt werden.",
"whiteList_title": "Whitelist",
"whitelistDomain": "erlaube Domain",
"whitelistURL": "erlaube URL"
"whitelistURL": "erlaube URL",
"showReleaseNotes_title": "Versionsinformationen"
"showReleaseNotes_label": "Anzeigen"
}

View File

@ -65,5 +65,8 @@
"whiteList_description": "Domains or URLs where the <canvas>-API should not be blocked. To add multiple entries, separate them by commas.",
"whitelist": "whitelist",
"whitelistDomain": "whitelist domain",
"whitelistURL": "whitelist URL"
"whitelistURL": "whitelist URL",
"showReleaseNotes_title": "Release notes",
"showReleaseNotes_label": "Show"
}

View File

@ -134,6 +134,12 @@
"title": "File specific white list",
"type": "string",
"value": ""
},
{
"name": "showReleaseNotes",
"title": "Release notes",
"type": "control",
"label": "Show"
}
],
"main": "lib/main.js",

View File

@ -1,3 +1,15 @@
Version 0.3.3:
changes:
- switching of the mode, white- and black-listing only affects new loaded pages
new features:
- auto close of the notifications (preference)
- button to show the release notes
fixes:
- "about:"-tabs could not be dragged
- performance issues
Version 0.3.2:
new features:
- "fake at input" mode