Skip to content

Commit 562ffd4

Browse files
authored
Update for Mobile Devices (#77)
* Update for Mobile Devices * Minor Fixes * Fix linksForm Parsing Domains * Add Truncate and No Wrap Options * Add More Android Updates * Add SVG * Update Popup * Drag and Drop Updates * Update README.md * Catch Injection Errors
1 parent 4b87baa commit 562ffd4

15 files changed

Lines changed: 209 additions & 75 deletions

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,22 @@ Website: https://link-extractor.cssnr.com/
2626
* [Google Chrome Web Store](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
2727
* [Mozilla Firefox Add-ons](https://addons.mozilla.org/addon/link-extractor)
2828

29-
[![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
30-
[![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png)](https://addons.mozilla.org/addon/link-extractor)
31-
[![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
32-
[![Chromium](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chromium/chromium_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
33-
[![Brave](https://raw.githubusercontent.com/alrra/browser-logos/main/src/brave/brave_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
34-
[![Vivaldi](https://raw.githubusercontent.com/alrra/browser-logos/main/src/vivaldi/vivaldi_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
35-
[![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
29+
[![Chrome](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/brave_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
30+
[![Firefox](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/firefox_48.png)](https://addons.mozilla.org/addon/link-extractor)
31+
[![Edge](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/edge_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
32+
[![Chromium](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/chromium_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
33+
[![Brave](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/brave_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
34+
[![Vivaldi](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/vivaldi_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
35+
[![Opera](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/opera_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
36+
[![Kiwi](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/kiwi_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
3637

3738
All **Chromium** Based Browsers can install the extension from the
3839
[Chrome Web Store](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp).
3940

41+
Mobile browsers on are supported on
42+
[Firefox](https://addons.mozilla.org/addon/link-extractor) and
43+
[Kiwi](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp).
44+
4045
# Features
4146

4247
Please submit a [Feature Request](https://github.com/cssnr/link-extractor/discussions/new?category=feature-requests) for new features.
@@ -69,13 +74,14 @@ For any issues, bugs or concerns; please [Open an Issue](https://github.com/cssn
6974
7075
# Configuration
7176

72-
**Documentation: https://link-extractor.cssnr.com/docs/**
77+
**Full Documentation:** https://link-extractor.cssnr.com/docs/
7378

7479
You can pin the Addon by clicking the `Puzzle Piece`, find the Link Extractor icon, then;
7580
**Chrome,** click the `Pin` icon.
7681
**Firefox,** click the `Settings Wheel` and `Pin to Toolbar`.
7782

7883
To open the options, click on the icon (from above) then click `Open Options`.
84+
You can also access `Options` through the right-click context menu (enabled by default).
7985
Here you can set flags and add as many saved regular expressions as you would like for easy use later.
8086
Make sure to click`Save Options` when finished.
8187

assets/logo.svg

Lines changed: 6 additions & 0 deletions
Loading

src/css/links.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ a:visited {
1111
z-index: 10;
1212
}
1313

14-
.toast-container {
14+
#toast-container {
1515
max-width: 260px;
1616
width: 100%;
1717
}
18+
19+
td.truncate {
20+
overflow: hidden;
21+
text-overflow: ellipsis;
22+
}

src/css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ svg {
1111
bottom: 64px;
1212
right: 20px;
1313
display: none;
14-
z-index: 3;
14+
z-index: 6;
1515
}
1616

1717
#toast-container {
18-
z-index: 3;
18+
z-index: 5;
1919
}

src/css/options.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* CSS for options.html */
22

33
.card {
4-
min-width: 360px;
4+
min-width: 340px;
55
}
66

7-
.toast-container {
7+
#toast-container {
88
max-width: 320px;
99
width: 100%;
1010
}

src/css/popup.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* CSS for popup.html */
22

33
body {
4-
width: 340px;
4+
min-width: 340px;
55
}
66

77
input::placeholder,

src/html/lazy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title></title>
67
<link rel="stylesheet" type="text/css" href="../css/lazy.css">
78
</head>

src/html/links.html

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title>Link Extractor</title>
67
<link rel="icon" href="../images/logo16.png" sizes="any">
78
<link rel="stylesheet" type="text/css" href="../dist/bootstrap/bootstrap.min.css">
@@ -14,7 +15,7 @@
1415
</head>
1516
<body>
1617

17-
<div id="floating-links" class="position-fixed top-0 end-0 user-select-none">
18+
<div id="floating-links" class="position-fixed top-0 end-0 mt-1 me-2 user-select-none">
1819
<div class="row g-1 links d-none">
1920
<div class="col">
2021
<a href="#links"><span class="badge text-bg-success w-100">Links</span></a>
@@ -40,49 +41,60 @@ <h2 id="loading-message" class="user-select-none d-none">Loading...</h2>
4041
<div class="links d-none">
4142
<div class="user-select-none">
4243
<h2 id="links">Links <span class="badge bg-success-subtle"><span id="links-count">0</span>/<span id="links-total"></span></span></h2>
43-
<button id="copy-links" class="btn btn-sm btn-success me-1 mb-2 copy-links" type="button">
44+
<div class="mb-1">
45+
<button id="copy-links" class="btn btn-sm btn-success mb-1 me-1 copy-links" type="button">
4446
Copy Links <i class="fa-solid fa-copy ms-1"></i></button>
45-
<button id="down-links" class="btn btn-sm btn-outline-info download-file me-1 mb-2" type="button" data-target="#links-body" data-filename="links.txt">
46-
Download <i class="fa-solid fa-download m-1"></i></button>
47-
<button id="open-links" class="btn btn-sm btn-outline-warning open-in-tabs position-relative me-2 mb-2" type="button" data-target="#links-body">
47+
<button id="down-links" class="btn btn-sm btn-outline-info download-file mb-1 me-1" type="button" data-target="#links-body" data-filename="links.txt">
48+
Download <i class="fa-solid fa-download ms-1"></i></button>
49+
<button id="open-links" class="btn btn-sm btn-outline-warning open-in-tabs position-relative mb-1 me-2" type="button" data-target="#links-body">
4850
Open <i class="fa-solid fa-up-right-from-square ms-1"></i></button>
49-
<span class="d-inline-block me-1 mb-2">
50-
<kbd>C</kbd> <i class="fa-regular fa-keyboard"></i> <kbd>L</kbd> to Copy Links.</span>
51-
<span class="d-inline-block me-1 mt-md-1 float-end">
52-
<kbd>K</kbd> <i class="fa-regular fa-keyboard"></i> <kbd>Z</kbd> Keyboard Shortcuts.
53-
</span>
51+
</div>
52+
<div class="row keyboard">
53+
<div class="col-12 col-sm-6">
54+
<kbd>C</kbd> <i class="fa-regular fa-keyboard"></i> <kbd>L</kbd> to Copy Links.
55+
</div>
56+
<div class="col-12 col-sm-6 text-sm-end">
57+
<kbd>K</kbd> <i class="fa-regular fa-keyboard"></i> <kbd>Z</kbd> Keyboard Shortcuts.
58+
</div>
59+
</div>
5460
</div> <!-- links-buttons -->
55-
<table id="links-table" class="table table-sm table-striped table-hover table-responsive small" data-counter="links-count" style="width:100%">
56-
<thead class="">
57-
<tr>
58-
<th>Link</th>
59-
<th>Text</th>
60-
<th>Title</th>
61-
<th>Label</th>
62-
<th>Rel</th>
63-
<th>Target</th>
64-
</tr>
65-
</thead>
66-
<tbody id="links-body"></tbody>
67-
</table> <!-- links-table -->
61+
<div class="table-wrapper">
62+
<table id="links-table" class="table table-sm table-striped table-hover small w-100" data-counter="links-count">
63+
<thead class="">
64+
<tr>
65+
<th>Link</th>
66+
<th>Text</th>
67+
<th>Title</th>
68+
<th>Label</th>
69+
<th>Rel</th>
70+
<th>Target</th>
71+
</tr>
72+
</thead>
73+
<tbody id="links-body"></tbody>
74+
</table> <!-- links-table -->
75+
</div> <!-- table-wrapper -->
6876
</div> <!-- links -->
6977

70-
<div class="domains d-none">
78+
<div class="domains pt-2 d-none">
7179
<div class="user-select-none">
7280
<h2 id="domains">Domains <span class="badge bg-primary-subtle"><span id="domains-count">0</span>/<span id="domains-total"></span></span></h2>
73-
<button id="copy-domains" class="btn btn-sm btn-primary clip me-1 mb-2" type="button" data-clipboard-target="#domains-body" data-toast="Copied Domains">
81+
82+
<button id="copy-domains" class="btn btn-sm btn-primary clip mb-1 me-1" type="button" data-clipboard-target="#domains-body" data-toast="Copied Domains">
7483
Copy Domains <i class="fa-solid fa-copy ms-1"></i></button>
75-
<button id="down-domains" class="btn btn-sm btn-outline-info download-file me-1 mb-2" type="button" data-target="#domains-body" data-filename="domains.txt">
84+
<button id="down-domains" class="btn btn-sm btn-outline-info download-file mb-1 me-1" type="button" data-target="#domains-body" data-filename="domains.txt">
7685
Download <i class="fa-solid fa-download ms-1"></i></button>
77-
<button id="open-domains" class="btn btn-sm btn-outline-warning open-in-tabs position-relative me-2 mb-2" type="button" data-target="#domains-body">
86+
<button id="open-domains" class="btn btn-sm btn-outline-warning open-in-tabs position-relative mb-1 me-2" type="button" data-target="#domains-body">
7887
Open <i class="fa-solid fa-up-right-from-square ms-1"></i></button>
79-
<span class="d-inline-block me-1 mb-2">
88+
89+
<span class="d-inline-block me-1 keyboard">
8090
<kbd>D</kbd> <i class="fa-regular fa-keyboard"></i> <kbd>M</kbd> to Copy Domains.</span>
8191
</div> <!-- domains-buttons -->
82-
<table id="domains-table" class="table table-sm table-striped table-hover table-responsive small" data-counter="domains-count" style="width:100%">
83-
<thead class=""><tr><th>Domain</th></tr></thead>
84-
<tbody id="domains-body"></tbody>
85-
</table> <!-- domains-table -->
92+
<div class="table-wrapper">
93+
<table id="domains-table" class="table table-sm table-striped table-hover small w-100" data-counter="domains-count">
94+
<thead class=""><tr><th>Domain</th></tr></thead>
95+
<tbody id="domains-body"></tbody>
96+
</table> <!-- domains-table -->
97+
</div> <!-- table-wrapper -->
8698
</div> <!-- domains -->
8799
</div> <!-- container-fluid -->
88100

0 commit comments

Comments
 (0)