window.onload = function () { ReplaceTranslations() }
function ReplaceTranslations(){ function replace(element, from, to) { if (element.childNodes.length) { element.childNodes.forEach(child => replace(child, from, to)); } else { const cont = element.textContent; if (cont) element.textContent = cont.replace(from, to); } };
replace(document.body, new RegExp("Jūsu pašreizējais stāvoklis", "g"), "Jūsu pašreizējā izvēle"); replace(document.body, new RegExp("Atļaut visu", "g"), "Atļaut visus sīkfailus"); replace(document.body, new RegExp("Session", "g"), "Sesija"); replace(document.body, new RegExp("Mainiet savu piekrišanu", "g"), "Mainīt savu piekrišanu"); }