您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
help you copy ss accounts
// ==UserScript== // @name fress-site // @namespace http://tampermonkey.net/ // @version 0.1 // @description help you copy ss accounts // @author You // @match https://free-ss.site/ // @icon https://www.google.com/s2/favicons?domain=free-ss.site // @grant none // ==/UserScript== (function() { 'use strict'; var timer = null; var getaccounts = function() { var trs = document.querySelectorAll('#tbss tr'); var accounts = Array.from(trs) .map(function(tr) { var a = []; var tds = tr.querySelectorAll('td'); if (tds.length !== 8) return ''; tds.forEach(function(td) { a.push(td.textContent.trim()); }); return 'ss://' + btoa(a[3] + ':' + a[4] + '@' + a[1] + ':' + a[2]); }).filter(Boolean); if (!accounts.length) { setTimeout(getaccounts, 200); return; } clearTimeout(timer); navigator.clipboard.writeText(accounts.join('\n')).then( function () { alert('copied!'); }, function () { alert('failed' + e.message); } ); }; timer = setTimeout(getaccounts, 200); // GM_setClipboard(accounts, 'text') // Your code here... })();