--- title: "02-有意思的书签" created: 2025-12-06 tags: - 博客 --- # 有意思的书签 Bookmarklet是一种使用「书签」运行JS代码的简单浏览器小程序。 **使用方法**:用鼠标点击对应的链接不放,拖动到浏览器的书签栏即可。 > 可直接点击文中链接试用 ## Bookmarklet合集 ### 实用工具 1. [生成二维码](javascript:%28function%28%29%7B%28function%20a%28b,c,e%29%7Bfunction%20f%28d,k%29%7Bif%28!c[d]%29%7Bif%28!b[d]%29%7Bvar%20i%3Dtypeof%20require%3D%3D'function'%26%26require;if%28!k%26%26i%29return%20i%28d,!0%29;if%28g%29return%20g%28d,!0%29;var%20j%3Dnew%20Error%28'Cannot%20find%20module%20\''+d+'\''%29;throw%20j.code%3D'MODULE_NOT_FOUND',j%7Dvar%20h%3Dc[d]%3D%7Bexports:%7B%7D%7D;b[d][0].call%28h.exports,function%28c%29%7Bvar%20a%3Db[d][1][c];return%20f%28a%3Fa:c%29%7D,h,h.exports,a,b,c,e%29%7Dreturn%20c[d].exports%7Dvar%20g%3Dtypeof%20require%3D%3D'function'%26%26require;for%28var%20d%3D0;d%3Ce.length;d++%29f%28e[d]%29;return%20f%7D%28%7B1:[function%28h,j,i%29%7B'use%20strict';var%20e%3Dh%28'qrcode-generator'%29;var%20f%3D'L';function%20g%28c%29%7Bvar%20a%3Dvoid%200;var%20b%3D1;while%28b%3C%3D40%29%7Ba%3De%28b,f%29;a.addData%28c%29;try%7Ba.make%28%29;return%20a.createImgTag%288,8%2A4%29.match%28/src%3D%22%28.%2A%3F%29%22/%29[1]%7Dcatch%28a%29%7Bb+%3D1%7D%7D%7Dvar%20a%3Ddocument.createElement%28'div'%29;a.style.position%3D'fixed';a.style.zIndex%3D2147483647;a.style.top%3D0;a.style.left%3D0;a.style.width%3D'100%25';a.style.height%3D'100%25';a.style.backgroundColor%3D'rgba%280,0,0,%200.6%29';a.style.cursor%3D'pointer';a.addEventListener%28'click',function%28b%29%7Bif%28b.target%3D%3D%3Db.currentTarget%29%7Ba.parentNode.removeChild%28a%29%7D%7D,false%29;var%20c%3Ddocument.createElement%28'div'%29;c.style.position%3D'absolute';c.style.top%3D'25%25';c.style.left%3D'50%25';c.style.transform%3D'translate%28-50%25,%20-50%25%29';c.style.cursor%3D'auto';a.appendChild%28c%29;var%20d%3Ddocument.createElement%28'img'%29;d.src%3Dg%28location.href%29;d.style.display%3D'block';c.appendChild%28d%29;var%20b%3Ddocument.createElement%28'input'%29;b.type%3D'text';b.value%3Dlocation.href;b.style.display%3D'block';b.style.width%3D'100%25';b.style.fontSize%3D'14px';b.style.boxSizing%3D'border-box';b.addEventListener%28'input',function%28a%29%7Bd.src%3Dg%28b.value%29%7D,false%29;c.appendChild%28b%29;document.body.appendChild%28a%29%7D,%7B'qrcode-generator':2%7D],2:[function%28d,b,c%29%7Bvar%20a%3Dfunction%28%29%7Bvar%20g%3Dfunction%28A,B%29%7Bvar%20t%3D236;var%20u%3D17;var%20g%3DA;var%20n%3De[B];var%20a%3Dnull;var%20b%3D0;var%20h%3Dnull;var%20o%3Dnew%20Array;var%20c%3D%7B%7D;var%20p%3Dfunction%28c,d%29%7Bb%3Dg%2A4+17;a%3Dfunction%28b%29%7Bvar%20c%3Dnew%20Array%28b%29;for%28var%20a%3D0;a%3Cb;a+%3D1%29%7Bc[a]%3Dnew%20Array%28b%29;for%28var%20d%3D0;d%3Cb;d+%3D1%29%7Bc[a][d]%3Dnull%7D%7Dreturn%20c%7D%28b%29;m%280,0%29;m%28b-7,0%29;m%280,b-7%29;x%28%29;w%28%29;z%28c,d%29;if%28g%3E%3D7%29%7By%28c%29%7Dif%28h%3D%3Dnull%29%7Bh%3Dq%28g,n,o%29%7Ds%28h,d%29%7D;var%20m%3Dfunction%28e,f%29%7Bfor%28var%20c%3D-1;c%3C%3D7;c+%3D1%29%7Bif%28e+c%3C%3D-1||b%3C%3De+c%29continue;for%28var%20d%3D-1;d%3C%3D7;d+%3D1%29%7Bif%28f+d%3C%3D-1||b%3C%3Df+d%29continue;if%280%3C%3Dc%26%26c%3C%3D6%26%26%28d%3D%3D0||d%3D%3D6%29||0%3C%3Dd%26%26d%3C%3D6%26%26%28c%3D%3D0||c%3D%3D6%29||2%3C%3Dc%26%26c%3C%3D4%26%262%3C%3Dd%26%26d%3C%3D4%29%7Ba[e+c][f+d]%3Dtrue%7Delse%7Ba[e+c][f+d]%3Dfalse%7D%7D%7D%7D;var%20v%3Dfunction%28%29%7Bvar%20b%3D0;var%20e%3D0;for%28var%20a%3D0;a%3C8;a+%3D1%29%7Bp%28true,a%29;var%20f%3Dd.getLostPoint%28c%29;if%28a%3D%3D0||b%3Ef%29%7Bb%3Df;e%3Da%7D%7Dreturn%20e%7D;var%20w%3Dfunction%28%29%7Bfor%28var%20c%3D8;c%3Cb-8;c+%3D1%29%7Bif%28a[c][6]!%3Dnull%29%7Bcontinue%7Da[c][6]%3Dc%252%3D%3D0%7Dfor%28var%20d%3D8;d%3Cb-8;d+%3D1%29%7Bif%28a[6][d]!%3Dnull%29%7Bcontinue%7Da[6][d]%3Dd%252%3D%3D0%7D%7D;var%20x%3Dfunction%28%29%7Bvar%20e%3Dd.getPatternPosition%28g%29;for%28var%20f%3D0;f%3Ce.length;f+%3D1%29%7Bfor%28var%20h%3D0;h%3Ce.length;h+%3D1%29%7Bvar%20i%3De[f];var%20j%3De[h];if%28a[i][j]!%3Dnull%29%7Bcontinue%7Dfor%28var%20b%3D-2;b%3C%3D2;b+%3D1%29%7Bfor%28var%20c%3D-2;c%3C%3D2;c+%3D1%29%7Bif%28b%3D%3D-2||b%3D%3D2||c%3D%3D-2||c%3D%3D2||b%3D%3D0%26%26c%3D%3D0%29%7Ba[i+b][j+c]%3Dtrue%7Delse%7Ba[i+b][j+c]%3Dfalse%7D%7D%7D%7D%7D%7D;var%20y%3Dfunction%28h%29%7Bvar%20f%3Dd.getBCHTypeNumber%28g%29;for%28var%20c%3D0;c%3C18;c+%3D1%29%7Bvar%20e%3D!h%26%26%28f%3E%3Ec%261%29%3D%3D1;a[Math.floor%28c/3%29][c%253+b-8-3]%3De%7Dfor%28var%20c%3D0;c%3C18;c+%3D1%29%7Bvar%20e%3D!h%26%26%28f%3E%3Ec%261%29%3D%3D1;a[c%253+b-8-3][Math.floor%28c/3%29]%3De%7D%7D;var%20z%3Dfunction%28f,i%29%7Bvar%20h%3Dn%3C%3C3|i;var%20g%3Dd.getBCHTypeInfo%28h%29;for%28var%20c%3D0;c%3C15;c+%3D1%29%7Bvar%20e%3D!f%26%26%28g%3E%3Ec%261%29%3D%3D1;if%28c%3C6%29%7Ba[c][8]%3De%7Delse%20if%28c%3C8%29%7Ba[c+1][8]%3De%7Delse%7Ba[b-15+c][8]%3De%7D%7Dfor%28var%20c%3D0;c%3C15;c+%3D1%29%7Bvar%20e%3D!f%26%26%28g%3E%3Ec%261%29%3D%3D1;if%28c%3C8%29%7Ba[8][b-c-1]%3De%7Delse%20if%28c%3C9%29%7Ba[8][15-c-1+1]%3De%7Delse%7Ba[8][15-c-1]%3De%7D%7Da[b-8][8]%3D!f%7D;var%20s%3Dfunction%28m,n%29%7Bvar%20h%3D-1;var%20c%3Db-1;var%20i%3D7;var%20j%3D0;var%20k%3Dd.getMaskFunction%28n%29;for%28var%20e%3Db-1;e%3E0;e-%3D2%29%7Bif%28e%3D%3D6%29e-%3D1;while%28true%29%7Bfor%28var%20f%3D0;f%3C2;f+%3D1%29%7Bif%28a[c][e-f]%3D%3Dnull%29%7Bvar%20g%3Dfalse;if%28j%3Cm.length%29%7Bg%3D%28m[j]%3E%3E%3Ei%261%29%3D%3D1%7Dvar%20l%3Dk%28c,e-f%29;if%28l%29%7Bg%3D!g%7Da[c][e-f]%3Dg;i-%3D1;if%28i%3D%3D-1%29%7Bj+%3D1;i%3D7%7D%7D%7Dc+%3Dh;if%28c%3C0||b%3C%3Dc%29%7Bc-%3Dh;h%3D-h;break%7D%7D%7D%7D;var%20r%3Dfunction%28t,c%29%7Bvar%20o%3D0;var%20m%3D0;var%20j%3D0;var%20g%3Dnew%20Array%28c.length%29;var%20e%3Dnew%20Array%28c.length%29;for%28var%20b%3D0;b%3Cc.length;b+%3D1%29%7Bvar%20h%3Dc[b].dataCount;var%20n%3Dc[b].totalCount-h;m%3DMath.max%28m,h%29;j%3DMath.max%28j,n%29;g[b]%3Dnew%20Array%28h%29;for%28var%20a%3D0;a%3Cg[b].length;a+%3D1%29%7Bg[b][a]%3D255%26t.getBuffer%28%29[a+o]%7Do+%3Dh;var%20l%3Dd.getErrorCorrectPolynomial%28n%29;var%20s%3Df%28g[b],l.getLength%28%29-1%29;var%20p%3Ds.mod%28l%29;e[b]%3Dnew%20Array%28l.getLength%28%29-1%29;for%28var%20a%3D0;a%3Ce[b].length;a+%3D1%29%7Bvar%20q%3Da+p.getLength%28%29-e[b].length;e[b][a]%3Dq%3E%3D0%3Fp.getAt%28q%29:0%7D%7Dvar%20r%3D0;for%28var%20a%3D0;a%3Cc.length;a+%3D1%29%7Br+%3Dc[a].totalCount%7Dvar%20k%3Dnew%20Array%28r%29;var%20i%3D0;for%28var%20a%3D0;a%3Cm;a+%3D1%29%7Bfor%28var%20b%3D0;b%3Cc.length;b+%3D1%29%7Bif%28a%3Cg[b].length%29%7Bk[i]%3Dg[b][a];i+%3D1%7D%7D%7Dfor%28var%20a%3D0;a%3Cj;a+%3D1%29%7Bfor%28var%20b%3D0;b%3Cc.length;b+%3D1%29%7Bif%28a%3Ce[b].length%29%7Bk[i]%3De[b][a];i+%3D1%7D%7D%7Dreturn%20k%7D;var%20q%3Dfunction%28g,k,h%29%7Bvar%20f%3Di.getRSBlocks%28g,k%29;var%20a%3Dj%28%29;for%28var%20b%3D0;b%3Ch.length;b+%3D1%29%7Bvar%20e%3Dh[b];a.put%28e.getMode%28%29,4%29;a.put%28e.getLength%28%29,d.getLengthInBits%28e.getMode%28%29,g%29%29;e.write%28a%29%7Dvar%20c%3D0;for%28var%20b%3D0;b%3Cf.length;b+%3D1%29%7Bc+%3Df[b].dataCount%7Dif%28a.getLengthInBits%28%29%3Ec%2A8%29%7Bthrow%20new%20Error%28'code%20length%20overflow.%20%28'+a.getLengthInBits%28%29+'%3E'+c%2A8+'%29'%29%7Dif%28a.getLengthInBits%28%29+4%3C%3Dc%2A8%29%7Ba.put%280,4%29%7Dwhile%28a.getLengthInBits%28%29%258!%3D0%29%7Ba.putBit%28false%29%7Dwhile%28true%29%7Bif%28a.getLengthInBits%28%29%3E%3Dc%2A8%29%7Bbreak%7Da.put%28t,8%29;if%28a.getLengthInBits%28%29%3E%3Dc%2A8%29%7Bbreak%7Da.put%28u,8%29%7Dreturn%20r%28a,f%29%7D;c.addData%3Dfunction%28b%29%7Bvar%20a%3Dk%28b%29;o.push%28a%29;h%3Dnull%7D;c.isDark%3Dfunction%28c,d%29%7Bif%28c%3C0||b%3C%3Dc||d%3C0||b%3C%3Dd%29%7Bthrow%20new%20Error%28c+','+d%29%7Dreturn%20a[c][d]%7D;c.getModuleCount%3Dfunction%28%29%7Breturn%20b%7D;c.make%3Dfunction%28%29%7Bp%28false,v%28%29%29%7D;c.createTableTag%3Dfunction%28b,d%29%7Bb%3Db||2;d%3Dtypeof%20d%3D%3D'undefined'%3Fb%2A4:d;var%20a%3D'';a+%3D'%3Ctable%20style%3D%22';a+%3D'%20border-width:%200px;%20border-style:%20none;';a+%3D'%20border-collapse:%20collapse;';a+%3D'%20padding:%200px;%20margin:%20'+d+'px;';a+%3D'%22%3E';a+%3D'%3Ctbody%3E';for%28var%20e%3D0;e%3Cc.getModuleCount%28%29;e+%3D1%29%7Ba+%3D'%3Ctr%3E';for%28var%20f%3D0;f%3Cc.getModuleCount%28%29;f+%3D1%29%7Ba+%3D'%3Ctd%20style%3D%22';a+%3D'%20border-width:%200px;%20border-style:%20none;';a+%3D'%20border-collapse:%20collapse;';a+%3D'%20padding:%200px;%20margin:%200px;';a+%3D'%20width:%20'+b+'px;';a+%3D'%20height:%20'+b+'px;';a+%3D'%20background-color:%20';a+%3Dc.isDark%28e,f%29%3F'%23000000':'%23ffffff';a+%3D';';a+%3D'%22/%3E'%7Da+%3D'%3C/tr%3E'%7Da+%3D'%3C/tbody%3E';a+%3D'%3C/table%3E';return%20a%7D;c.createSvgTag%3Dfunction%28b,d%29%7Bb%3Db||2;d%3Dtypeof%20d%3D%3D'undefined'%3Fb%2A4:d;var%20g%3Dc.getModuleCount%28%29%2Ab+d%2A2;var%20e,h,f,i,a%3D'',j;j%3D'l'+b+',0%200,'+b+'%20-'+b+',0%200,-'+b+'z%20';a+%3D'%3Csvg';a+%3D'%20width%3D%22'+g+'px%22';a+%3D'%20height%3D%22'+g+'px%22';a+%3D'%20xmlns%3D%22http://www.w3.org/2000/svg%22';a+%3D'%3E';a+%3D'%3Cpath%20d%3D%22';for%28f%3D0;f%3Cc.getModuleCount%28%29;f+%3D1%29%7Bi%3Df%2Ab+d;for%28e%3D0;e%3Cc.getModuleCount%28%29;e+%3D1%29%7Bif%28c.isDark%28f,e%29%29%7Bh%3De%2Ab+d;a+%3D'M'+h+','+i+j%7D%7D%7Da+%3D'%22%20stroke%3D%22transparent%22%20fill%3D%22black%22/%3E';a+%3D'%3C/svg%3E';return%20a%7D;c.createImgTag%3Dfunction%28a,b%29%7Ba%3Da||2;b%3Dtypeof%20b%3D%3D'undefined'%3Fa%2A4:b;var%20e%3Dc.getModuleCount%28%29%2Aa+b%2A2;var%20d%3Db;var%20f%3De-b;return%20l%28e,e,function%28b,e%29%7Bif%28d%3C%3Db%26%26b%3Cf%26%26d%3C%3De%26%26e%3Cf%29%7Bvar%20g%3DMath.floor%28%28b-d%29/a%29;var%20h%3DMath.floor%28%28e-d%29/a%29;return%20c.isDark%28h,g%29%3F0:1%7Delse%7Breturn%201%7D%7D%29%7D;return%20c%7D;g.stringToBytes%3Dfunction%28c%29%7Bvar%20b%3Dnew%20Array;for%28var%20a%3D0;a%3Cc.length;a+%3D1%29%7Bvar%20d%3Dc.charCodeAt%28a%29;b.push%28d%26255%29%7Dreturn%20b%7D;g.createStringToBytes%3Dfunction%28d,a%29%7Bvar%20b%3Dfunction%28%29%7Bvar%20g%3Dn%28d%29;var%20b%3Dfunction%28%29%7Bvar%20a%3Dg.read%28%29;if%28a%3D%3D-1%29throw%20new%20Error;return%20a%7D;var%20c%3D0;var%20f%3D%7B%7D;while%28true%29%7Bvar%20e%3Dg.read%28%29;if%28e%3D%3D-1%29break;var%20i%3Db%28%29;var%20j%3Db%28%29;var%20k%3Db%28%29;var%20l%3DString.fromCharCode%28e%3C%3C8|i%29;var%20h%3Dj%3C%3C8|k;f[l]%3Dh;c+%3D1%7Dif%28c!%3Da%29%7Bthrow%20new%20Error%28c+'%20!%3D%20'+a%29%7Dreturn%20f%7D%28%29;var%20c%3D'%3F'.charCodeAt%280%29;return%20function%28f%29%7Bvar%20a%3Dnew%20Array;for%28var%20e%3D0;e%3Cf.length;e+%3D1%29%7Bvar%20g%3Df.charCodeAt%28e%29;if%28g%3C128%29%7Ba.push%28g%29%7Delse%7Bvar%20d%3Db[f.charAt%28e%29];if%28typeof%20d%3D%3D'number'%29%7Bif%28%28d%26255%29%3D%3Dd%29%7Ba.push%28d%29%7Delse%7Ba.push%28d%3E%3E%3E8%29;a.push%28d%26255%29%7D%7Delse%7Ba.push%28c%29%7D%7D%7Dreturn%20a%7D%7D;var%20a%3D%7BMODE_NUMBER:1%3C%3C0,MODE_ALPHA_NUM:1%3C%3C1,MODE_8BIT_BYTE:1%3C%3C2,MODE_KANJI:1%3C%3C3%7D;var%20e%3D%7BL:1,M:0,Q:3,H:2%7D;var%20b%3D%7BPATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7%7D;var%20d%3Dfunction%28%29%7Bvar%20i%3D[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]];var%20g%3D1%3C%3C10|1%3C%3C8|1%3C%3C5|1%3C%3C4|1%3C%3C2|1%3C%3C1|1%3C%3C0;var%20h%3D1%3C%3C12|1%3C%3C11|1%3C%3C10|1%3C%3C9|1%3C%3C8|1%3C%3C5|1%3C%3C2|1%3C%3C0;var%20j%3D1%3C%3C14|1%3C%3C12|1%3C%3C10|1%3C%3C4|1%3C%3C1;var%20d%3D%7B%7D;var%20e%3Dfunction%28b%29%7Bvar%20a%3D0;while%28b!%3D0%29%7Ba+%3D1;b%3E%3E%3E%3D1%7Dreturn%20a%7D;d.getBCHTypeInfo%3Dfunction%28b%29%7Bvar%20a%3Db%3C%3C10;while%28e%28a%29-e%28g%29%3E%3D0%29%7Ba^%3Dg%3C%3Ce%28a%29-e%28g%29%7Dreturn%28b%3C%3C10|a%29^j%7D;d.getBCHTypeNumber%3Dfunction%28b%29%7Bvar%20a%3Db%3C%3C12;while%28e%28a%29-e%28h%29%3E%3D0%29%7Ba^%3Dh%3C%3Ce%28a%29-e%28h%29%7Dreturn%20b%3C%3C12|a%7D;d.getPatternPosition%3Dfunction%28a%29%7Breturn%20i[a-1]%7D;d.getMaskFunction%3Dfunction%28a%29%7Bswitch%28a%29%7Bcase%20b.PATTERN000:return%20function%28a,b%29%7Breturn%28a+b%29%252%3D%3D0%7D;case%20b.PATTERN001:return%20function%28a,b%29%7Breturn%20a%252%3D%3D0%7D;case%20b.PATTERN010:return%20function%28b,a%29%7Breturn%20a%253%3D%3D0%7D;case%20b.PATTERN011:return%20function%28a,b%29%7Breturn%28a+b%29%253%3D%3D0%7D;case%20b.PATTERN100:return%20function%28a,b%29%7Breturn%28Math.floor%28a/2%29+Math.floor%28b/3%29%29%252%3D%3D0%7D;case%20b.PATTERN101:return%20function%28a,b%29%7Breturn%20a%2Ab%252+a%2Ab%253%3D%3D0%7D;case%20b.PATTERN110:return%20function%28a,b%29%7Breturn%28a%2Ab%252+a%2Ab%253%29%252%3D%3D0%7D;case%20b.PATTERN111:return%20function%28a,b%29%7Breturn%28a%2Ab%253+%28a+b%29%252%29%252%3D%3D0%7D;default:throw%20new%20Error%28'bad%20maskPattern:'+a%29%7D%7D;d.getErrorCorrectPolynomial%3Dfunction%28d%29%7Bvar%20a%3Df%28[1],0%29;for%28var%20b%3D0;b%3Cd;b+%3D1%29%7Ba%3Da.multiply%28f%28[1,c.gexp%28b%29],0%29%29%7Dreturn%20a%7D;d.getLengthInBits%3Dfunction%28b,c%29%7Bif%281%3C%3Dc%26%26c%3C10%29%7Bswitch%28b%29%7Bcase%20a.MODE_NUMBER:return%2010;case%20a.MODE_ALPHA_NUM:return%209;case%20a.MODE_8BIT_BYTE:return%208;case%20a.MODE_KANJI:return%208;default:throw%20new%20Error%28'mode:'+b%29%7D%7Delse%20if%28c%3C27%29%7Bswitch%28b%29%7Bcase%20a.MODE_NUMBER:return%2012;case%20a.MODE_ALPHA_NUM:return%2011;case%20a.MODE_8BIT_BYTE:return%2016;case%20a.MODE_KANJI:return%2010;default:throw%20new%20Error%28'mode:'+b%29%7D%7Delse%20if%28c%3C41%29%7Bswitch%28b%29%7Bcase%20a.MODE_NUMBER:return%2014;case%20a.MODE_ALPHA_NUM:return%2013;case%20a.MODE_8BIT_BYTE:return%2016;case%20a.MODE_KANJI:return%2012;default:throw%20new%20Error%28'mode:'+b%29%7D%7Delse%7Bthrow%20new%20Error%28'type:'+c%29%7D%7D;d.getLostPoint%3Dfunction%28c%29%7Bvar%20d%3Dc.getModuleCount%28%29;var%20e%3D0;for%28var%20a%3D0;a%3Cd;a+%3D1%29%7Bfor%28var%20b%3D0;b%3Cd;b+%3D1%29%7Bvar%20i%3D0;var%20l%3Dc.isDark%28a,b%29;for%28var%20f%3D-1;f%3C%3D1;f+%3D1%29%7Bif%28a+f%3C0||d%3C%3Da+f%29%7Bcontinue%7Dfor%28var%20g%3D-1;g%3C%3D1;g+%3D1%29%7Bif%28b+g%3C0||d%3C%3Db+g%29%7Bcontinue%7Dif%28f%3D%3D0%26%26g%3D%3D0%29%7Bcontinue%7Dif%28l%3D%3Dc.isDark%28a+f,b+g%29%29%7Bi+%3D1%7D%7D%7Dif%28i%3E5%29%7Be+%3D3+i-5%7D%7D%7D;for%28var%20a%3D0;a%3Cd-1;a+%3D1%29%7Bfor%28var%20b%3D0;b%3Cd-1;b+%3D1%29%7Bvar%20h%3D0;if%28c.isDark%28a,b%29%29h+%3D1;if%28c.isDark%28a+1,b%29%29h+%3D1;if%28c.isDark%28a,b+1%29%29h+%3D1;if%28c.isDark%28a+1,b+1%29%29h+%3D1;if%28h%3D%3D0||h%3D%3D4%29%7Be+%3D3%7D%7D%7Dfor%28var%20a%3D0;a%3Cd;a+%3D1%29%7Bfor%28var%20b%3D0;b%3Cd-6;b+%3D1%29%7Bif%28c.isDark%28a,b%29%26%26!c.isDark%28a,b+1%29%26%26c.isDark%28a,b+2%29%26%26c.isDark%28a,b+3%29%26%26c.isDark%28a,b+4%29%26%26!c.isDark%28a,b+5%29%26%26c.isDark%28a,b+6%29%29%7Be+%3D40%7D%7D%7Dfor%28var%20b%3D0;b%3Cd;b+%3D1%29%7Bfor%28var%20a%3D0;a%3Cd-6;a+%3D1%29%7Bif%28c.isDark%28a,b%29%26%26!c.isDark%28a+1,b%29%26%26c.isDark%28a+2,b%29%26%26c.isDark%28a+3,b%29%26%26c.isDark%28a+4,b%29%26%26!c.isDark%28a+5,b%29%26%26c.isDark%28a+6,b%29%29%7Be+%3D40%7D%7D%7Dvar%20j%3D0;for%28var%20b%3D0;b%3Cd;b+%3D1%29%7Bfor%28var%20a%3D0;a%3Cd;a+%3D1%29%7Bif%28c.isDark%28a,b%29%29%7Bj+%3D1%7D%7D%7Dvar%20k%3DMath.abs%28100%2Aj/d/d-50%29/5;e+%3Dk%2A10;return%20e%7D;return%20d%7D%28%29;var%20c%3Dfunction%28%29%7Bvar%20b%3Dnew%20Array%28256%29;var%20d%3Dnew%20Array%28256%29;for%28var%20a%3D0;a%3C8;a+%3D1%29%7Bb[a]%3D1%3C%3Ca%7Dfor%28var%20a%3D8;a%3C256;a+%3D1%29%7Bb[a]%3Db[a-4]^b[a-5]^b[a-6]^b[a-8]%7Dfor%28var%20a%3D0;a%3C255;a+%3D1%29%7Bd[b[a]]%3Da%7Dvar%20c%3D%7B%7D;c.glog%3Dfunction%28a%29%7Bif%28a%3C1%29%7Bthrow%20new%20Error%28'glog%28'+a+'%29'%29%7Dreturn%20d[a]%7D;c.gexp%3Dfunction%28a%29%7Bwhile%28a%3C0%29%7Ba+%3D255%7Dwhile%28a%3E%3D256%29%7Ba-%3D255%7Dreturn%20b[a]%7D;return%20c%7D%28%29;function%20f%28b,e%29%7Bif%28typeof%20b.length%3D%3D'undefined'%29%7Bthrow%20new%20Error%28b.length+'/'+e%29%7Dvar%20d%3Dfunction%28%29%7Bvar%20a%3D0;while%28a%3Cb.length%26%26b[a]%3D%3D0%29%7Ba+%3D1%7Dvar%20d%3Dnew%20Array%28b.length-a+e%29;for%28var%20c%3D0;c%3Cb.length-a;c+%3D1%29%7Bd[c]%3Db[c+a]%7Dreturn%20d%7D%28%29;var%20a%3D%7B%7D;a.getAt%3Dfunction%28a%29%7Breturn%20d[a]%7D;a.getLength%3Dfunction%28%29%7Breturn%20d.length%7D;a.multiply%3Dfunction%28e%29%7Bvar%20g%3Dnew%20Array%28a.getLength%28%29+e.getLength%28%29-1%29;for%28var%20b%3D0;b%3Ca.getLength%28%29;b+%3D1%29%7Bfor%28var%20d%3D0;d%3Ce.getLength%28%29;d+%3D1%29%7Bg[b+d]^%3Dc.gexp%28c.glog%28a.getAt%28b%29%29+c.glog%28e.getAt%28d%29%29%29%7D%7Dreturn%20f%28g,0%29%7D;a.mod%3Dfunction%28d%29%7Bif%28a.getLength%28%29-d.getLength%28%29%3C0%29%7Breturn%20a%7Dvar%20g%3Dc.glog%28a.getAt%280%29%29-c.glog%28d.getAt%280%29%29;var%20e%3Dnew%20Array%28a.getLength%28%29%29;for%28var%20b%3D0;b%3Ca.getLength%28%29;b+%3D1%29%7Be[b]%3Da.getAt%28b%29%7Dfor%28var%20b%3D0;b%3Cd.getLength%28%29;b+%3D1%29%7Be[b]^%3Dc.gexp%28c.glog%28d.getAt%28b%29%29+g%29%7Dreturn%20f%28e,0%29.mod%28d%29%7D;return%20a%7D;var%20i%3Dfunction%28%29%7Bvar%20a%3D[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var%20c%3Dfunction%28b,c%29%7Bvar%20a%3D%7B%7D;a.totalCount%3Db;a.dataCount%3Dc;return%20a%7D;var%20b%3D%7B%7D;var%20d%3Dfunction%28b,c%29%7Bswitch%28c%29%7Bcase%20e.L:return%20a[%28b-1%29%2A4+0];case%20e.M:return%20a[%28b-1%29%2A4+1];case%20e.Q:return%20a[%28b-1%29%2A4+2];case%20e.H:return%20a[%28b-1%29%2A4+3];default:return%20undefined%7D%7D;b.getRSBlocks%3Dfunction%28h,i%29%7Bvar%20b%3Dd%28h,i%29;if%28typeof%20b%3D%3D'undefined'%29%7Bthrow%20new%20Error%28'bad%20rs%20block%20%40%20typeNumber:'+h+'/errorCorrectionLevel:'+i%29%7Dvar%20g%3Db.length/3;var%20e%3Dnew%20Array;for%28var%20a%3D0;a%3Cg;a+%3D1%29%7Bvar%20j%3Db[a%2A3+0];var%20k%3Db[a%2A3+1];var%20l%3Db[a%2A3+2];for%28var%20f%3D0;f%3Cj;f+%3D1%29%7Be.push%28c%28k,l%29%29%7D%7Dreturn%20e%7D;return%20b%7D%28%29;var%20j%3Dfunction%28%29%7Bvar%20b%3Dnew%20Array;var%20c%3D0;var%20a%3D%7B%7D;a.getBuffer%3Dfunction%28%29%7Breturn%20b%7D;a.getAt%3Dfunction%28a%29%7Bvar%20c%3DMath.floor%28a/8%29;return%28b[c]%3E%3E%3E7-a%258%261%29%3D%3D1%7D;a.put%3Dfunction%28d,c%29%7Bfor%28var%20b%3D0;b%3Cc;b+%3D1%29%7Ba.putBit%28%28d%3E%3E%3Ec-b-1%261%29%3D%3D1%29%7D%7D;a.getLengthInBits%3Dfunction%28%29%7Breturn%20c%7D;a.putBit%3Dfunction%28d%29%7Bvar%20a%3DMath.floor%28c/8%29;if%28b.length%3C%3Da%29%7Bb.push%280%29%7Dif%28d%29%7Bb[a]|%3D128%3E%3E%3Ec%258%7Dc+%3D1%7D;return%20a%7D;var%20k%3Dfunction%28d%29%7Bvar%20e%3Da.MODE_8BIT_BYTE;var%20f%3Dd;var%20c%3Dg.stringToBytes%28d%29;var%20b%3D%7B%7D;b.getMode%3Dfunction%28%29%7Breturn%20e%7D;b.getLength%3Dfunction%28a%29%7Breturn%20c.length%7D;b.write%3Dfunction%28b%29%7Bfor%28var%20a%3D0;a%3Cc.length;a+%3D1%29%7Bb.put%28c[a],8%29%7D%7D;return%20b%7D;var%20h%3Dfunction%28%29%7Bvar%20b%3Dnew%20Array;var%20a%3D%7B%7D;a.writeByte%3Dfunction%28a%29%7Bb.push%28a%26255%29%7D;a.writeShort%3Dfunction%28b%29%7Ba.writeByte%28b%29;a.writeByte%28b%3E%3E%3E8%29%7D;a.writeBytes%3Dfunction%28e,c,d%29%7Bc%3Dc||0;d%3Dd||e.length;for%28var%20b%3D0;b%3Cd;b+%3D1%29%7Ba.writeByte%28e[b+c]%29%7D%7D;a.writeString%3Dfunction%28c%29%7Bfor%28var%20b%3D0;b%3Cc.length;b+%3D1%29%7Ba.writeByte%28c.charCodeAt%28b%29%29%7D%7D;a.toByteArray%3Dfunction%28%29%7Breturn%20b%7D;a.toString%3Dfunction%28%29%7Bvar%20a%3D'';a+%3D'[';for%28var%20c%3D0;c%3Cb.length;c+%3D1%29%7Bif%28c%3E0%29%7Ba+%3D','%7Da+%3Db[c]%7Da+%3D']';return%20a%7D;return%20a%7D;var%20m%3Dfunction%28%29%7Bvar%20b%3D0;var%20a%3D0;var%20d%3D0;var%20e%3D'';var%20c%3D%7B%7D;var%20f%3Dfunction%28a%29%7Be+%3DString.fromCharCode%28g%28a%2663%29%29%7D;var%20g%3Dfunction%28a%29%7Bif%28a%3C0%29%7B%7Delse%20if%28a%3C26%29%7Breturn%2065+a%7Delse%20if%28a%3C52%29%7Breturn%2097+%28a-26%29%7Delse%20if%28a%3C62%29%7Breturn%2048+%28a-52%29%7Delse%20if%28a%3D%3D62%29%7Breturn%2043%7Delse%20if%28a%3D%3D63%29%7Breturn%2047%7Dthrow%20new%20Error%28'n:'+a%29%7D;c.writeByte%3Dfunction%28c%29%7Bb%3Db%3C%3C8|c%26255;a+%3D8;d+%3D1;while%28a%3E%3D6%29%7Bf%28b%3E%3E%3Ea-6%29;a-%3D6%7D%7D;c.flush%3Dfunction%28%29%7Bif%28a%3E0%29%7Bf%28b%3C%3C6-a%29;b%3D0;a%3D0%7Dif%28d%253!%3D0%29%7Bvar%20g%3D3-d%253;for%28var%20c%3D0;c%3Cg;c+%3D1%29%7Be+%3D'%3D'%7D%7D%7D;c.toString%3Dfunction%28%29%7Breturn%20e%7D;return%20c%7D;var%20n%3Dfunction%28g%29%7Bvar%20d%3Dg;var%20b%3D0;var%20c%3D0;var%20a%3D0;var%20e%3D%7B%7D;e.read%3Dfunction%28%29%7Bwhile%28a%3C8%29%7Bif%28b%3E%3Dd.length%29%7Bif%28a%3D%3D0%29%7Breturn-1%7Dthrow%20new%20Error%28'unexpected%20end%20of%20file./'+a%29%7Dvar%20e%3Dd.charAt%28b%29;b+%3D1;if%28e%3D%3D'%3D'%29%7Ba%3D0;return-1%7Delse%20if%28e.match%28/^\s$/%29%29%7Bcontinue%7Dc%3Dc%3C%3C6|f%28e.charCodeAt%280%29%29;a+%3D6%7Dvar%20g%3Dc%3E%3E%3Ea-8%26255;a-%3D8;return%20g%7D;var%20f%3Dfunction%28a%29%7Bif%2865%3C%3Da%26%26a%3C%3D90%29%7Breturn%20a-65%7Delse%20if%2897%3C%3Da%26%26a%3C%3D122%29%7Breturn%20a-97+26%7Delse%20if%2848%3C%3Da%26%26a%3C%3D57%29%7Breturn%20a-48+52%7Delse%20if%28a%3D%3D43%29%7Breturn%2062%7Delse%20if%28a%3D%3D47%29%7Breturn%2063%7Delse%7Bthrow%20new%20Error%28'c:'+a%29%7D%7D;return%20e%7D;var%20o%3Dfunction%28e,f%29%7Bvar%20b%3De;var%20d%3Df;var%20a%3Dnew%20Array%28e%2Af%29;var%20c%3D%7B%7D;c.setPixel%3Dfunction%28c,d,e%29%7Ba[d%2Ab+c]%3De%7D;c.write%3Dfunction%28a%29%7Ba.writeString%28'GIF87a'%29;a.writeShort%28b%29;a.writeShort%28d%29;a.writeByte%28128%29;a.writeByte%280%29;a.writeByte%280%29;a.writeByte%280%29;a.writeByte%280%29;a.writeByte%280%29;a.writeByte%28255%29;a.writeByte%28255%29;a.writeByte%28255%29;a.writeString%28','%29;a.writeShort%280%29;a.writeShort%280%29;a.writeShort%28b%29;a.writeShort%28d%29;a.writeByte%280%29;var%20f%3D2;var%20e%3Di%28f%29;a.writeByte%28f%29;var%20c%3D0;while%28e.length-c%3E255%29%7Ba.writeByte%28255%29;a.writeBytes%28e,c,255%29;c+%3D255%7Da.writeByte%28e.length-c%29;a.writeBytes%28e,c,e.length-c%29;a.writeByte%280%29;a.writeString%28';'%29%7D;var%20g%3Dfunction%28e%29%7Bvar%20d%3De;var%20a%3D0;var%20b%3D0;var%20c%3D%7B%7D;c.write%3Dfunction%28c,e%29%7Bif%28c%3E%3E%3Ee!%3D0%29%7Bthrow%20new%20Error%28'length%20over'%29%7Dwhile%28a+e%3E%3D8%29%7Bd.writeByte%28255%26%28c%3C%3Ca|b%29%29;e-%3D8-a;c%3E%3E%3E%3D8-a;b%3D0;a%3D0%7Db%3Dc%3C%3Ca|b;a%3Da+e%7D;c.flush%3Dfunction%28%29%7Bif%28a%3E0%29%7Bd.writeByte%28b%29%7D%7D;return%20c%7D;var%20i%3Dfunction%28n%29%7Bvar%20k%3D1%3C%3Cn;var%20o%3D%281%3C%3Cn%29+1;var%20d%3Dn+1;var%20b%3Dj%28%29;for%28var%20l%3D0;l%3Ck;l+%3D1%29%7Bb.add%28String.fromCharCode%28l%29%29%7Db.add%28String.fromCharCode%28k%29%29;b.add%28String.fromCharCode%28o%29%29;var%20m%3Dh%28%29;var%20f%3Dg%28m%29;f.write%28k,d%29;var%20e%3D0;var%20c%3DString.fromCharCode%28a[e]%29;e+%3D1;while%28e%3Ca.length%29%7Bvar%20i%3DString.fromCharCode%28a[e]%29;e+%3D1;if%28b.contains%28c+i%29%29%7Bc%3Dc+i%7Delse%7Bf.write%28b.indexOf%28c%29,d%29;if%28b.size%28%29%3C4095%29%7Bif%28b.size%28%29%3D%3D1%3C%3Cd%29%7Bd+%3D1%7Db.add%28c+i%29%7Dc%3Di%7D%7Df.write%28b.indexOf%28c%29,d%29;f.write%28o,d%29;f.flush%28%29;return%20m.toByteArray%28%29%7D;var%20j%3Dfunction%28%29%7Bvar%20b%3D%7B%7D;var%20c%3D0;var%20a%3D%7B%7D;a.add%3Dfunction%28d%29%7Bif%28a.contains%28d%29%29%7Bthrow%20new%20Error%28'dup%20key:'+d%29%7Db[d]%3Dc;c+%3D1%7D;a.size%3Dfunction%28%29%7Breturn%20c%7D;a.indexOf%3Dfunction%28a%29%7Breturn%20b[a]%7D;a.contains%3Dfunction%28a%29%7Breturn%20typeof%20b[a]!%3D'undefined'%7D;return%20a%7D;return%20c%7D;var%20l%3Dfunction%28g,i,n,l%29%7Bvar%20f%3Do%28g,i%29;for%28var%20b%3D0;b%3Ci;b+%3D1%29%7Bfor%28var%20c%3D0;c%3Cg;c+%3D1%29%7Bf.setPixel%28c,b,n%28c,b%29%29%7D%7Dvar%20j%3Dh%28%29;f.write%28j%29;var%20d%3Dm%28%29;var%20k%3Dj.toByteArray%28%29;for%28var%20e%3D0;e%3Ck.length;e+%3D1%29%7Bd.writeByte%28k[e]%29%7Dd.flush%28%29;var%20a%3D'';a+%3D'%3Cimg';a+%3D'%20src%3D%22';a+%3D'data:image/gif;base64,';a+%3Dd;a+%3D'%22';a+%3D'%20width%3D%22';a+%3Dg;a+%3D'%22';a+%3D'%20height%3D%22';a+%3Di;a+%3D'%22';if%28l%29%7Ba+%3D'%20alt%3D%22';a+%3Dl;a+%3D'%22'%7Da+%3D'/%3E';return%20a%7D;return%20g%7D%28%29;%28function%28a%29%7Bif%28typeof%20define%3D%3D%3D'function'%26%26define.amd%29%7Bdefine%28[],a%29%7Delse%20if%28typeof%20c%3D%3D%3D'object'%29%7Bb.exports%3Da%28%29%7D%7D%28function%28%29%7Breturn%20a%7D%29%29%7D,%7B%7D]%7D,%7B%7D,[1]%29%29%7D%28%29%29%29) - 一键生成当前网页的二维码图片 2. [生成阅读卡片](javascript:/%2A%20NoteCard.V1.2.1.2021-10-16%20%2A/!function%28%29%7B%22use%20strict%22;const%20o%3D%22V1.2.1%22,r%3D%22https://r.izyx.xyz/#note%22,c%3D%7Bwidth:720,selection:window.getSelection%28%29.toString%28%29.trim%28%29%7D,d%3D[%22Sun.%22,%22Mon.%22,%22Tues.%22,%22Wed.%22,%22Thur.%22,%22Fri.%22,%22Sat.%22];let%20l%3Ddocument.title,h%3Dwindow.location.href;const%20s%3Ddocument.createElement%28%22canvas%22%29,g%3Ds.getContext%28%222d%22%29,t%3Ddocument.createElement%28%22div%22%29,f%3Dt.attachShadow%28%7Bmode:%22open%22%7D%29,u%3Dt%3D%3E9%3Ct?t:%220%22+t,w%3D%28t,e%3Dnew%20Date%29%3D%3E%7Bvar%20a%3D%7BYYYY:e.getFullYear%28%29,MM:u%28e.getMonth%28%29+1%29,DD:u%28e.getDate%28%29%29,hh:u%28e.getHours%28%29%29,mm:u%28e.getMinutes%28%29%29,ss:u%28e.getSeconds%28%29%29,EE:d[e.getDay%28%29]%7D;if%28!t%29return+e;for%28const%20n%20in%20a%29%7Bvar%20i%3Dnew%20RegExp%28n,%22g%22%29;t%3Dt.replace%28i,a[n]%29%7Dreturn%20t%7D,p%3D%28a,t,i,n%3D0%29%3D%3E%7Bif%280%3D%3D%3Dt.replace%28/\s/g,%22%22%29.length%29return[];const%20o%3D[];for%28const%20l%20of%20t.replace%28/%28\r?\n\s%2A%29+/g,%22\n%22%29.split%28/\s%2A\r?\n\s%2A/g%29%29%7Bconst%20h%3D[];let%20e%3D0;for%28let%20t%3D0;t%3C%3Dl.length;t++%29%7Bvar%20r%3Dh.length?i:i-n;a.measureText%28l.substring%28e,t%29%29.width%3Er?%28h.push%28l.substring%28e,t-1%29%29,e%3Dt-1%29:t%3D%3D%3Dl.length&&h.push%28l.substring%28e,t%29%29%7Do.push%28h%29%7Dreturn%20o%7D,x%3Dasync%28a,t,i,e,n,o%3D0,r%3D0%29%3D%3E%7Blet%20l%3De;return%20t.forEach%28%28t,e%29%3D%3E%7Bt.forEach%28%28t,e%29%3D%3E%7Be%3De?i:i+r;l+%3Dn,a.fillText%28t,e,l%29%7D%29,l+%3Do%7D%29,l%7D,m%3D%28t,e,a%3D0%29%3D%3E%28t.length-1%29%2Aa+t.flat%28%29.length%2Ae,v%3Dt%3D%3E%7Bconst%20e%3Dt.split%28%22,%22%29;t%3De[0].match%28/:%28.%2A?%29;/%29[1];const%20a%3Datob%28e[1]%29;let%20i%3Da.length;const%20n%3Dnew%20Uint8Array%28i%29;for%28;i--;%29n[i]%3Da.charCodeAt%28i%29;return%20new%20Blob%28[n],%7Btype:t%7D%29%7D,F%3D%28t,e%29%3D%3E%7Bs.width%3Dc.width,s.height%3Dt,g.fillStyle%3De,g.fillRect%280,0,s.width,s.height%29%7D,y%3D%28i,n,o,r,l%3D0%29%3D%3E%7BF%28.7%2Ao,%22#FFFFFF%22%29;return[0,1].forEach%28t%3D%3E%7Bvar%20e%3D%28.25+.5%2At%29%2Ao,a%3D.22%2Ao,t%3Dl?.25%2Ao:i.height-.25%2Ao;n.beginPath%28%29,l?%28n.arc%28e-.8%2Aa,t,1.8%2Aa,0,Math.PI/2,!1%29,n.arc%28e-2.6%2Aa,t,1.8%2Aa%2AMath.sqrt%282%29,.25%2AMath.PI,0,!0%29%29:%28n.arc%28e+.8%2Aa,t,1.8%2Aa,Math.PI,-Math.PI/2,!1%29,n.arc%28e+2.6%2Aa,t,1.8%2Aa%2AMath.sqrt%282%29,.75%2A-Math.PI,Math.PI,!0%29%29,n.fillStyle%3Dr,n.fill%28%29,n.beginPath%28%29,n.arc%28e,t,a,0,2%2AMath.PI,!0%29,n.fillStyle%3Dr,n.fill%28%29%7D%29,%7BcanvasData:n.getImageData%280,0,i.width,i.height%29,height:i.height%7D%7D,e%3Dasync%28%29%3D%3E%7Bvar%20t;c.now%3Dnew%20Date,c.note%3Df.querySelector%28%22textarea#dms-quick-note%22%29.value.trim%28%29;const%20e%3D[await%28async%28%29%3D%3E%7Bconst%20i%3Dc.now.getDay%28%29,a%3Dc.now-864e5%2Ai,t%3Dnew%20Array%287%29.fill%28%29.map%28%28t,e%29%3D%3Enew%20Date%28a+864e5%2Ae%29.getDate%28%29%29,n%3Dc.width/16;var%20e%3Dc.width/12,o%3D2%2Ae;const%20r%3Dc.width/18,l%3Do+2.5%2Ar,h%3Do+2%2Ar;return%20F%28l+r+e/2,%22#FFFFFF%22%29,g.font%3D%22900%20%22+e+'px%20%22Microsoft%20YaHei%22',g.textAlign%3D%22right%22,g.fillStyle%3D%22#99999F%22,g.fillText%28w%28%22YYYY-MM%22,c.now%29,s.width/2-e/2,o%29,g.font%3D%22200%20%22+e+'px%20%22Microsoft%20YaHei%22',g.textAlign%3D%22left%22,g.fillStyle%3D%22#99999F%22,g.fillText%28w%28%22hh:mm:ss%22,c.now%29,s.width/2+e/2,o%29,g.textAlign%3D%22center%22,t.forEach%28%28t,e%29%3D%3E%7Bvar%20a%3D2%2A%28e+1%29%2An;e%3D%3D%3Di?%28g.beginPath%28%29,g.arc%28a,h,1.1%2An,0,2%2AMath.PI,!0%29,g.fillStyle%3D%22#E0626B%22,g.fill%28%29,g.fillStyle%3D%22#FFFFFF%22%29:g.fillStyle%3D%22#333338%22,g.font%3D%22400%20%22+r+'px%20%22Microsoft%20YaHei%22',g.fillText%28t,a,l%29,e&&i!%3D%3De||%28g.font%3D%22200%20%22+.6%2Ar+'px%20%22Microsoft%20YaHei%22',g.fillText%28d[e],a,l-r%29%29%7D%29,%7BcanvasData:g.getImageData%280,0,s.width,s.height%29,height:s.height%7D%7D%29%28%29];c.selection&&c.selection.length&&%28t%3Dawait%28async%28%29%3D%3E%7Bvar%20t%3Dc.width/24,e%3D1.6%2At,a%3D.8%2At,i%3D8%2At,n%3Dy%28s,g,i,%22#F3F3F6%22,0%29,o%3Dy%28s,g,i,%22#F3F3F6%22,1%29;g.font%3D%22400%20%22+t+'px%20%22Microsoft%20YaHei%22';var%20r%3Dp%28g,c.selection,.8%2Ac.width,2%2At%29;return%20F%28m%28r,e,a%29+c.width/5,%22#FFFFFF%22%29,g.putImageData%28n.canvasData,0,0%29,g.putImageData%28o.canvasData,s.width-i,s.height-o.height%29,g.textAlign%3D%22left%22,g.fillStyle%3D%22#333338%22,g.font%3D%22400%20%22+t+'px%20%22Microsoft%20YaHei%22',await%20x%28g,r,c.width/10,c.width/10-%28e-t%29,e,a,2%2At%29,%7BcanvasData:g.getImageData%280,0,s.width,s.height%29,height:s.height%7D%7D%29%28%29,e.push%28t%29,t%3Dawait%28async%28%29%3D%3E%7Bvar%20t%3Dc.width/40,e%3D1.2%2At,a%3D.4%2At;g.font%3D%22200%20%22+t+'px%20%22Microsoft%20YaHei%22';var%20i%3Dp%28g,%22%E2%80%94%E2%80%94%E3%80%8A%22+l+%22%E3%80%8B%22,.8%2Ac.width-2%2At,2%2A-t%29,n%3Dp%28g,h,.8%2Ac.width-2%2At,0%29,o%3Dc.width/10+m%28i,e,0%29+m%28n,e,0%29+a;return%20F%28o,%22#FFFFFF%22%29,g.textAlign%3D%22right%22,g.fillStyle%3D%22#66666C%22,g.font%3D%22200%20%22+t+'px%20%22Microsoft%20YaHei%22',await%20x%28g,i,.9%2Ac.width,0-%28e-t%29,e,a%29,await%20x%28g,n,.9%2Ac.width,0-%28e-t%29+m%28i,e,0%29+a,e,a%29,%7BcanvasData:g.getImageData%280,0,s.width,s.height%29,height:s.height%7D%7D%29%28%29,e.push%28t%29%29,c.note&&c.note.length&&%28a%3Dawait%28async%28%29%3D%3E%7Bvar%20t%3Dc.width/24,e%3D1.6%2At,a%3D.8%2At;g.font%3D%22400%20%22+t+'px%20%22Microsoft%20YaHei%22';var%20i%3Dp%28g,c.note,.8%2Ac.width,2%2At%29;return%20F%28m%28i,e,a%29+c.width/10,%22#FFFFFF%22%29,g.textAlign%3D%22left%22,g.fillStyle%3D%22#333338%22,g.font%3D%22400%20%22+t+'px%20%22Microsoft%20YaHei%22',await%20x%28g,i,c.width/10,0-%28e-t%29,e,a,2%2At%29,%7BcanvasData:g.getImageData%280,0,s.width,s.height%29,height:s.height%7D%7D%29%28%29,e.push%28a%29%29;a%3Dc.width/48,F%28a+c.width/10,%22#F3F3F9%22%29,g.textAlign%3D%22center%22,g.fillStyle%3D%22#99999C%22,g.font%3D%22400%20%22+a+'px%20%22Microsoft%20YaHei%22',g.fillText%28%22%E7%BD%91%E9%A1%B5%E7%AC%94%E8%AE%B0%E5%8D%A1%E7%89%87%E7%94%9F%E6%88%90%E5%99%A8%20%22+o+%22%20%20%20%22+r,c.width/2,c.width/20+a%29,a%3Dawait%7BcanvasData:g.getImageData%280,0,s.width,s.height%29,height:s.height%7D;e.push%28a%29,s.width%3Dc.width;var%20a%3De.reduce%28%28t,e%29%3D%3Et+e.height,0%29;F%28a,%22#FFFFFF%22%29;let%20i%3D0;for%28const%20n%20of%20e%29g.putImageData%28n.canvasData,0,i%29,i+%3Dn.height;%28%28t,e,a%29%3D%3E%7Bt%3Dt.toDataURL%28%22image/%22+%28a%3D%22jpg%22%3D%3D%3Da?%22jpeg%22:a%29%29,t%3Dv%28t%29,t%3DURL.createObjectURL%28t%29;const%20i%3Ddocument.createElement%28%22a%22%29;i.download%3De+%22.%22+%28%22jpeg%22%3D%3D%3Da?%22jpg%22:a%29,i.href%3Dt,i.click%28%29%7D%29%28s,w%28%22YYYY_MM_DD_hh_mm_ss%22,c.now%29+%22_%22+String%28w%28!1,c.now%29%29.substring%2810%29,%22png%22%29%7D,a%3D%28%29%3D%3E%7Blet%20t%3Dw%28%22%2A%2AYYYY-MM-DD%2A%2A%20hh:mm:ss%22%29+%22\n\n%22;c.selection&&%28t+%3D%22%3E%20%22+c.selection.replace%28/%28\s%2A\r?\n\s%2A%29+/g,%22\n%3E%20\n%3E%20%22%29+%22\n%3E\n%22,t+%3D%22%3E%20%E2%80%94%E2%80%94[%22+l+%22]%28%22+h+%22%29\n\n%22%29;const%20e%3Ddocument.querySelector%28%22textarea#dms-quick-note%22%29.value.trim%28%29;e&&%28t+%3De.replace%28/%28\s%2A\r?\n\s%2A%29+/g,%22\n\n%22%29%29,%28t%3D%3E%7Bconst%20e%3Ddocument.createElement%28%22textarea%22%29;e.setAttribute%28%22readonly%22,%22readonly%22%29,e.value%3Dt,document.body.appendChild%28e%29,e.select%28%29,document.execCommand%28%22copy%22%29,document.body.removeChild%28e%29%7D%29%28t%29%7D,i%3D%28%29%3D%3E%7Bf.querySelector%28%22button#generate-note-card%22%29.removeEventListener%28%22click%22,e%29,f.querySelector%28%22button#generate-note-markdown%22%29.removeEventListener%28%22click%22,a%29,f.querySelector%28%22button#close%22%29.removeEventListener%28%22click%22,i%29,document.querySelector%28%22html%22%29.removeChild%28t%29%7D;c.selection%3Dwindow.getSelection%28%29.toString%28%29.trim%28%29,l%3Ddocument.title,h%3Dwindow.location.href,f.innerHTML%3D%60%3Cstyle%3Ediv#note-card%20%7Bposition:%20fixed;box-sizing:%20border-box;left:%2050%;top:%2010px;width:%20640px;max-width:%20100vw;height:%20720px;min-height:%20360px;max-height:%20100vh;padding:12px;box-shadow:%200%203px%2048px%20rgba%280,%200,%200,%20.2%29;border-radius:%206px;transform:translate%28-50%,%200%29;z-index:%202147483647;backdrop-filter:%20blur%288px%29;font-family:%20%22Microsoft%20YaHei%22;%7Ddiv#note-card%20%3E%20div.flex-area%20%7Bdisplay:%20flex;%7Ddiv#note-card%20%3E%20div#text-area%20%7Balign-items:%20stretch;height:%20calc%28100%%20-%2026px%20-%2072px%29;%7Ddiv#note-card%20textarea#dms-quick-note%20%7Bdisplay:%20block;resize:%20none;flex:%20auto;border:%201px%20solid%20#AAAAAC;outline-color:%20#99999B;padding:%2012px;font-size:%2024px;font-family:%20%22Microsoft%20YaHei%22;%7Ddiv#note-card%20%3E%20div#button-area%20%3E%20button.note-card-button%20%7Bflex:%20auto;margin:%2010px%20auto%200;font-size:%2024px;line-height:%2048px;font-family:%20%22Microsoft%20YaHei%22;%7Ddiv#note-card%20%3E%20div#footer-tip%20%7Bline-height:%2048px;font-size:%2014px;text-align:%20center;color:%20#99999C;%7Ddiv#note-card%20%3E%20div#footer-tip%20%3E%20a%20%7Bcolor:%20#E05749;text-decoration:%20none;%7D%3C/style%3E%3Cdiv%20id%3D%22note-card%22%3E%3Cdiv%20class%3D%22flex-area%22%20id%3D%22text-area%22%3E%3Ctextarea%20id%3D%22dms-quick-note%22%3E%3C/textarea%3E%3C/div%3E%3Cdiv%20class%3D%22flex-area%22%20id%3D%22button-area%22%3E%3Cbutton%20class%3D%22note-card-button%22%20id%3D%22generate-note-card%22%3ECard%3C/button%3E%3Cbutton%20class%3D%22note-card-button%22%20id%3D%22generate-note-markdown%22%3EMarkdown%3C/button%3E%3Cbutton%20class%3D%22note-card-button%22%20id%3D%22close%22%3EClose%3C/button%3E%3C/div%3E%3Cdiv%20id%3D%22footer-tip%22%3E%E7%BD%91%E9%A1%B5%E7%AC%94%E8%AE%B0%E5%8D%A1%E7%89%87%E7%94%9F%E6%88%90%E5%99%A8%20%60+o+'%20%3Ca%20href%3D%22'+r+'%22%20target%3D%22_blank%22%3E'+r+%60%3C/a%3E%3C/div%3E%3C/div%3E%60,document.querySelector%28%22html%22%29.appendChild%28t%29,f.querySelector%28%22button#generate-note-card%22%29.addEventListener%28%22click%22,e%29,f.querySelector%28%22button#generate-note-markdown%22%29.addEventListener%28%22click%22,a%29,f.querySelector%28%22button#close%22%29.addEventListener%28%22click%22,i%29%7D%28%29;%29) - 选中文章中的一段文本,生成一张卡片笔记(来自[稻米鼠](https://meta.appinn.net/t/topic/26446)) 3. [将网页复制为MD](javascript:%28function%28%29%20%7B%20%20function%20copyToClipboard%28text%29%20%7B%20%20%20%20%20if%20%28window.clipboardData%20&&%20window.clipboardData.setData%29%20%7B%20%20%20%20%20%20%20%20%20/%2AIE%20specific%20code%20path%20to%20prevent%20textarea%20being%20shown%20while%20dialog%20is%20visible.%2A/%20%20%20%20%20%20%20%20%20return%20clipboardData.setData%28"Text",%20text%29;%20%20%20%20%20%20%20%7D%20else%20if%20%28document.queryCommandSupported%20&&%20document.queryCommandSupported%28"copy"%29%29%20%7B%20%20%20%20%20%20%20%20%20var%20textarea%20%3D%20document.createElement%28"textarea"%29;%20%20%20%20%20%20%20%20%20textarea.textContent%20%3D%20text;%20%20%20%20%20%20%20%20%20textarea.style.position%20%3D%20"fixed";%20%20/%2A%20Prevent%20scrolling%20to%20bottom%20of%20page%20in%20MS%20Edge.%2A/%20%20%20%20%20%20%20%20%20document.body.appendChild%28textarea%29;%20%20%20%20%20%20%20%20%20textarea.select%28%29;%20%20%20%20%20%20%20%20%20try%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20return%20document.execCommand%28"copy"%29;%20%20/%2A%20Security%20exception%20may%20be%20thrown%20by%20some%20browsers.%2A/%20%20%20%20%20%20%20%20%20%7D%20catch%20%28ex%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20console.warn%28"Copy%20to%20clipboard%20failed.",%20ex%29;%20%20%20%20%20%20%20%20%20%20%20%20%20return%20false;%20%20%20%20%20%20%20%20%20%7D%20finally%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20document.body.removeChild%28textarea%29;%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%7D%20%7D%20%20var%20markdown%20%3D%20'['+document.title%20+%20']%28'%20+%20window.location.href+'%29';%20copyToClipboard%28markdown%29;%20%7D%29%28%29;%29) - 将网页复制为带标题和链接的Markdown 4. [网页剪切工具](javascript:%28function%28%29%7Bvar%20isIe%3Dfalse;/%2A@cc_on%20isIe%3Dtrue;%20@%2A/function%20fe%28a,fn%29%7Bvar%20i,l%3Da.length;for%28i%3D0;i%7B'none'%3D%3D%3Dwindow.getComputedStyle%28e,null%29.getPropertyValue%28'user-select'%29&&e.style.setProperty%28'user-select','text','important'%29%7D%29,['copy','cut','contextmenu','selectstart','mousedown','mouseup','mousemove','keydown','keypress','keyup'].forEach%28function%28e%29%7Bdocument.documentElement.addEventListener%28e,t,%7Bcapture:!0%7D%29%7D%29,alert%28'%E5%B7%B2%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E9%99%90%E5%88%B6%EF%BC%81'%29%28%29;%29) - 某些网站自定义了右键菜单,此功能可以将其还原为原始右键菜单 6. [网页尺子](javascript:!%28function%28%29%7Bfetch%28"https://registry.npmmirror.com/spacingjs/1.0.7/files/dist/bundle.js"%29.then%28async%20%28res%29%20%3D>%20eval%28await%20res.text%28%29%29%29%7D%29%28%29;%29) - 点击后按住 alt(windows) 或 Option(mac)键即可测量网页元素间距 7. [显示\*号密码](javascript:!function%28%29%7Bfor%28var t%3Ddocument.getElementsByTagName%28"input"%29,e%3D0;e'+document.images[i].naturalWidth+'x'+document.images[i].naturalHeight+'

