From 82ce118d1dfddfa3aedb270494f93fe40d78880b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 22 Oct 2024 08:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index a6fc237a..640e84ec 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -593,30 +593,14 @@ function dianboerji() { return SrcParseS.聚影(input, dataObj); }, dataObj); } - function extraJS(playUrl) { - if(/jqqzx\.me|dadazhu\.me/.test(playUrl)){ - return $.toString(() => { - function check() { - try { - let iframe = document.querySelector('#playleft iframe'); - let iframeDocument = iframe.contentDocument || iframe.contentWindow.document; - iframeDocument.querySelector("#start").click(); - } catch (e) { - setTimeout(check, 200); - } - } - check(); - }) - }else{ - return undefined; - } - } + let playSet = storage0.getItem('playSet') || {}; let len = 列表.slice(0, 10).concat(列表.slice(-10)).reduce((max, str) => Math.max(max, str.split('$')[0].replace(name,"").trim().length), 0); let col_type = 列表.length > 4 && len < 5 ? 'text_4' : len > 10 ? 'text_1' : len>4&&len<7 ? 'text_3' :'text_2'; let sniffer = erdata["sniffer"] || {}; let videocontain = sniffer["contain"] || undefined; let videoexclude = sniffer["exclude"] || ['m3u8.js','?url=']; + require(config.依赖.replace(/[^/]*$/,'') + 'SrcJyMethod.js'); for(let i=0; i<列表.length; i++) { let playtitle = 列表[i].split('$')[0]; playtitle = playtitle==name?'正片':playtitle.replace(name+" - ","").replace(name+"_","").replace(name,"").replace("《》","").replace("<>","").replace("[]","").trim(); @@ -626,7 +610,7 @@ function dianboerji() { let extra = { id: name + "_选集_" + (pageid?pageid+"_":"") + i, jsLoadingInject: true, - js: extraJS(playurl), + js: jsClick(playurl), blockRules: ['.m4a', '.mp3', '.gif', '.jpeg', '.jpg', '.ico', '.png', 'hm.baidu.com', '/ads/*.js', 'cnzz.com'], videoRules: videocontain, videoExcludeRules: videoexclude,