Universal-Bypass/html/translations.js
2018-03-26 10:39:42 +02:00

10 lines
215 B
JavaScript

let elms = document.querySelectorAll("[data-message]");
for(let i in elms)
{
let elm = elms[i];
if(elm instanceof HTMLElement)
{
elm.textContent = chrome.i18n.getMessage(elm.getAttribute("data-message"));
}
}