Я об этом сразу написал 
Попробуйте:
(() => {
const htmlString = prompt('Enter your HTML table');
if (!htmlString || !htmlString.trim().length) return;
const container = document.createElement('div');
container.innerHTML = htmlString;
container.querySelectorAll('tbody tr').forEach((row, rowIndex) => {
row.querySelectorAll('td').forEach((cell, cellIndex) => {
if (cellIndex) cell.classList.add('notranslate');
});
});
prompt('Take your prepared table', container.innerHTML);
})();
|