From 20017f10a413020e2a159817e2579b999fffc335 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 06:55:00 -0800 Subject: [PATCH 1/6] Tweaks --- src/html/options.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/html/options.html b/src/html/options.html index f41885b..75513be 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -17,13 +17,14 @@
- Link Extractor + Link Extractor

Link Extractor

v

- +
From 540963e1ce196b84afab4e67e7fcd9dd401cac1d Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 07:42:30 -0800 Subject: [PATCH 2/6] Tweaks --- src/html/options.html | 6 +++--- src/html/popup.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/html/options.html b/src/html/options.html index 75513be..f1f7fdc 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -16,10 +16,10 @@
-
- + Link Extractor -

Link Extractor

+

Link Extractor

v

diff --git a/src/html/popup.html b/src/html/popup.html index a9da4b7..ef61aa2 100644 --- a/src/html/popup.html +++ b/src/html/popup.html @@ -14,10 +14,10 @@
- + All Links
- + @@ -56,10 +56,10 @@
- + Options -
- Link Extractor + From da270515b0167dd8b8f49bdc254c6ed57433c1ad Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 20:40:28 -0800 Subject: [PATCH 3/6] Fix Order --- src/js/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/links.js b/src/js/links.js index 6bef2c3..91807c5 100644 --- a/src/js/links.js +++ b/src/js/links.js @@ -25,7 +25,7 @@ const dtOptions = { processing: true, saveState: true, bSort: true, - order: [0, 'desc'], + order: [[0, 'desc']], pageLength: -1, lengthMenu: [ [10, 25, 50, 100, 250, -1], From 00186ea838ae553286225d10d7253215e44a44b4 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 20:49:05 -0800 Subject: [PATCH 4/6] Set Charset --- src/html/links.html | 1 + src/html/options.html | 1 + src/html/popup.html | 1 + 3 files changed, 3 insertions(+) diff --git a/src/html/links.html b/src/html/links.html index 46b3d9c..7d33072 100644 --- a/src/html/links.html +++ b/src/html/links.html @@ -1,6 +1,7 @@ + Link Extractor diff --git a/src/html/options.html b/src/html/options.html index f1f7fdc..cfc7b44 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -1,6 +1,7 @@ + Link Extractor Options diff --git a/src/html/popup.html b/src/html/popup.html index ef61aa2..11b08ca 100644 --- a/src/html/popup.html +++ b/src/html/popup.html @@ -1,6 +1,7 @@ + Link Extractor From ab162bdbcda2b9ba2fe108b7d62b246281472960 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:13:46 -0800 Subject: [PATCH 5/6] Cleanup --- src/js/links.js | 2 +- src/js/popup.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/links.js b/src/js/links.js index 91807c5..cbb993d 100644 --- a/src/js/links.js +++ b/src/js/links.js @@ -25,7 +25,7 @@ const dtOptions = { processing: true, saveState: true, bSort: true, - order: [[0, 'desc']], + order: [[0, 'asc']], pageLength: -1, lengthMenu: [ [10, 25, 50, 100, 250, -1], diff --git a/src/js/popup.js b/src/js/popup.js index 153fa10..a133ecf 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -7,12 +7,12 @@ document.getElementById('filter-form').addEventListener('submit', filterForm) document.getElementById('links-form').addEventListener('submit', linksForm) document.getElementById('links-text').addEventListener('input', updateLinks) -document - .querySelectorAll('[data-filter]') - .forEach((el) => el.addEventListener('click', filterForm)) document .querySelectorAll('a[href]') .forEach((el) => el.addEventListener('click', popupLinks)) +document + .querySelectorAll('[data-filter]') + .forEach((el) => el.addEventListener('click', filterForm)) document .querySelectorAll('#options-form input') .forEach((el) => el.addEventListener('change', saveOptions)) From deaef318de784dbfcaef474be2315c5de595df94 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:51:54 -0800 Subject: [PATCH 6/6] Update Text Breaks --- src/css/popup.css | 6 ++++++ src/html/options.html | 28 ++++++++++++---------------- src/html/popup.html | 2 +- src/js/options.js | 3 ++- src/js/popup.js | 2 +- 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/css/popup.css b/src/css/popup.css index d9d5997..2dfe457 100644 --- a/src/css/popup.css +++ b/src/css/popup.css @@ -8,3 +8,9 @@ input::placeholder, textarea::placeholder { text-align: center; } + +.dropdown-menu { + max-width: 100vw; + white-space: normal; + overflow: hidden; +} diff --git a/src/html/options.html b/src/html/options.html index cfc7b44..6709f50 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -40,10 +40,10 @@

Link Extractor

Keyboard Shortcuts
DescriptionShortcut
-
+ Reset to Default - +
Invalid Regex Flags.
Flags used when using a filter. @@ -79,8 +79,6 @@

Link Extractor

-
-
@@ -89,18 +87,16 @@

Link Extractor

-
- - - - - - - -
Saved Filters
- - Filter
-
+ + + + + + + +
Saved Filters
+ + Filter
All Links diff --git a/src/js/options.js b/src/js/options.js index bfa2721..5f5dc8e 100644 --- a/src/js/options.js +++ b/src/js/options.js @@ -110,7 +110,7 @@ function updateTable(data) { button.setAttribute('role', 'button') button.addEventListener('click', deleteHost) const cell1 = row.insertCell() - cell1.classList.add('text-center') + cell1.classList.add('text-center', 'align-middle') cell1.appendChild(button) const link = document.createElement('a') @@ -125,6 +125,7 @@ function updateTable(data) { ) link.setAttribute('role', 'button') const cell2 = row.insertCell() + cell2.classList.add('text-break') cell2.appendChild(link) }) } diff --git a/src/js/popup.js b/src/js/popup.js index a133ecf..da5c91a 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -59,7 +59,7 @@ function createFilterLink(number, value = '') { const a = document.createElement('a') a.textContent = value a.dataset.pattern = value - a.classList.add('dropdown-item', 'small') + a.classList.add('dropdown-item', 'small', 'text-break') a.setAttribute('role', 'button') a.addEventListener('click', filterForm) li.appendChild(a)