Fig. B3

No. BK-B3 · Bookmarklets

QR from Selection Bookmarklet

Select text, click the bookmark, scan the code. Nothing leaves your browser.

Fitting: Drag to bookmarks barStocked since 11/2026

I keep needing to get a link or a chunk of text from my laptop to my phone. Emailing it to myself works, and so does pasting it into a notes app and waiting for the sync, but both are more steps than the job deserves.

So I made a bookmarklet. Select some text on a web page, click the bookmark, and a QR code will appear over the page. Point your phone at it and you're done.

The code is generated inside your browser, so the text isn't sent anywhere.

Features

  • Selection to QR in one click. It works on selected text in the page and inside text boxes.
  • Falls back to your clipboard. If nothing is selected, it'll use the text you last copied, and it labels the code so you can tell which text it holds.
  • Copy image. It puts the code on your clipboard as a picture, so you can paste it into a doc, a slide, or a message.
  • Download. It saves the code as qr-code.png in your downloads folder.
  • No install footprint. It's a bookmark, not an extension.

How to use it

  1. Show the bookmarks bar if it's hidden: Ctrl+Shift+B on Windows, Cmd+Shift+B on Mac.
  2. Drag the button at the top or bottom of this page onto the bookmarks bar.
  3. Select text on a web page, then click the bookmark.
  4. Scan the code, then press Esc or click outside the code to close it.

Use copied text instead

If nothing is selected when you click the bookmark, it'll make the QR code from the text you last copied.

This covers text the bookmarklet can't see as a selection, like text in a PDF or in another app. Copy the text, switch to a tab with a regular web page, then click the bookmark.

The first time you do this on a site, Chrome will ask whether that site can see text copied to the clipboard. Choose Allow, and Chrome will remember it for that site.

That permission belongs to the site, not only to the bookmark. A site you allow can read your clipboard itself while you have it open, so only allow it on sites you trust.

Limits

  • A QR code can hold about 2,900 characters. Shorter text makes a simpler code, and a simpler code scans faster.
  • It can't read text selected inside a frame that's embedded from a different site, because Chrome blocks that. Copy the text instead.
  • It doesn't run on Chrome's own pages (settings, the new tab page) or on PDFs opened in Chrome. For those, copy the text and click the bookmark on a regular web page.
  • Copied text only works on HTTPS pages, because Chrome doesn't let other pages read the clipboard. Selected text works on any page.
  • The "Copy image" button only appears on HTTPS pages, for the same reason. On other pages, right-click the code and choose "Copy image". "Download" works on any page.

I built it for Chrome on a computer. I haven't tested it in Safari or Firefox.

Install (alternate)

If drag-and-drop is awkward: copy everything inside the code block below, right-click the bookmarks bar and choose "Add page", give it a name, then paste the code into the URL field and save.

QR encoding by lean-qr, copyright 2021-2025 David Evans, MIT License.

Bookmarklet Code:

