From cb316b97622fa79e3af661997f90a9b2dade4b37 Mon Sep 17 00:00:00 2001 From: Kairo Date: Fri, 26 Jun 2026 20:45:01 -0400 Subject: [PATCH] fffffff --- icons/border-48.png | Bin 0 -> 225 bytes icons/border-96.png | Bin 0 -> 225 bytes manifest.json | 34 ++++++++++++++++++++++++++++++++++ popup/index.html | 11 +++++++++++ style.css | 12 ++++++++++++ ug-copy.js | 23 +++++++++++++++++++++++ 6 files changed, 80 insertions(+) create mode 100644 icons/border-48.png create mode 100644 icons/border-96.png create mode 100644 manifest.json create mode 100644 popup/index.html create mode 100644 style.css create mode 100644 ug-copy.js diff --git a/icons/border-48.png b/icons/border-48.png new file mode 100644 index 0000000000000000000000000000000000000000..90687de26d71e91b7c82565772a7df470ae277a6 GIT binary patch literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmSQK*5Dp-y;YjHK@;M7UB8wRq zxP?KOkzv*x37}xJr;B4qM&sM7j(iOY0?rpNR{Ym~eNUieh4I>d+mEvHuIy!K@bZ41 zJ}N$e^&*#q7kxbW`Aeg?)>n&l0$ z8xrIlb~3+dVExT-N;ZLA=LS%o!8+lf-GRA$F@Klex9jiV-^0Mj@Zdh*s&d+mEvHuIy!K@bZ41 zJ}N$e^&*#q7kxbW`Aeg?)>n&l0$ z8xrIlb~3+dVExT-N;ZLA=LS%o!8+lf-GRA$F@Klex9jiV-^0Mj@Zdh*s&"], + "js": ["./ug-copy.js"] + } + ] +} diff --git a/popup/index.html b/popup/index.html new file mode 100644 index 0000000..e1e9d61 --- /dev/null +++ b/popup/index.html @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..b3bbdb9 --- /dev/null +++ b/style.css @@ -0,0 +1,12 @@ +.ug-copy-btn { + background-color: #e76486; + border-radius: 10px; + bottom: 0; + color: #292929; + cursor: pointer; + font-size: large; + font-weight: bold; + padding: 10px; + position: absolute; + right: 0; +} diff --git a/ug-copy.js b/ug-copy.js new file mode 100644 index 0000000..6f2b609 --- /dev/null +++ b/ug-copy.js @@ -0,0 +1,23 @@ +console.log("ug-copy running") +/* const ugCopyBtnId = 'ug-copy-btn' +const ugCopyBtnEl = document.createElement('button') +ugCopyBtnEl.id = ugCopyBtnId +ugCopyBtnEl.className = 'ug-copy-btn' +ugCopyBtnEl.type = 'button' +ugCopyBtnEl.innerHTML = "Copy Tab" */ +const copyTab = () => { + const clip = document.querySelector('pre').innerText + navigator.clipboard.writeText(clip).then( + () => {}, + (e) => { + console.log('ug-copy error;', e) + }, + ) +} +/* ugCopyBtnEl.addEventListener('click', copyTab) +document.body.appendChild(ugCopyBtnEl) + +const styleEl = document.createElement("link") +styleEl.rel = "stylesheet" +styleEl.setAttribute("href", "resource://ug-copy/style.css"); +document.getElementsByTagName("head")[0].appendChild(styleEl); */