Skip to content

Instantly share code, notes, and snippets.

@leadscloud
Created March 23, 2020 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leadscloud/a2d54fb9a2aaf4f4fe15dd175b4d4237 to your computer and use it in GitHub Desktop.
Save leadscloud/a2d54fb9a2aaf4f4fe15dd175b4d4237 to your computer and use it in GitHub Desktop.
获取free-ss.site的账号并生成订阅内容
var table = $('#tbss').DataTable();
var data = table.rows().data();
var groups = [];
Array.from(data).forEach(e => {
let ss = `${e[3]}:${e[4]}@${e[1]}:${e[2]}`
let str = 'ss://' + btoa(ss)
let ssr = `${e[1]}:${e[2]}:origin:${e[3]}:plain:${btoa(e[4]).replace(/=/g, "")}/?remarks=${btoa(e[6]).replace(/=/g, "")}&group=${btoa("free-ss.site").replace(/=/g, "")}`
console.info("ssr://" + btoa(ssr))
groups.push("ssr://" + btoa(ssr).replace(/\//, "_"))
});
btoa(groups.join("\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment