mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 04:40:20 +01:00
parent
1e1f343f28
commit
32af464c05
@ -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": ""
|
||||
|
3
options/whitelist.css
Normal file
3
options/whitelist.css
Normal file
@ -0,0 +1,3 @@
|
||||
.description {
|
||||
margin: 1em 0;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>CanvasBlocker whitelist inspection</title>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="sanitize.css" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="whitelist.css" />
|
||||
<link href="../icons/icon.svg" type="image/svg" rel="icon">
|
||||
<link href="../icons/icon.svg" type="image/svg" rel="shortcut icon">
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user