Skip to content

Commit 724f572

Browse files
committed
fix: firefox compatibility
1 parent 2d3d249 commit 724f572

File tree

15 files changed

+301
-211
lines changed

15 files changed

+301
-211
lines changed

_locales/en/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,17 @@
226226
},
227227
"welcome_footnote": {
228228
"message": "Your settings will be synced to your Chrome account automatically so you can enjoy the same great experience across all your devices."
229+
},
230+
"about": {
231+
"message": "About"
232+
},
233+
"homepage": {
234+
"message": "Extension's homepage"
235+
},
236+
"version": {
237+
"message": "Version"
238+
},
239+
"developer": {
240+
"message": "Author"
229241
}
230242
}
13.2 KB
Loading

docs/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta name="google-site-verification" content="lHnx1da1HDG8GdJsF8kVUQLEwOoPD5k5wfWTtEwhYAs" />
6+
<meta name="google-site-verification" content="lHnx1da1HDG8GdJsF8kVUQLEwOoPD5k5wfWTtEwhYAs">
77
<meta name="description" content="A clean, intuitive browser extension that gives you one-click access to all your bookmarks, reading lists, browsing history, and tab groups on the new tab page.">
88
<meta name="author" content="Gelencsér Gergő">
99
<title>Quick Access</title>
@@ -12,13 +12,13 @@
1212
<link rel="icon" href="icon-48.png" sizes="48x48" type="image/png">
1313
<link href="bootstrap.min.css" rel="stylesheet">
1414
<style>
15-
[role="dialog"]::backdrop {
15+
dialog::backdrop {
1616
backdrop-filter: blur(5px);
1717
opacity: 0;
1818
background: rgba(0, 0, 0, 0.35);
1919
transition: display 0.1s allow-discrete, overlay 0.1s allow-discrete, opacity 0.1s;
2020
}
21-
[role="dialog"][open]::backdrop {
21+
dialog[open]::backdrop {
2222
opacity: 1;
2323
}
2424
</style>
@@ -170,7 +170,7 @@ <h2 class="pb-2 border-bottom">Features</h2>
170170
<path fill-rule="evenodd" d="M16 8a8 8 0 0 1-7.022 7.94l1.902-7.098a3 3 0 0 0 .05-1.492A3 3 0 0 0 10.237 6h5.511A8 8 0 0 1 16 8M0 8a8 8 0 0 0 7.927 8l1.426-5.321a3 3 0 0 1-.723.255 3 3 0 0 1-1.743-.147 3 3 0 0 1-1.043-.7L.633 4.876A8 8 0 0 0 0 8m5.004-.167L1.108 3.936A8.003 8.003 0 0 1 15.418 5H8.066a3 3 0 0 0-1.252.243 2.99 2.99 0 0 0-1.81 2.59M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4"/>
171171
</svg>
172172
<div>
173-
<p>Works in Chrome, Edge, Brave, Opera, Vivaldi, ...</p>
173+
<p>Works in Firefox, Chrome, Edge, Opera, Brave, Vivaldi, ...</p>
174174
</div>
175175
</div>
176176
</div>
@@ -217,7 +217,7 @@ <h3 class="pt-5 mt-5 mb-4 display-6 lh-1 fw-bold"></h3>
217217
</div>
218218
</div>
219219

220-
<dialog id="modal" class="position-fixed border-0 p-0 mx-5 rounded-3 shadow-lg" role="dialog">
220+
<dialog id="modal" class="position-fixed border-0 p-0 mx-5 rounded-3 shadow-lg" role="dialog" aria-modal="true">
221221
<button type="button" class="btn-close position-absolute" style="top: 5px; right: 5px; width: 37px; height: 37px; z-index: 999; opacity: 0.7; background-color: white;" autofocus aria-label="close"></button>
222222
<div id="galery" class="carousel carousel-fade slide" data-bs-ride="carousel">
223223
<div class="carousel-indicators">
@@ -306,12 +306,12 @@ <h3 class="pt-5 mt-5 mb-4 display-6 lh-1 fw-bold"></h3>
306306

307307
function getBrowser() {
308308
const agent = navigator.userAgent;
309-
if ((agent.indexOf("Opera") || agent.indexOf('OPR')) != -1) return 'Opera';
309+
if (agent.indexOf("Firefox") != -1) return 'Firefox';
310+
if (agent.indexOf('OPR') != -1) return 'Opera';
311+
if (agent.indexOf('Opera') != -1) return 'Opera';
310312
if (agent.indexOf("Edg") != -1) return 'Edge';
311-
if (agent.indexOf("Vivaldi") != -1) return 'Vivaldi';
312-
if (agent.indexOf("Brave") != -1) return 'Brave';
313+
if (agent.indexOf("MSIE") != -1) return 'Edge';
313314
if (agent.indexOf("Chrome") != -1) return 'Chrome';
314-
if (agent.indexOf("Firefox") != -1) return 'Firefox';
315315
if (agent.indexOf("Safari") != -1) return 'Safari';
316316
return 'Browser';
317317
}

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ <h2 class="modal-title" data-i18n="settings"></h2>
173173
<span data-i18n="expert"></span>
174174
</a>
175175
</li>
176+
<li>
177+
<a href="#about">
178+
<span data-i18n="about"></span>
179+
</a>
180+
</li>
176181
</ul>
177182

178183
<fieldset id="generalSettings">
@@ -301,6 +306,9 @@ <h2 class="modal-title" data-i18n="settings"></h2>
301306
<textarea class="form-control" name="theme" rows="15" data-i18n-placeholder="custom_theme_placeholder"></textarea>
302307
</div>
303308
</fieldset>
309+
310+
<fieldset id="about">
311+
</fieldset>
304312
</div>
305313

306314
<div class="modal-footer">

0 commit comments

Comments
 (0)