From 856331967c1b954dfd20beb517c28ccdf22e10f5 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 24 Jul 2024 17:29:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 5e7bffbc..b1f330d7 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -192,6 +192,11 @@ function getJkTags(datas){ }) return tags; } +//乱序方法 +function shuffleArray(array) { + array.sort(() => Math.random() - 0.5); + return array; +} //获取在线文件内容 function getJkContnet(url) { if(!url.startsWith('http')){ @@ -199,6 +204,7 @@ function getJkContnet(url) { } if(url.startsWith('https://raw.github')){ let proxys = $.require('ghproxy').getproxy(); + shuffleArray(proxys); for(let i=0;i') && !content.startsWith('')) {