rename to qr-clip
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "QR Clipboard",
|
"name": "QR Clip",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Screenshot the visible tab, decode any QR codes, and copy the result to the clipboard.",
|
"description": "Screenshot the visible tab, decode any QR codes, and copy the result to the clipboard.",
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "qr-clipboard@timothykim",
|
"id": "qr-clip@timothykim",
|
||||||
"strict_min_version": "115.0"
|
"strict_min_version": "115.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>QR Clipboard</h1>
|
<h1>QR Clip</h1>
|
||||||
<button id="scan">Scan</button>
|
<button id="scan">Scan</button>
|
||||||
<button id="clear">Clear All</button>
|
<button id="clear">Clear All</button>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// QR Clipboard
|
// QR Clip
|
||||||
//
|
//
|
||||||
// The popup shows a persistent log of every QR code ever decoded.
|
// The popup shows a persistent log of every QR code ever decoded.
|
||||||
// Clicking "Scan visible tab" captures the viewport, decodes all QR codes,
|
// Clicking "Scan visible tab" captures the viewport, decodes all QR codes,
|
||||||
@@ -187,12 +187,12 @@ async function scan() {
|
|||||||
const codes = decodeAll(imageData);
|
const codes = decodeAll(imageData);
|
||||||
|
|
||||||
if (codes.length === 0) {
|
if (codes.length === 0) {
|
||||||
console.log("[QR Clipboard] No QR codes found.");
|
console.log("[QR Clip] No QR codes found.");
|
||||||
setStatus("No QR codes found in the visible area.", "muted");
|
setStatus("No QR codes found in the visible area.", "muted");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`[QR Clipboard] Decoded ${codes.length} code(s):`, codes);
|
console.log(`[QR Clip] Decoded ${codes.length} code(s):`, codes);
|
||||||
|
|
||||||
const now = new Date().toISOString();
|
const now = new Date().toISOString();
|
||||||
const url = tab ? tab.url : "";
|
const url = tab ? tab.url : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user