Skip to content

Instantly share code, notes, and snippets.

View jy00566722's full-sized avatar
😚
now ,whos is girl

jy00566722

😚
now ,whos is girl
View GitHub Profile
@jy00566722
jy00566722 / ssrLinkParser.js
Created April 25, 2018 11:58 — forked from jizusun/ssrLinkParser.js
SSR 链接解析
// https://github.com/shadowsocksr-backup/shadowsocks-rss/wiki/SSR-QRcode-scheme
// https://stackoverflow.com/a/30106551/3074866
function b64DecodeUnicode(str) {
return decodeURIComponent(Array.prototype.map.call(atob(str), function(c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)
}).join(''))
}