From b5cc294ece20b69103df25f611efd7cce7f0dcfc Mon Sep 17 00:00:00 2001 From: gramps Date: Mon, 13 Jul 2026 16:19:37 -0700 Subject: [PATCH] chore: remove rating thumbs up/down (no backend, privacy concern) --- templates/index.html | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/templates/index.html b/templates/index.html index 3f40f96..cc5a658 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1552,32 +1552,7 @@ function addMessageToolbar(msgDiv) { showToast('Saved'); } catch(e) { showToast('Save failed'); } }; - toolbar.append(copyBtn, printBtn, saveBtn, sep()); - if (!msgDiv.classList.contains('search-result')) { - const rating = { value: 0 }; - const upBtn = document.createElement('button'); - upBtn.innerHTML = '👍'; - upBtn.title = 'Rate up'; - upBtn.onclick = () => { - const was = rating.value; - rating.value = rating.value === 1 ? 0 : 1; - upBtn.classList.toggle('active', rating.value === 1); - dnBtn.classList.toggle('active', false); - showToast(rating.value === 1 ? 'Rated up' : 'Rating removed'); - }; - const dnBtn = document.createElement('button'); - dnBtn.innerHTML = '👎'; - dnBtn.title = 'Rate down'; - dnBtn.onclick = () => { - const was = rating.value; - rating.value = rating.value === -1 ? 0 : -1; - dnBtn.classList.toggle('active', rating.value === -1); - upBtn.classList.toggle('active', false); - showToast(rating.value === -1 ? 'Rated down' : 'Rating removed'); - }; - toolbar.append(upBtn, dnBtn); - } - function sep() { const s = document.createElement('span'); s.className = 'sep'; return s; } + toolbar.append(copyBtn, printBtn, saveBtn); } function escapeHtml(t) { const d = document.createElement('div'); d.textContent = t; return d.innerHTML; }