Last active
September 18, 2019 12:01
-
-
Save zzilch/f55210e96b659d90cd1b9165ca5c9a8d to your computer and use it in GitHub Desktop.
free-ss-parser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name free-ss-parser | |
// @namespace https://gist.github.com/zzilch/f55210e96b659d90cd1b9165ca5c9a8d | |
// @version 0.1 | |
// @description parse free-ss server to ss-link | |
// @author zzilch | |
// @match http://free-ss.site/* | |
// @grant GM_setClipboard | |
// @run-at context-menu | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let rows = $("#tbss > tbody > tr"); | |
let servers = [] | |
rows.each(function(index,data){ | |
let row = $(data).children() | |
servers.push('ss://' + btoa(row[3].innerText+':'+row[4].innerText+'@'+row[1].innerText+':'+row[2].innerText)); | |
}); | |
GM_setClipboard(servers.join('\n'),'text'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment