二维码生成 API

最近发现一个好用的二维码生成器,可以直接调用 API 使用,非常方便:

使用例子:


加边框带个参数就行:margin=6

qr code

2 个赞

赞!

生成二维码……这个 api 应该很多吧

一个 JS 库的事儿

再分享几个 API:

chrome可以使用扩展https://chrome.google.com/webstore/detail/%E6%9E%81%E7%AE%80%E4%BA%8C%E7%BB%B4%E7%A0%81/bfpobnbhgondhofhkolbelkijdmgfjfm

我这有个离线可用的小书签,得自一个日本博客,找不到源链了。

javascript:(function(){(function%20a(b,c,e){function%20f(d,k){if(!c[d]){if(!b[d]){var%20i=typeof%20require=='function'%26%26require;if(!k%26%26i)return%20i(d,!0);if(g)return%20g(d,!0);var%20j=new%20Error('Cannot%20find%20module%20\''+d+'\'');throw%20j.code='MODULE_NOT_FOUND',j}var%20h=c[d]={exports:{}};b[d][0].call(h.exports,function(c){var%20a=b[d][1][c];return%20f(a%3Fa:c)},h,h.exports,a,b,c,e)}return%20c[d].exports}var%20g=typeof%20require=='function'%26%26require;for(var%20d=0;d%3Ce.length;d++)f(e[d]);return%20f}({1:[function(h,j,i){'use%20strict';var%20e=h('qrcode-generator');var%20f='L';function%20g(c){var%20a=void%200;var%20b=1;while(b%3C=40){a=e(b,f);a.addData(c);try{a.make();return%20a.createImgTag(8,8*4).match(/src=%22(.*%3F)%22/)[1]}catch(a){b+=1}}}var%20a=document.createElement('div');a.style.position='fixed';a.style.zIndex=2147483647;a.style.top=0;a.style.left=0;a.style.width='100%25';a.style.height='100%25';a.style.backgroundColor='rgba(255,255,255,%200.5)';a.style.cursor='pointer';a.addEventListener('click',function(b){if(b.target===b.currentTarget){a.parentNode.removeChild(a)}},false);var%20c=document.createElement('div');c.style.position='absolute';c.style.top='50%25';c.style.left='50%25';c.style.transform='translate(-50%25,%20-50%25)';c.style.cursor='auto';a.appendChild(c);var%20d=document.createElement('img');d.src=g(location.href);d.style.display='block';c.appendChild(d);var%20b=document.createElement('input');b.type='text';b.value=location.href;b.style.display='block';b.style.width='100%25';b.style.fontSize='14px';b.style.boxSizing='border-box';b.addEventListener('input',function(a){d.src=g(b.value)},false);c.appendChild(b);document.body.appendChild(a)},{'qrcode-generator':2}],2:[function(d,b,c){var%20a=function(){var%20g=function(A,B){var%20t=236;var%20u=17;var%20g=A;var%20n=e[B];var%20a=null;var%20b=0;var%20h=null;var%20o=new%20Array;var%20c={};var%20p=function(c,d){b=g*4+17;a=function(b){var%20c=new%20Array(b);for(var%20a=0;a%3Cb;a+=1){c[a]=new%20Array(b);for(var%20d=0;d%3Cb;d+=1){c[a][d]=null}}return%20c}(b);m(0,0);m(b-7,0);m(0,b-7);x();w();z(c,d);if(g%3E=7){y(c)}if(h==null){h=q(g,n,o)}s(h,d)};var%20m=function(e,f){for(var%20c=-1;c%3C=7;c+=1){if(e+c%3C=-1||b%3C=e+c)continue;for(var%20d=-1;d%3C=7;d+=1){if(f+d%3C=-1||b%3C=f+d)continue;if(0%3C=c%26%26c%3C=6%26%26(d==0||d==6)||0%3C=d%26%26d%3C=6%26%26(c==0||c==6)||2%3C=c%26%26c%3C=4%26%262%3C=d%26%26d%3C=4){a[e+c][f+d]=true}else{a[e+c][f+d]=false}}}};var%20v=function(){var%20b=0;var%20e=0;for(var%20a=0;a%3C8;a+=1){p(true,a);var%20f=d.getLostPoint(c);if(a==0||b%3Ef){b=f;e=a}}return%20e};var%20w=function(){for(var%20c=8;c%3Cb-8;c+=1){if(a[c][6]!=null){continue}a[c][6]=c%252==0}for(var%20d=8;d%3Cb-8;d+=1){if(a[6][d]!=null){continue}a[6][d]=d%252==0}};var%20x=function(){var%20e=d.getPatternPosition(g);for(var%20f=0;f%3Ce.length;f+=1){for(var%20h=0;h%3Ce.length;h+=1){var%20i=e[f];var%20j=e[h];if(a[i][j]!=null){continue}for(var%20b=-2;b%3C=2;b+=1){for(var%20c=-2;c%3C=2;c+=1){if(b==-2||b==2||c==-2||c==2||b==0%26%26c==0){a[i+b][j+c]=true}else{a[i+b][j+c]=false}}}}}};var%20y=function(h){var%20f=d.getBCHTypeNumber(g);for(var%20c=0;c%3C18;c+=1){var%20e=!h%26%26(f%3E%3Ec%261)==1;a[Math.floor(c/3)][c%253+b-8-3]=e}for(var%20c=0;c%3C18;c+=1){var%20e=!h%26%26(f%3E%3Ec%261)==1;a[c%253+b-8-3][Math.floor(c/3)]=e}};var%20z=function(f,i){var%20h=n%3C%3C3|i;var%20g=d.getBCHTypeInfo(h);for(var%20c=0;c%3C15;c+=1){var%20e=!f%26%26(g%3E%3Ec%261)==1;if(c%3C6){a[c][8]=e}else%20if(c%3C8){a[c+1][8]=e}else{a[b-15+c][8]=e}}for(var%20c=0;c%3C15;c+=1){var%20e=!f%26%26(g%3E%3Ec%261)==1;if(c%3C8){a[8][b-c-1]=e}else%20if(c%3C9){a[8][15-c-1+1]=e}else{a[8][15-c-1]=e}}a[b-8][8]=!f};var%20s=function(m,n){var%20h=-1;var%20c=b-1;var%20i=7;var%20j=0;var%20k=d.getMaskFunction(n);for(var%20e=b-1;e%3E0;e-=2){if(e==6)e-=1;while(true){for(var%20f=0;f%3C2;f+=1){if(a[c][e-f]==null){var%20g=false;if(j%3Cm.length){g=(m[j]%3E%3E%3Ei%261)==1}var%20l=k(c,e-f);if(l){g=!g}a[c][e-f]=g;i-=1;if(i==-1){j+=1;i=7}}}c+=h;if(c%3C0||b%3C=c){c-=h;h=-h;break}}}};var%20r=function(t,c){var%20o=0;var%20m=0;var%20j=0;var%20g=new%20Array(c.length);var%20e=new%20Array(c.length);for(var%20b=0;b%3Cc.length;b+=1){var%20h=c[b].dataCount;var%20n=c[b].totalCount-h;m=Math.max(m,h);j=Math.max(j,n);g[b]=new%20Array(h);for(var%20a=0;a%3Cg[b].length;a+=1){g[b][a]=255%26t.getBuffer()[a+o]}o+=h;var%20l=d.getErrorCorrectPolynomial(n);var%20s=f(g[b],l.getLength()-1);var%20p=s.mod(l);e[b]=new%20Array(l.getLength()-1);for(var%20a=0;a%3Ce[b].length;a+=1){var%20q=a+p.getLength()-e[b].length;e[b][a]=q%3E=0%3Fp.getAt(q):0}}var%20r=0;for(var%20a=0;a%3Cc.length;a+=1){r+=c[a].totalCount}var%20k=new%20Array(r);var%20i=0;for(var%20a=0;a%3Cm;a+=1){for(var%20b=0;b%3Cc.length;b+=1){if(a%3Cg[b].length){k[i]=g[b][a];i+=1}}}for(var%20a=0;a%3Cj;a+=1){for(var%20b=0;b%3Cc.length;b+=1){if(a%3Ce[b].length){k[i]=e[b][a];i+=1}}}return%20k};var%20q=function(g,k,h){var%20f=i.getRSBlocks(g,k);var%20a=j();for(var%20b=0;b%3Ch.length;b+=1){var%20e=h[b];a.put(e.getMode(),4);a.put(e.getLength(),d.getLengthInBits(e.getMode(),g));e.write(a)}var%20c=0;for(var%20b=0;b%3Cf.length;b+=1){c+=f[b].dataCount}if(a.getLengthInBits()%3Ec*8){throw%20new%20Error('code%20length%20overflow.%20('+a.getLengthInBits()+'%3E'+c*8+')')}if(a.getLengthInBits()+4%3C=c*8){a.put(0,4)}while(a.getLengthInBits()%258!=0){a.putBit(false)}while(true){if(a.getLengthInBits()%3E=c*8){break}a.put(t,8);if(a.getLengthInBits()%3E=c*8){break}a.put(u,8)}return%20r(a,f)};c.addData=function(b){var%20a=k(b);o.push(a);h=null};c.isDark=function(c,d){if(c%3C0||b%3C=c||d%3C0||b%3C=d){throw%20new%20Error(c+','+d)}return%20a[c][d]};c.getModuleCount=function(){return%20b};c.make=function(){p(false,v())};c.createTableTag=function(b,d){b=b||2;d=typeof%20d=='undefined'%3Fb*4:d;var%20a='';a+='%3Ctable%20style=%22';a+='%20border-width:%200px;%20border-style:%20none;';a+='%20border-collapse:%20collapse;';a+='%20padding:%200px;%20margin:%20'+d+'px;';a+='%22%3E';a+='%3Ctbody%3E';for(var%20e=0;e%3Cc.getModuleCount();e+=1){a+='%3Ctr%3E';for(var%20f=0;f%3Cc.getModuleCount();f+=1){a+='%3Ctd%20style=%22';a+='%20border-width:%200px;%20border-style:%20none;';a+='%20border-collapse:%20collapse;';a+='%20padding:%200px;%20margin:%200px;';a+='%20width:%20'+b+'px;';a+='%20height:%20'+b+'px;';a+='%20background-color:%20';a+=c.isDark(e,f)%3F'%23000000':'%23ffffff';a+=';';a+='%22/%3E'}a+='%3C/tr%3E'}a+='%3C/tbody%3E';a+='%3C/table%3E';return%20a};c.createSvgTag=function(b,d){b=b||2;d=typeof%20d=='undefined'%3Fb*4:d;var%20g=c.getModuleCount()*b+d*2;var%20e,h,f,i,a='',j;j='l'+b+',0%200,'+b+'%20-'+b+',0%200,-'+b+'z%20';a+='%3Csvg';a+='%20width=%22'+g+'px%22';a+='%20height=%22'+g+'px%22';a+='%20xmlns=%22http://www.w3.org/2000/svg%22';a+='%3E';a+='%3Cpath%20d=%22';for(f=0;f%3Cc.getModuleCount();f+=1){i=f*b+d;for(e=0;e%3Cc.getModuleCount();e+=1){if(c.isDark(f,e)){h=e*b+d;a+='M'+h+','+i+j}}}a+='%22%20stroke=%22transparent%22%20fill=%22black%22/%3E';a+='%3C/svg%3E';return%20a};c.createImgTag=function(a,b){a=a||2;b=typeof%20b=='undefined'%3Fa*4:b;var%20e=c.getModuleCount()*a+b*2;var%20d=b;var%20f=e-b;return%20l(e,e,function(b,e){if(d%3C=b%26%26b%3Cf%26%26d%3C=e%26%26e%3Cf){var%20g=Math.floor((b-d)/a);var%20h=Math.floor((e-d)/a);return%20c.isDark(h,g)%3F0:1}else{return%201}})};return%20c};g.stringToBytes=function(c){var%20b=new%20Array;for(var%20a=0;a%3Cc.length;a+=1){var%20d=c.charCodeAt(a);b.push(d%26255)}return%20b};g.createStringToBytes=function(d,a){var%20b=function(){var%20g=n(d);var%20b=function(){var%20a=g.read();if(a==-1)throw%20new%20Error;return%20a};var%20c=0;var%20f={};while(true){var%20e=g.read();if(e==-1)break;var%20i=b();var%20j=b();var%20k=b();var%20l=String.fromCharCode(e%3C%3C8|i);var%20h=j%3C%3C8|k;f[l]=h;c+=1}if(c!=a){throw%20new%20Error(c+'%20!=%20'+a)}return%20f}();var%20c='%3F'.charCodeAt(0);return%20function(f){var%20a=new%20Array;for(var%20e=0;e%3Cf.length;e+=1){var%20g=f.charCodeAt(e);if(g%3C128){a.push(g)}else{var%20d=b[f.charAt(e)];if(typeof%20d=='number'){if((d%26255)==d){a.push(d)}else{a.push(d%3E%3E%3E8);a.push(d%26255)}}else{a.push(c)}}}return%20a}};var%20a={MODE_NUMBER:1%3C%3C0,MODE_ALPHA_NUM:1%3C%3C1,MODE_8BIT_BYTE:1%3C%3C2,MODE_KANJI:1%3C%3C3};var%20e={L:1,M:0,Q:3,H:2};var%20b={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var%20d=function(){var%20i=[[],[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=1%3C%3C10|1%3C%3C8|1%3C%3C5|1%3C%3C4|1%3C%3C2|1%3C%3C1|1%3C%3C0;var%20h=1%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=1%3C%3C14|1%3C%3C12|1%3C%3C10|1%3C%3C4|1%3C%3C1;var%20d={};var%20e=function(b){var%20a=0;while(b!=0){a+=1;b%3E%3E%3E=1}return%20a};d.getBCHTypeInfo=function(b){var%20a=b%3C%3C10;while(e(a)-e(g)%3E=0){a^=g%3C%3Ce(a)-e(g)}return(b%3C%3C10|a)^j};d.getBCHTypeNumber=function(b){var%20a=b%3C%3C12;while(e(a)-e(h)%3E=0){a^=h%3C%3Ce(a)-e(h)}return%20b%3C%3C12|a};d.getPatternPosition=function(a){return%20i[a-1]};d.getMaskFunction=function(a){switch(a){case%20b.PATTERN000:return%20function(a,b){return(a+b)%252==0};case%20b.PATTERN001:return%20function(a,b){return%20a%252==0};case%20b.PATTERN010:return%20function(b,a){return%20a%253==0};case%20b.PATTERN011:return%20function(a,b){return(a+b)%253==0};case%20b.PATTERN100:return%20function(a,b){return(Math.floor(a/2)+Math.floor(b/3))%252==0};case%20b.PATTERN101:return%20function(a,b){return%20a*b%252+a*b%253==0};case%20b.PATTERN110:return%20function(a,b){return(a*b%252+a*b%253)%252==0};case%20b.PATTERN111:return%20function(a,b){return(a*b%253+(a+b)%252)%252==0};default:throw%20new%20Error('bad%20maskPattern:'+a)}};d.getErrorCorrectPolynomial=function(d){var%20a=f([1],0);for(var%20b=0;b%3Cd;b+=1){a=a.multiply(f([1,c.gexp(b)],0))}return%20a};d.getLengthInBits=function(b,c){if(1%3C=c%26%26c%3C10){switch(b){case%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('mode:'+b)}}else%20if(c%3C27){switch(b){case%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('mode:'+b)}}else%20if(c%3C41){switch(b){case%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('mode:'+b)}}else{throw%20new%20Error('type:'+c)}};d.getLostPoint=function(c){var%20d=c.getModuleCount();var%20e=0;for(var%20a=0;a%3Cd;a+=1){for(var%20b=0;b%3Cd;b+=1){var%20i=0;var%20l=c.isDark(a,b);for(var%20f=-1;f%3C=1;f+=1){if(a+f%3C0||d%3C=a+f){continue}for(var%20g=-1;g%3C=1;g+=1){if(b+g%3C0||d%3C=b+g){continue}if(f==0%26%26g==0){continue}if(l==c.isDark(a+f,b+g)){i+=1}}}if(i%3E5){e+=3+i-5}}};for(var%20a=0;a%3Cd-1;a+=1){for(var%20b=0;b%3Cd-1;b+=1){var%20h=0;if(c.isDark(a,b))h+=1;if(c.isDark(a+1,b))h+=1;if(c.isDark(a,b+1))h+=1;if(c.isDark(a+1,b+1))h+=1;if(h==0||h==4){e+=3}}}for(var%20a=0;a%3Cd;a+=1){for(var%20b=0;b%3Cd-6;b+=1){if(c.isDark(a,b)%26%26!c.isDark(a,b+1)%26%26c.isDark(a,b+2)%26%26c.isDark(a,b+3)%26%26c.isDark(a,b+4)%26%26!c.isDark(a,b+5)%26%26c.isDark(a,b+6)){e+=40}}}for(var%20b=0;b%3Cd;b+=1){for(var%20a=0;a%3Cd-6;a+=1){if(c.isDark(a,b)%26%26!c.isDark(a+1,b)%26%26c.isDark(a+2,b)%26%26c.isDark(a+3,b)%26%26c.isDark(a+4,b)%26%26!c.isDark(a+5,b)%26%26c.isDark(a+6,b)){e+=40}}}var%20j=0;for(var%20b=0;b%3Cd;b+=1){for(var%20a=0;a%3Cd;a+=1){if(c.isDark(a,b)){j+=1}}}var%20k=Math.abs(100*j/d/d-50)/5;e+=k*10;return%20e};return%20d}();var%20c=function(){var%20b=new%20Array(256);var%20d=new%20Array(256);for(var%20a=0;a%3C8;a+=1){b[a]=1%3C%3Ca}for(var%20a=8;a%3C256;a+=1){b[a]=b[a-4]^b[a-5]^b[a-6]^b[a-8]}for(var%20a=0;a%3C255;a+=1){d[b[a]]=a}var%20c={};c.glog=function(a){if(a%3C1){throw%20new%20Error('glog('+a+')')}return%20d[a]};c.gexp=function(a){while(a%3C0){a+=255}while(a%3E=256){a-=255}return%20b[a]};return%20c}();function%20f(b,e){if(typeof%20b.length=='undefined'){throw%20new%20Error(b.length+'/'+e)}var%20d=function(){var%20a=0;while(a%3Cb.length%26%26b[a]==0){a+=1}var%20d=new%20Array(b.length-a+e);for(var%20c=0;c%3Cb.length-a;c+=1){d[c]=b[c+a]}return%20d}();var%20a={};a.getAt=function(a){return%20d[a]};a.getLength=function(){return%20d.length};a.multiply=function(e){var%20g=new%20Array(a.getLength()+e.getLength()-1);for(var%20b=0;b%3Ca.getLength();b+=1){for(var%20d=0;d%3Ce.getLength();d+=1){g[b+d]^=c.gexp(c.glog(a.getAt(b))+c.glog(e.getAt(d)))}}return%20f(g,0)};a.mod=function(d){if(a.getLength()-d.getLength()%3C0){return%20a}var%20g=c.glog(a.getAt(0))-c.glog(d.getAt(0));var%20e=new%20Array(a.getLength());for(var%20b=0;b%3Ca.getLength();b+=1){e[b]=a.getAt(b)}for(var%20b=0;b%3Cd.getLength();b+=1){e[b]^=c.gexp(c.glog(d.getAt(b))+g)}return%20f(e,0).mod(d)};return%20a};var%20i=function(){var%20a=[[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=function(b,c){var%20a={};a.totalCount=b;a.dataCount=c;return%20a};var%20b={};var%20d=function(b,c){switch(c){case%20e.L:return%20a[(b-1)*4+0];case%20e.M:return%20a[(b-1)*4+1];case%20e.Q:return%20a[(b-1)*4+2];case%20e.H:return%20a[(b-1)*4+3];default:return%20undefined}};b.getRSBlocks=function(h,i){var%20b=d(h,i);if(typeof%20b=='undefined'){throw%20new%20Error('bad%20rs%20block%20%40%20typeNumber:'+h+'/errorCorrectionLevel:'+i)}var%20g=b.length/3;var%20e=new%20Array;for(var%20a=0;a%3Cg;a+=1){var%20j=b[a*3+0];var%20k=b[a*3+1];var%20l=b[a*3+2];for(var%20f=0;f%3Cj;f+=1){e.push(c(k,l))}}return%20e};return%20b}();var%20j=function(){var%20b=new%20Array;var%20c=0;var%20a={};a.getBuffer=function(){return%20b};a.getAt=function(a){var%20c=Math.floor(a/8);return(b[c]%3E%3E%3E7-a%258%261)==1};a.put=function(d,c){for(var%20b=0;b%3Cc;b+=1){a.putBit((d%3E%3E%3Ec-b-1%261)==1)}};a.getLengthInBits=function(){return%20c};a.putBit=function(d){var%20a=Math.floor(c/8);if(b.length%3C=a){b.push(0)}if(d){b[a]|=128%3E%3E%3Ec%258}c+=1};return%20a};var%20k=function(d){var%20e=a.MODE_8BIT_BYTE;var%20f=d;var%20c=g.stringToBytes(d);var%20b={};b.getMode=function(){return%20e};b.getLength=function(a){return%20c.length};b.write=function(b){for(var%20a=0;a%3Cc.length;a+=1){b.put(c[a],8)}};return%20b};var%20h=function(){var%20b=new%20Array;var%20a={};a.writeByte=function(a){b.push(a%26255)};a.writeShort=function(b){a.writeByte(b);a.writeByte(b%3E%3E%3E8)};a.writeBytes=function(e,c,d){c=c||0;d=d||e.length;for(var%20b=0;b%3Cd;b+=1){a.writeByte(e[b+c])}};a.writeString=function(c){for(var%20b=0;b%3Cc.length;b+=1){a.writeByte(c.charCodeAt(b))}};a.toByteArray=function(){return%20b};a.toString=function(){var%20a='';a+='[';for(var%20c=0;c%3Cb.length;c+=1){if(c%3E0){a+=','}a+=b[c]}a+=']';return%20a};return%20a};var%20m=function(){var%20b=0;var%20a=0;var%20d=0;var%20e='';var%20c={};var%20f=function(a){e+=String.fromCharCode(g(a%2663))};var%20g=function(a){if(a%3C0){}else%20if(a%3C26){return%2065+a}else%20if(a%3C52){return%2097+(a-26)}else%20if(a%3C62){return%2048+(a-52)}else%20if(a==62){return%2043}else%20if(a==63){return%2047}throw%20new%20Error('n:'+a)};c.writeByte=function(c){b=b%3C%3C8|c%26255;a+=8;d+=1;while(a%3E=6){f(b%3E%3E%3Ea-6);a-=6}};c.flush=function(){if(a%3E0){f(b%3C%3C6-a);b=0;a=0}if(d%253!=0){var%20g=3-d%253;for(var%20c=0;c%3Cg;c+=1){e+='='}}};c.toString=function(){return%20e};return%20c};var%20n=function(g){var%20d=g;var%20b=0;var%20c=0;var%20a=0;var%20e={};e.read=function(){while(a%3C8){if(b%3E=d.length){if(a==0){return-1}throw%20new%20Error('unexpected%20end%20of%20file./'+a)}var%20e=d.charAt(b);b+=1;if(e=='='){a=0;return-1}else%20if(e.match(/^\s$/)){continue}c=c%3C%3C6|f(e.charCodeAt(0));a+=6}var%20g=c%3E%3E%3Ea-8%26255;a-=8;return%20g};var%20f=function(a){if(65%3C=a%26%26a%3C=90){return%20a-65}else%20if(97%3C=a%26%26a%3C=122){return%20a-97+26}else%20if(48%3C=a%26%26a%3C=57){return%20a-48+52}else%20if(a==43){return%2062}else%20if(a==47){return%2063}else{throw%20new%20Error('c:'+a)}};return%20e};var%20o=function(e,f){var%20b=e;var%20d=f;var%20a=new%20Array(e*f);var%20c={};c.setPixel=function(c,d,e){a[d*b+c]=e};c.write=function(a){a.writeString('GIF87a');a.writeShort(b);a.writeShort(d);a.writeByte(128);a.writeByte(0);a.writeByte(0);a.writeByte(0);a.writeByte(0);a.writeByte(0);a.writeByte(255);a.writeByte(255);a.writeByte(255);a.writeString(',');a.writeShort(0);a.writeShort(0);a.writeShort(b);a.writeShort(d);a.writeByte(0);var%20f=2;var%20e=i(f);a.writeByte(f);var%20c=0;while(e.length-c%3E255){a.writeByte(255);a.writeBytes(e,c,255);c+=255}a.writeByte(e.length-c);a.writeBytes(e,c,e.length-c);a.writeByte(0);a.writeString(';')};var%20g=function(e){var%20d=e;var%20a=0;var%20b=0;var%20c={};c.write=function(c,e){if(c%3E%3E%3Ee!=0){throw%20new%20Error('length%20over')}while(a+e%3E=8){d.writeByte(255%26(c%3C%3Ca|b));e-=8-a;c%3E%3E%3E=8-a;b=0;a=0}b=c%3C%3Ca|b;a=a+e};c.flush=function(){if(a%3E0){d.writeByte(b)}};return%20c};var%20i=function(n){var%20k=1%3C%3Cn;var%20o=(1%3C%3Cn)+1;var%20d=n+1;var%20b=j();for(var%20l=0;l%3Ck;l+=1){b.add(String.fromCharCode(l))}b.add(String.fromCharCode(k));b.add(String.fromCharCode(o));var%20m=h();var%20f=g(m);f.write(k,d);var%20e=0;var%20c=String.fromCharCode(a[e]);e+=1;while(e%3Ca.length){var%20i=String.fromCharCode(a[e]);e+=1;if(b.contains(c+i)){c=c+i}else{f.write(b.indexOf(c),d);if(b.size()%3C4095){if(b.size()==1%3C%3Cd){d+=1}b.add(c+i)}c=i}}f.write(b.indexOf(c),d);f.write(o,d);f.flush();return%20m.toByteArray()};var%20j=function(){var%20b={};var%20c=0;var%20a={};a.add=function(d){if(a.contains(d)){throw%20new%20Error('dup%20key:'+d)}b[d]=c;c+=1};a.size=function(){return%20c};a.indexOf=function(a){return%20b[a]};a.contains=function(a){return%20typeof%20b[a]!='undefined'};return%20a};return%20c};var%20l=function(g,i,n,l){var%20f=o(g,i);for(var%20b=0;b%3Ci;b+=1){for(var%20c=0;c%3Cg;c+=1){f.setPixel(c,b,n(c,b))}}var%20j=h();f.write(j);var%20d=m();var%20k=j.toByteArray();for(var%20e=0;e%3Ck.length;e+=1){d.writeByte(k[e])}d.flush();var%20a='';a+='%3Cimg';a+='%20src=%22';a+='data:image/gif;base64,';a+=d;a+='%22';a+='%20width=%22';a+=g;a+='%22';a+='%20height=%22';a+=i;a+='%22';if(l){a+='%20alt=%22';a+=l;a+='%22'}a+='/%3E';return%20a};return%20g}();(function(a){if(typeof%20define==='function'%26%26define.amd){define([],a)}else%20if(typeof%20c==='object'){b.exports=a()}}(function(){return%20a}))},{}]},{},[1]))}())

一大堆 Api,但是 Chrome 打开可能看不到正文,可以尝试用 Edge

又是一大波 Api

1 个赞

Firefox 可以把这类 API 当搜索引擎加入,然后编个二维码分享网址或文本。电脑上可以通过 Ready2Search 这个工具,按照网页上面的指示来添加。
安卓上面直须把关键字打成 %s(注意大小写),通过设置添加,需要打开显示搜索建议这个选项。



一直用的谷歌的

昨晚找到了这个加到右键搜里了:https://cli.im/api/qrcode/code?text=%s

https://cli.im/api/qrcode/code?text=https://meta.appinn.net/t/topic/10869/9

来找一个给我,我找很久了。

论坛的 JS 大佬!

你看标题里的特征是什么?

本来想用 DuckDuckGo 搜一下的,结果发现 DuckDuckGo 有个生成二维码的功能: qr code %s at DuckDuckGo

比如:qr code appinn at DuckDuckGo

看不到诶