您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name 自动获取所有SSR // @namespace http://www.cichui.top/ // @version 0.2 // @description try to take over the world! // @author You // @match https://www.akgs.ml/free_ssr* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... window.getSsrData = function (){ layer.open({ title:'节点信息', area:'800px', offset: 't', btn: '一键复制', yes: function(index, layero){ layui.$("#ssrStr").focus(); $("#ssrStr").select(); document.execCommand("Copy"); layer.msg('复制成功!'); }, skin: 'layui-layer-molv', content: '<textarea class="layui-textarea" style="width:100%;height:600px;background-color: #eaeaea;" id="ssrStr" readonly></textarea><span style="color:#ff1f46;">全选复制后在任务栏SSR图标上点击右键选择剪贴板批量导入</span>' }); layer.load(1, {time: 10*1000}); GetData(1); } window.GetData = function (inPage){ layui.$.ajax({ type:"GET", url:"https://www.akgs.ml/api/free_ssr?page="+inPage+"&limit=90", dataType: "json", async: true, success: function(data) { var outPage = parseInt(data.count/90+(data.count%90>0?1:0)); if(inPage<=outPage){ for(var j=0; j<data.data.length;j++){ if(data.data[j].m_station_cn_status) { $("#ssrStr").append(data.data[j].ssrlink+"\n\n"); } } window.GetData(++inPage); } else{ layer.closeAll('loading'); } } }); } layui.$("#data").append('<button class="layui-btn" type="button" onclick="window.getSsrData()">查看所有节点</button>'); window.getSsrData(); })();