'%7D%7D;if%28outText!%3D''%29%7BimgWindow%3Dwindow.open%28'','imgWin'%29;imgWindow.document.write%28'

'+outText+'

ImageSize

'%29;imgWindow.document.close%28%29%7Delse%7Balert%28'%E6%B2%A1%E6%9C%89%E5%9B%BE%E7%89%87%EF%BC%81'%29%7D%29) - 一键查看当前网页的所有图片 4. [高亮所有图片](javascript:%28function%28%29%7B;function%20cleanup%28%29%7Bdom.head.removeChild%28dom.style%29,dom.body.removeEventListener%28%22click%22,getImageUrl,!1%29%7Dfunction%20resolveUrl%28a%29%7Breturn/%5Ehttps?%5C:%5C/%5C/%7C%5E%5C/%5C//.test%28a%29%7C%7C%28a%3Dwin.location.protocol+%22//%22+win.location.host+%28/%5E%5C//.test%28a%29?%22%22:%22/%22%29+a%29,a%7Dfunction%20getImageUrl%28a%29%7Bvar%20b%3Da.target;a.preventDefault%28%29,%22IMG%22%3D%3D%3Db.nodeName&&%28cleanup%28%29,win.prompt%28%22Image%20URL%22,resolveUrl%28b.getAttribute%28%22src%22%29%29%29%29%7Dvar%20win%3Dwindow,doc%3Ddocument,domNs%3D%22get-image-url%22,dom%3D%7Bbody:doc.getElementsByTagName%28%22body%22%29%5B0%5D,head:doc.getElementsByTagName%28%22head%22%29%5B0%5D,style:doc.querySelector%28%22.%22+domNs+%22-style%22%29%7D;null%3D%3D%3Ddom.style&&%28dom.style%3Ddoc.createElement%28%22style%22%29,dom.style.appendChild%28doc.createTextNode%28%22%22%29%29,dom.style.classList.add%28%22get-image-url-style%22%29,dom.head.appendChild%28dom.style%29,dom.style.sheet.insertRule%28%27body:after%20%7B%20content:%22%22;%20position:fixed;%20z-index:9998;%20top:0;%20right:0;%20bottom:0;%20left:0;%20background:rgba%280,0,0,0.8%29;%20%7D%27,0%29,dom.style.sheet.insertRule%28%22img%20%7B%20position:relative;%20z-index:9999;%20outline:4px%20solid%20hotpink;%20%7D%22,0%29,dom.body.addEventListener%28%22click%22,getImageUrl,!1%29%29;%7D%29%28%29%29) - 一键高亮网页上的所有图片,点击可显示图片地址 5. [隐藏所有图片](javascript:%28function%28%29%7Bfunction%20hide%28tag%29%7Bvar%20i,l,els%20%3D%20document.getElementsByTagName%28tag%29;for%28i%3D0,%20l%3Dels.length;%20i%7Bconst%20dbNum%3Dnum%3D>num>9?num:%220%22+num,now%3Dnew%20Date,year%3Dnow.getFullYear%28%29,month%3DdbNum%28now.getMonth%28%29+1%29,today%3DdbNum%28now.getDate%28%29%29,day%3Dnow.getDay%28%29,hours%3DdbNum%28now.getHours%28%29%29,minutes%3DdbNum%28now.getMinutes%28%29%29,seconds%3DdbNum%28now.getSeconds%28%29%29,yearStart%3Dnew%20Date%28year,0%29,yearEnd%3Dnew%20Date%28year+1,0%29,progress%3D%28100%2A%28now-yearStart%29/%28yearEnd-yearStart%29%29.toFixed%283%29;let%20progressbar%3D%22%22;for%28let%20i%3D0;i%3C20;i++%29progressbar+%3D5%2Ai+2.5%3E%3D+progress?%22%E2%96%91%22:%22%E2%96%92%22;const%20dayNames%3D[%22Sunday%22,%22Monday%22,%22Tuesday%22,%22Wednesday%22,%22Thursday%22,%22Friday%22,%22Saturday%22],result%3D%22Now:%20%22+year+%22-%22+month+%22-%22+today+%22%20%22+hours+%22:%22+minutes+%22:%22+seconds+%22%20%22+dayNames[day]+%22\nProgress:%20%22+progressbar+%22%20%22+progress+%22%%22;console.log%28result%29;const%20copyinput%3Ddocument.createElement%28%22textarea%22%29;copyinput.value%3Dresult,document.body.appendChild%28copyinput%29,copyinput.select%28%29;try%7Bdocument.execCommand%28%22copy%22%29,alert%28result%29%7Dcatch%28err%29%7B%7Ddocument.body.removeChild%28copyinput%29;%7D%29%28%29%29) - 用进度条显示今年进程 ## 参考资料 - [各种骚操作,中文网最全 Bookmarklet 小书签 - 奔跑中的奶酪](https://www.runningcheese.com/bookmarklets#top) - [BOOKMARKLETS](https://caiorss.github.io/bookmarklets.html)