放牧的风-将每条转换成url

try to take over the world!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         放牧的风-将每条转换成url
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       chenngLee
// @match        https://www.youneed.win/free-ss
// @grant        none
// ==/UserScript==

(function() {
 function utf8ToBase64(str){
  return btoa(unescape(encodeURIComponent(str)));
}
var s2 = document.querySelectorAll("#post-box > div > section > div > table > tbody > tr")
var ss_LinkList = [];
for (var i=0; i<s2.length; i++) {
ss_LinkList.push('ss://'+utf8ToBase64((s2[i].children[3].innerText+':'+s2[i].children[2].innerText+'@'+s2[i].children[0].innerText+':'+s2[i].children[1].innerText )));
}
console.log(ss_LinkList.join('\n'))

alert("请按F12,查看console")

})();