共计 1858 个字符,预计需要花费 5 分钟才能阅读完成。
为了有个好看的 github 用户名
找了几个对称的字符 x,v,o,m,w,8,0,-
生成回文格式
到 github 注册页面 用 chrome 调试控制台 执行 js 验证用户名
5 个字符内,以下用户名还没有被注册
[
"8ww8",
"w88w",
"8mm8",
"8xmx8",
"0xvx0",
"8-0-8",
"8wvw8",
"omwmo",
"0m8m0",
"mvwvm",
"80-08",
"8oxo8",
"8-v-8",
"w8-8w",
"8xwx8",
"ow8wo",
"8o0o8",
"08-80",
"8o-o8",
"0mvm0",
"xv8vx",
"x808x",
"8wxw8",
"8mwm8",
"mv0vm",
"x8v8x",
"0wmw0",
"w0m0w",
"vw8wv",
"xmomx",
"8wmw8",
"08w80",
"8m0m8",
"8mom8",
"o8w8o",
"wm-mw",
"x-8-x",
"8vmv8",
"8-o-8",
"w-8-w",
"mxoxm",
"o8m8o",
"w-m-w",
"0-x-0",
"vwmwv",
"vwowv",
"0w8w0",
"0mwm0",
"vmomv",
"xmvmx",
"mxvxm",
"8-w-8",
"0wow0",
"8mxm8",
"0vwv0",
"0xwx0",
"ovmvo",
"0x8x0",
"mvovm",
"mwvwm",
"0-8-0",
"mo8om",
"8vxv8",
"w0-0w",
"0wvw0",
"8wow8",
"v8w8v",
"0mxm0",
"m080m",
"ovxvo",
"xm0mx",
"0w-w0",
"x8o8x",
"0ovo0",
"owxwo",
"0vmv0",
"mv8vm",
"80m08",
"m-8-m",
"80w08",
"mw0wm",
"mxwxm",
"om0mo",
"8x0x8",
"0wxw0",
"8vov8",
"8-m-8",
"8-x-8",
"m8x8m",
"0-m-0",
"wv-vw",
"08m80",
"8mvm8",
"v808v",
"vxmxv",
"v8o8v",
"80x08",
"ov8vo",
"v080v",
"08x80",
"xm8mx",
"0omo0",
"0mom0",
"8vwv8",
"vw0wv",
"8x-x8",
"0v8v0",
"0o8o0",
"om8mo",
"mwowm",
"omxmo",
"8w0w8",
"wmxmw",
"8v0v8",
"0v-v0",
"vx8xv",
"0vov0",
"0owo0",
"ov-vo",
"m8-8m",
"o8x8o",
"mw8wm",
"m8w8m",
"mx0xm",
"wmvmw",
"o8-8o",
"v8m8v",
"xv0vx",
"mwxwm",
"8w-w8",
"8omo8",
"v8x8v",
"xvmvx",
"0vxv0",
"mx8xm",
"80v08",
"xwmwx",
"8m-m8",
"8v-v8",
"w8m8w"
]
验证代码
function run(list) {if (list.length===0) {return}
user_login.value = list.pop();
user_login.dispatchEvent(new Event("change"));
requestAnimationFrame(() => {var t= setInterval(() => {if (user_login.className.indexOf('is-autocheck-successful') > -1) {localStorage.setItem(`git.${user_login.value}`, user_login.value)
clearInterval(t)
run(list)
} else if (user_login.className.indexOf('is-autocheck-errored') > -1) {clearInterval(t)
run(list)
}
},500)
})
}
打印结果
var i=0,c=[];while(i++<localStorage.length){if(localStorage.key(i)&&localStorage.key(i).indexOf('git.')==0){c.push(localStorage.getItem(localStorage.key(i)))} }
JSON.stringify(c.sort((a,b)=>a.length>b.length?1:-1),null,2)
正文完
发表至: javascript
2019-11-09