javascript:/*!%20QR%20encoder:%20lean-qr%20(c)%202021-2025%20David%20Evans,%20MIT%20License%20*/void%20(()=%3E%7Bvar%20xe=[.2,.375,.5555555555555556,.6666666666666666],we=(e,t)=%3Ei=%3E%7Blet%20o=4*e+i-4,s=%22*-04-39?2$%25%25$%25%25'$%25''%25'''%25')(%25'))%25(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18%3C+37%3C+4:%3C,4:E,5%3CA-7%3EC/8@F/:EH/%3CEK0=FM1?IP2@KS3BNV4DPY5FS%5C%5C6HV_6IXb7K[e8N%5Ei9Pam;Rdp%3CTgt%22.charCodeAt(o)-35,a=o%3E8?s:1,n=t/a%7C0,r=t%25a,c=a-r,h=o%3E8?n*xe[i]+(e%3E5)&-2:s,l=n-h;return%7Bt:c*l+r*l+r,o:[[c,l],[r,l+1]],i:h%7D%7D;var%20L=e=%3Enew%20Uint8Array(e),F=e=%3E%7Blet%20t=new%20Error(%60lean-qr%20error%20$%7Be%7D%60);throw%20t.code=e,t%7D,U=e=%3E%220123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ%20$%25*+-./:%22.indexOf(e),Q=e=%3Ee.charCodeAt(0),ce=(...e)=%3E(t,i)=%3Ee.forEach(o=%3Eo(t,i)),le=e=%3Et=%3E%7Bt.eci!==e&&(t.push(7,4),e%3C128?t.push(e,8):e%3C16384?t.push(32768%7Ce,16):t.push(12582912%7Ce,24),t.eci=e)%7D,G=e=%3E(t,i)=%3E%7Bt.push(4,4),t.push(e.length,8+8*(i%3E9)),e.forEach(o=%3Et.push(o,8))%7D,A=(e,t,i,o,s=(n,r)=%3Ei(n.length,r),a=o?n=%3Ece(le(o),e(n)):e)=%3E(a.test=t,a.l=i,a.est=s,a.eci=o&&[o],a),he=A(e=%3E(t,i)=%3E%7Bt.push(1,4),t.push(e.length,10+2*(i%3E26)+2*(i%3E9));let%20o=0;for(;o%3Ce.length-2;o+=3)t.push(+e.slice(o,o+3),10);o%3Ce.length-1?t.push(+e.slice(o),7):o%3Ce.length&&t.push(+e[o],4)%7D,e=%3E/[0-9]/.test(e),(e,t)=%3E14+2*(t%3E26)+2*(t%3E9)+10*e/3),de=A(e=%3E(t,i)=%3E%7Bt.push(2,4),t.push(e.length,9+2*(i%3E26)+2*(i%3E9));let%20o=0;for(;o%3Ce.length-1;o+=2)t.push(45*U(e[o])+U(e[o+1]),11);o%3Ce.length&&t.push(U(e[o]),6)%7D,e=%3EU(e)%3E=0,(e,t)=%3E13+2*(t%3E26)+2*(t%3E9)+5.5*e),R=A(e=%3EG([...e].map(Q)),e=%3EQ(e)%3C128,(e,t)=%3E12+8*(t%3E9)+8*e);R._=!0,R.u=!0;var%20J=A(R,e=%3EQ(e)%3C256,R.l,3);J._=!0;var%20re=new%20TextEncoder,Z=A(e=%3EG(re.encode(e)),()=%3E1,0,26,(e,t)=%3E12+8*(t%3E9)+8*re.encode(e).length);Z._=!0;var%20j=()=%3E%7Blet%20e=new%20Map,t=new%20TextDecoder(%22sjis%22),i=L(2);for(let%20o=0;o%3C7973;++o)i[0]=o/192+129+64*(o%3E5951),i[1]=o%25192+64,e.set(t.decode(i),o);return%20e.delete(%22%5CuFFFD%22),j=()=%3Ee,e%7D,ee=A(e=%3E(t,i)=%3E%7Bt.push(8,4),t.push(e.length,8+2*(i%3E26)+2*(i%3E9));for(let%20o%20of%20e)t.push(j().get(o),13)%7D,e=%3Ej().has(e),(e,t)=%3E12+2*(t%3E26)+2*(t%3E9)+13*e);ee._=!0;var%20fe=[he,de,R,J,ee,Z],N=%7Bauto:(e,%7Bmodes:t=fe%7D=%7B%7D)=%3E(i,o)=%3E%7Blet%20s=t.map((l,g)=%3E%7Blet%20m=new%20Map,b=(p,w)=%3E(m.has(p)%7C%7Cm.set(p,w(p,o)),m.get(p));return%7Bm:l,h:1%3C%3Cg,C:l.est(%22%22,o),S:l.l?(p,w)=%3Eb(w-p,l.l):(p,w)=%3Eb(e.slice(p,w),l.est)%7D%7D),a=[%7Bv:0%7D],n=0,r=0,c=-1;for(let%20l%20of[...e,%22%22])%7Blet%20g=0;if(l)for(let%20m%20of%20s)m.m.test(l)&&(g%7C=m.h);if(!l%7C%7Cg!==c)%7Bif(c!==-1)%7Blet%20m=new%20Set(a.map(p=%3Ep.D)),b=[];for(let%7Bm:p,C:w,S:x,h:T%7Dof%20s)if(c&T)%7Blet%20k=x(n,r);for(let%20I%20of%20p.eci??m)if(!p.u%7C%7C!I)%7Blet%20E;for(let%20C%20of%20a)if(C.D===I%7C%7Cp.eci)%7Blet%20d=C.m===p&&C.D===I,u=d?C.V:C,f=p._&&d?C.v+k-w:u.v+12*(u.D!==I)+(d?x(d?C.$:n,r):k);(!E%7C%7Cf%3CE.v)&&(E=%7B$:d?C.$:n,V:u,m:p,D:I,A:r,v:f%7D)%7DE&&b.push(E)%7D%7Da=b%7Dc=g,n=r%7Dr+=l.length%7Da.length%7C%7CF(5);let%20h=[];for(let%20l=a.reduce((g,m)=%3Em.v%3Cg.v?m:g);l.m;l=l.V)h.push(l.m(e.slice(l.$,l.A)));h.reverse().forEach(l=%3El(i,o))%7D,multi:ce,eci:le,bytes:G,numeric:he,alphaNumeric:de,ascii:R,iso8859_1:J,shift_jis:ee,utf8:Z%7D,be=()=%3E(%7BF:L(2956),I:0,push(e,t)%7Bfor(let%20i=t,o=8-(7&this.I);i%3E0;i-=o,o=8)this.F[this.I%3E%3E3]%7C=e%3C%3Co%3E%3Ei,this.I+=i%3Co?i:o%7D%7D),Y=(e,t=e*e,i=L(t))=%3E(%7Bsize:e,K:i,get:(o,s)=%3Eo%3E=0&&o%3Ce&&!!(1&i[s*e+o]),toString(%7Bon:o=%22%23%23%22,off:s=%22%20%20%22,lf:a=%60%0A%60,pad:n=4,padX:r=n,padY:c=n%7D=%7B%7D)%7Blet%20h=%22%22;for(let%20l=-c;l%3Ce+c;++l)%7Bfor(let%20g=-r;g%3Ce+r;++g)h+=this.get(g,l)?o:s;h+=a%7Dreturn%20h%7D,toImageData(o,%7Bon:s=[0,0,0],off:a=[0,0,0,0],pad:n=4,padX:r=n,padY:c=n%7D=%7B%7D)%7Blet%20h=e+2*r,l=e+2*c,g=o.createImageData(h,l),m=new%20Uint32Array(g.data.buffer);g.data.set([...s,255]);let%20b=m[0];g.data.set([...a,255]);let%20p=m[0];for(let%20w=0;w%3Cl;++w)for(let%20x=0;x%3Ch;++x)m[w*h+x]=this.get(x-r,w-c)?b:p;return%20g%7D,toCanvas(o,s)%7Blet%20a=o.getContext(%222d%22),n=this.toImageData(a,s);o.width=n.width,o.height=n.height,a.putImageData(n,0,0)%7D,toDataURL(%7Btype:o=%22image/png%22,scale:s=1,...a%7D=%7B%7D)%7Blet%20n=document.createElement(%22canvas%22),r=n.getContext(%222d%22),c=this.toImageData(r,a);return%20n.width=c.width*s,n.height=c.height*s,r.putImageData(c,0,0),r.imageSmoothingEnabled=!1,r.globalCompositeOperation=%22copy%22,r.drawImage(n,0,0,c.width,c.height,0,0,n.width,n.height),n.toDataURL(o,1)%7D%7D),V=[(e,t)=%3E1&(e%5Et),(e,t)=%3E1&t,e=%3Ee%253,(e,t)=%3E(e+t)%253,(e,t)=%3E1&(e/3%5Et%3E%3E1),(e,t)=%3E(e&t&1)+e*t%253,(e,t)=%3E(e&t)+e*t%253&1,(e,t)=%3E(e%5Et)+e*t%253&1],O=L(511);for(let%20e=0,t=1;e%3C255;t=2*t%5E285*(t%3E127))O[O[t+255]=e++]=t;var%20pe=e=%3EO[e%25255],ue=e=%3EO[e+255],ye=(e,t)=%3E%7Blet%20i=L(e.length+t.length-1);for(let%20o=0;o%3Ce.length;++o)for(let%20s=0;s%3Ct.length;++s)i[o+s]%5E=pe(e[o]+t[s]);return%20i.map(ue)%7D,ve=(e,t)=%3E%7Blet%20i=L(e.length+t.length-1);i.set(e,0);for(let%20o=0;o%3Ce.length;++o)if(i[o])%7Blet%20s=ue(i[o]);for(let%20a=0;a%3Ct.length;++a)i[o+a]%5E=pe(t[a]+s)%7Dreturn%20i.slice(e.length)%7D,W=[[0],[0,0]];for(let%20e=1;e%3C30;++e)W.push(ye(W[e],[0,e]));var%20Ce=(e,t)=%3E%7Blet%20i=[[],[]],o=0,s=0;for(let[n,r]of%20t.o)for(let%20c=0;c%3Cn;++c,o+=r)%7Blet%20h=e.slice(o,o+r);i[0].push(h),i[1].push(ve(h,W[t.i])),s+=r+t.i%7Dlet%20a=L(s);s=0;for(let%20n%20of%20i)for(let%20r=0,c=-1;c%3Cs;++r)%7Bc=s;for(let%20h%20of%20n)r%3Ch.length&&(a[s++]=h[r])%7Dreturn%20a%7D,ge=(e,t,i)=%3E%7Blet%20o=e%3C%3C=i;for(let%20s=134217728;s%3E%3E=1;)o&s&&(o%5E=t*(s%3E%3Ei));return%20o%7Ce%7D,ke=(%7Bsize:e,K:t%7D,i)=%3E%7Blet%20o=(n,r,c,h)=%3E%7Bfor(;c--%20%3E0;n+=e)t.fill(h,n,n+r)%7D,s=(n,r,c)=%3E%7Bfor(let%20h=0;h++%3C3;c-=2)o(r*e+n-(c%3E%3E1)*(e+1),c,c,2%7Ch)%7D,a=2*((e-13)/(1+(i/7%7C0))/2+.75%7C0);if(i%3E1)for(let%20n=e-7;n%3E8;n-=a)%7Bfor(let%20r=n;r%3E8;r-=a)s(n,r,5);n%3Ce-7&&s(n,6,5)%7Dif(i%3E6)for(let%20n=ge(i,7973,12),r=1;r%3C7;++r)for(let%20c=12;c--%20%3E9;n%3E%3E=1)t[r*e-c]=2%7C1&n;o(7,2,9,2),o(e-8,8,9,2);for(let%20n=0;n%3Ce;++n)t[6*e+n]=3%5E1&n;s(3,3,7),s(e-4,3,7);for(let%20n=0;n%3Ce;++n)for(let%20r=n;r%3Ce;++r)t[r*e+n]=t[n*e+r];t[(e-8)*e+8]=3%7D,Te=(%7Bsize:e,K:t%7D)=%3E%7Blet%20i=[];for(let%20o=e-2,s=e,a=-1;o%3E=0;o-=2)%7Bfor(o===5&&(o=4);s+=a,s!==-1&&s!==e;)%7Blet%20n=s*e+o;t[n+1]%7C%7Ci.push(n+1),t[n]%7C%7Ci.push(n)%7Da*=-1%7Dreturn%20i%7D,Ee=(%7BK:e%7D,t,i)=%3Et.forEach((o,s)=%3Ee[o]=i[s%3E%3E3]%3E%3E(7&~s)&1),Se=(%7Bsize:e,K:t%7D,i,o,s)=%3E%7Bfor(let%20n=0;n%3Ce;++n)for(let%20r=0;r%3Ce;++r)%7Blet%20c=n*e+r;t[c]%5E=!(i(r,n)%7C%7C2&t[c])%7Dlet%20a=21522%5Ege((1%5Es)%3C%3C3%7Co,1335,10);for(let%20n=0;n++%3C8;a%3E%3E=1)t[(n-(n%3C7))*e+8]=1&a,t[9*e-n]=1&a;for(let%20n=8;--n,a;a%3E%3E=1)t[8*e+n-(n%3C7)]=1&a,t[(e-n)*e+8]=1&a%7D,Ie=(%7Bsize:e,K:t%7D,i=0,o=0)=%3E%7Bfor(let%20s=0;s%3Ce;++s)%7Bfor(let%20a=0;a%3C2;++a)for(let%20n,r=0,c=0,h=2;r%3Ce;++r)%7Blet%20l=1&t[a?s*e+r:r*e+s];o+=l,c=(c%3E%3E1%7C2098176)&(3047517%5El-1),2049&c&&(i+=40),l%5Eh&&(n=0),h=l,i+=++n===5?3:n%3E5%7Dif(s)for(let%20a=e+s,n=5*t[s-1]%5Et[s];a%3Ce*e;a+=e)%7Blet%20r=5*t[a-1]%5Et[a];i+=3*!(1&(n%7Cr)%7C4&(n%5Er)),n=r%7D%7Dreturn%20i+10*(10*Math.abs(o/(e*e)-1)%7C0)%7D,ae=[],q=(e=F(1),%7BminCorrectionLevel:t=0,maxCorrectionLevel:i=3,minVersion:o=1,maxVersion:s=40,mask:a,trailer:n=60433,...r%7D=%7B%7D)=%3E%7Bi%3Ct&&F(3),s%3Co&&F(2),typeof%20e==%22string%22&&(e=N.auto(e,r));for(let%20c=o,h=0;c%3C=s;++c)%7Blet%20l=ae[c];l%7C%7C(ae[c]=l=Y(4*c+17),ke(l,c),l.p=Te(l));let%20g=we(c,l.p.length%3E%3E3);if(8*g(t).t%3Ch)continue;let%20m=be();e(m,c),h=m.I;for(let%20b=i;b%3E=t;--b)%7Blet%20p=g(b);if(8*p.t%3Ch)continue;for(m.I=h+11&-8;m.I%3C8*p.t;)m.push(n,16);let%20w=Y(l.size,l.K);return%20Ee(w,l.p,Ce(m.F,p)),(V[a]?[V[a]]:V).map((x,T)=%3E%7Blet%20k=Y(w.size,w.K);return%20Se(k,x,a??T,b),k.s=V[a]?0:Ie(k),k%7D).reduce((x,T)=%3ET.s%3Cx.s?T:x)%7D%7DF(4)%7D;q.with=(...e)=%3E(t,i)=%3Eq(t,%7Bmodes:[...fe,...e],...i%7D);(()=%3E%7Blet%20e=%22__qr_from_selection__%22,t=%22__qrFromSelectionClose%22,i=document;window[t]&&window[t]();let%20o=d=%3E%7Blet%20u=%22%22;try%7Bif(u=String(d.getSelection()%7C%7C%22%22),!u)%7Blet%20f=d.document.activeElement;f&&typeof%20f.selectionStart==%22number%22&&f.selectionEnd%3Ef.selectionStart&&(u=f.value.slice(f.selectionStart,f.selectionEnd))%7D%7Dcatch%7B%7Dif(u.trim())return%20u;for(let%20f=0;f%3Cd.frames.length;f++)try%7Blet%20y=o(d.frames[f]);if(y)return%20y%7Dcatch%7B%7Dreturn%22%22%7D,s=(d,u,f)=%3E%7Blet%20y=i.createElement(d);return%20y.style.cssText=u,f&&(y.textContent=f),y%7D,a=s(%22div%22,%22all:initial;display:block!important;position:fixed;inset:0;z-index:2147483647%22);a.id=e;let%20n=a.attachShadow(%7Bmode:%22open%22%7D),r=s(%22div%22,%22position:fixed;inset:0;display:flex;overflow:auto;background:rgba(0,0,0,.65);font:14px/1.4%20system-ui,sans-serif;color:%23222%22),c=s(%22div%22,%22margin:auto;background:%23fff;padding:16px;border-radius:12px;box-shadow:0%208px%2040px%20rgba(0,0,0,.5);text-align:center;box-sizing:border-box%22);n.append(r),r.append(c);let%20h=!1,l,g=()=%3E%7Bh=!0,clearTimeout(l),a.remove(),removeEventListener(%22keydown%22,m,!0),window[t]===g&&delete%20window[t]%7D;window[t]=g;let%20m=d=%3E%7Bd.key===%22Escape%22&&(d.stopPropagation(),g())%7D;addEventListener(%22keydown%22,m,!0),r.onmousedown=d=%3Ed.preventDefault(),r.onclick=d=%3E%7Bd.target===r&&d.clientX%3Cr.clientWidth&&d.clientY%3Cr.clientHeight&&g()%7D;let%20b=%22margin-top:8px;font-size:12px;color:%23777%22,p=%22padding:8px%2016px;border:0;border-radius:8px;background:%231a56db;color:%23fff;font:600%2014px%20system-ui,sans-serif;cursor:pointer%22,w=(...d)=%3E%7Bh%7C%7C(c.replaceChildren(...d,s(%22div%22,b,%22Esc%20or%20click%20outside%20to%20close%22)),a.isConnected%7C%7C(i.body%7C%7Ci.documentElement).append(a))%7D,x=(d,u,f)=%3E%7Blet%20y=[s(%22div%22,%22padding:8px%2012px;max-width:min(340px,75vw)%22,d)];if(u)%7Blet%20D=s(%22button%22,p+%22;margin:6px%200%204px%22,u);D.onclick=f,y.push(D)%7Dw(...y)%7D,T=(d,u)=%3E%7Blet%20f;try%7Bf=q(/%5E[%5Cx00-%5Cx7F]*$/.test(d)?N.auto(d,%7Bmodes:[N.numeric,N.alphaNumeric,N.ascii]%7D):N.bytes(new%20TextEncoder().encode(d)))%7Dcatch%7B%7Dif(!f)return%20x((u?%22The%20text%20on%20your%20clipboard%22:%22That%20selection%22)+%22%20is%20too%20long%20for%20a%20QR%20code%20(%22+d.length+%22%20characters).%20The%20limit%20is%20roughly%202,900.%20%22+(u?%22Select%20or%20copy%20less%20text%22:%22Select%20less%20text%22)+%22%20and%20try%20again.%22);let%20y=4,D=f.size+y*2,te=navigator.clipboard&&navigator.clipboard.write&&window.ClipboardItem,me=Math.min(innerWidth*.9-32,innerHeight*.9-140-(u?26:0)-(te?0:26)),$=devicePixelRatio%7C%7C1,B=Math.max(Math.ceil($*1.5),Math.min(Math.floor($*12),Math.floor(me*$/D))),X=D*B/$,oe=(v,_)=%3E%7Blet%20S=s(%22canvas%22,_%7C%7C%22%22);S.width=S.height=D*v;let%20M=S.getContext(%222d%22);M.fillStyle=%22%23fff%22,M.fillRect(0,0,S.width,S.height),M.fillStyle=%22%23000%22;for(let%20K=0;K%3Cf.size;K++)for(let%20P=0;P%3Cf.size;P++)f.get(P,K)&&M.fillRect((P+y)*v,(K+y)*v,v,v);return%20S%7D,z=[oe(B,%22display:block;margin:0%20auto;image-rendering:pixelated;width:%22+X+%22px;height:%22+X+%22px%22),s(%22div%22,%22margin:8px%20auto%200;max-width:%22+Math.max(240,X)+%22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis%22,d)];u&&z.push(s(%22div%22,b,%22Nothing%20was%20selected,%20so%20this%20is%20the%20text%20from%20your%20clipboard.%22));let%20ne=()=%3Eoe(Math.max(B,Math.ceil(1e3/D))),se='ight-click%20the%20code%20and%20choose%20%22Copy%20image%22.',H=s(%22div%22,%22margin-top:12px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap%22);if(te)%7Blet%20v=%22Copy%20image%22,_=s(%22button%22,p,v),S,M=()=%3E%7B_.remove(),H.before(s(%22div%22,b,%22Chrome%20didn't%20allow%20the%20copy.%20R%22+se))%7D;_.onclick=()=%3E%7Btry%7Bnavigator.clipboard.write([new%20ClipboardItem(%7B%22image/png%22:new%20Promise(K=%3Ene().toBlob(K,%22image/png%22))%7D)]).then(()=%3E%7B_.textContent=%22Copied%22,clearTimeout(S),S=setTimeout(()=%3E_.textContent=v,2500)%7D,M)%7Dcatch%7BM()%7D%7D,H.append(_)%7Delse%20z.push(s(%22div%22,b,%22To%20copy%20the%20code%20as%20an%20image:%20r%22+se));let%20ie=s(%22button%22,p,%22Download%22);ie.onclick=()=%3E%7Blet%20v=s(%22a%22,%22%22);v.href=ne().toDataURL(%22image/png%22),v.download=%22qr-code.png%22,v.click()%7D,H.append(ie),z.push(H),w(...z)%7D,k=0,I=0,E=()=%3E%7Blet%20d=navigator.clipboard;if(!d%7C%7C!d.readText)return%20x(%22Nothing%20is%20selected,%20and%20Chrome%20won't%20let%20this%20page%20read%20the%20clipboard%20because%20the%20page%20isn't%20HTTPS.%20Select%20some%20text,%20then%20click%20the%20bookmark%20again.%22);if(!i.hasFocus()&&I++%3C20)%7Bl=setTimeout(E,50);return%7Dk++,clearTimeout(l),l=setTimeout(()=%3Ex(%22Reading%20your%20clipboard.%20If%20Chrome%20asks%20for%20permission,%20choose%20Allow.%22),400),d.readText().then(u=%3E%7BclearTimeout(l),u=u.trim(),u?T(u,!0):x(%22Nothing%20is%20selected,%20and%20your%20clipboard%20doesn't%20hold%20any%20text.%20Select%20or%20copy%20some%20text,%20then%20click%20the%20bookmark%20again.%22)%7D,async()=%3E%7BclearTimeout(l);let%20u=%22%22;try%7Bu=(await%20navigator.permissions.query(%7Bname:%22clipboard-read%22%7D)).state%7Dcatch%7B%7Du===%22denied%22?x(%22Nothing%20is%20selected,%20and%20clipboard%20access%20is%20blocked%20for%20this%20site.%20Select%20some%20text%20instead,%20or%20click%20the%20clipboard%20icon%20at%20the%20right%20end%20of%20the%20address%20bar%20to%20allow%20it.%22):k%3C2?x(%22Nothing%20is%20selected.%20To%20use%20the%20text%20you%20last%20copied,%20click%20the%20button.%22,%22Use%20copied%20text%22,E):x(%22Chrome%20didn't%20allow%20this%20page%20to%20read%20the%20clipboard.%20Select%20some%20text,%20then%20click%20the%20bookmark%20again.%22)%7D)%7D,C=o(window).trim();C?T(C,!1):E()%7D)();%7D)();