diff --git a/manifest.json b/manifest.json index 522d179..5d593d9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "__MSG_extensionName__", - "version": "1.0.1", + "version": "1.1.0", "description": "__MSG_extensionDescription__", "author": "Amunak", "homepage_url": "https://github.com/Amunak/thunderbird-list-unsubscribe-addon", diff --git a/popup.css b/popup.css index b1e2b62..91dc7a4 100644 --- a/popup.css +++ b/popup.css @@ -4,9 +4,18 @@ body, html { } code { + display: inline-block; font-size: .875em; color: #d63384; word-wrap: break-word; + + transition: all 0.1s ease; + cursor: pointer; +} + +code.hl { + color: #ffffff; + background-color: #d63384; } .popup-page { diff --git a/popup.js b/popup.js index adb4105..04d2f86 100644 --- a/popup.js +++ b/popup.js @@ -86,6 +86,10 @@ async function handleActiveTabs(tabs) { linkEl.innerText = unsubLink linkEl.addEventListener('click', () => { navigator.clipboard.writeText(linkEl.innerText) + linkEl.classList.add('hl') + setTimeout(() => { + linkEl.classList.remove('hl') + }, 100) }) linkContainerEl.innerText = browser.i18n.getMessage('unsubLink')