diff --git a/_locales/en/messages.json b/_locales/en/messages.json index a7ee8b4..73b7acc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1675,7 +1675,7 @@ "description": "" }, "whitelist_inspection_description": { - "message": "This shows which fingerprint protections are active for specified sites.\n\nUnchecked means that the site can use that particular function in an unaltered manner. This includes it could use it to (partially) fingerprint your browser.\nChecked means that CanvasBlocker provides a protection which makes it harder for the site to uniquely identifying you.", + "message": "This shows which fingerprint protections are active for specified sites.{newline}{newline}Unchecked means that the site can use that particular function in an unaltered manner. This includes it could use it to (partially) fingerprint your browser.{newline}Checked means that CanvasBlocker provides a protection which makes it harder for the site to uniquely identifying you.", "description": "" }, "whitelist_all_apis": { diff --git a/lib/extension.js b/lib/extension.js index cec0852..6195e7c 100644 --- a/lib/extension.js +++ b/lib/extension.js @@ -50,6 +50,10 @@ container.appendChild(link); break; } + case "newline": { + container.appendChild(document.createElement("br")); + break; + } default: if (parameters[args[0]]){ const parameter = parameters[args[0]]; diff --git a/options/whitelist.js b/options/whitelist.js index 244092a..0139c26 100644 --- a/options/whitelist.js +++ b/options/whitelist.js @@ -20,10 +20,7 @@ const description = document.createElement("div"); description.className = "description"; - extension.getTranslation("whitelist_inspection_description").split(/(\n)/g).forEach(function(line){ - const node = line === "\n"? document.createElement("br"): document.createTextNode(line); - description.appendChild(node); - }); + description.appendChild(extension.parseTranslation(extension.getTranslation("whitelist_inspection_description"))); document.body.appendChild(description);