diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 0e92b2f..4dd24b8 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -1616,6 +1616,10 @@
"message": "CanvasBlocker whitelist inspection",
"description": ""
},
+ "whitelist_inspection_description": {
+ "message": "Shows which API protections are active for a given site. If you remove a checkmark for an API this API will be not protected for the selected site.",
+ "description": ""
+ },
"whitelist_all_apis": {
"message": "All APIs",
"description": ""
diff --git a/options/whitelist.css b/options/whitelist.css
new file mode 100644
index 0000000..172aa1f
--- /dev/null
+++ b/options/whitelist.css
@@ -0,0 +1,3 @@
+.description {
+ margin: 1em 0;
+}
\ No newline at end of file
diff --git a/options/whitelist.html b/options/whitelist.html
index 7c0c7a5..a57a5aa 100644
--- a/options/whitelist.html
+++ b/options/whitelist.html
@@ -2,7 +2,7 @@
CanvasBlocker whitelist inspection
-
+
diff --git a/options/whitelist.js b/options/whitelist.js
index 2874278..e6da775 100644
--- a/options/whitelist.js
+++ b/options/whitelist.js
@@ -18,6 +18,11 @@
document.querySelector("head title").textContent = title.textContent;
+ const description = document.createElement("div");
+ description.className = "description";
+ description.textContent = extension.getTranslation("whitelist_inspection_description");
+ document.body.appendChild(description);
+
const whitelistSettings = [
{
@@ -73,11 +78,15 @@
settings.onloaded(function(){
const sets = settingContainers.urlContainer.get();
+ const selectLabel = document.createElement("label");
+ selectLabel.textContent = "URL ";
+ document.body.appendChild(selectLabel);
+
const setSelect = document.createElement("select");
sets.forEach(function(set){
setSelect.appendChild(new Option(set.url));
});
- document.body.appendChild(setSelect);
+ selectLabel.appendChild(setSelect);
if (searchParameters.has("urls")){
const urls = JSON.parse(searchParameters.get("urls")).map(function(url){
diff --git a/releaseNotes.txt b/releaseNotes.txt
index 667595e..a03f7b3 100644
--- a/releaseNotes.txt
+++ b/releaseNotes.txt
@@ -2,6 +2,7 @@ Version 1.6:
changes:
- periodical persistent rnd clearing does not clear in active tabs
- added paypal.com to the convenience preset
+ - improved whitelist inspection
new features:
- try to not break tabs when updating