From 4b8bbceff2f79f78758627ac7dc6b580d7767049 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 1 Nov 2024 21:52:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyMenu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyMenu.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/SrcJyMenu.js b/SrcJyMenu.js index a732df8c..cd20dbf6 100644 --- a/SrcJyMenu.js +++ b/SrcJyMenu.js @@ -406,6 +406,36 @@ function lookset() { pic_url: playSet['dmRoute']?getIcon("点播-开.svg"):getIcon("关.svg"), col_type: "text_icon" }); + d.push({ + col_type: "line" + }); + d.push({ + title: '开启清除m3u8广告', + url: $('#noLoading#').lazyRule((playSet) => { + let sm; + if (playSet['clearM3u8Ad']) { + playSet['clearM3u8Ad'] = 0; + sm = '关闭小程序主动清除m3u8广告'; + } else { + playSet['clearM3u8Ad'] = 1; + sm = '开启小程序主动清除m3u8广告'; + } + storage0.putMyVar('playSet', playSet); + refreshPage(false); + return 'toast://' + sm; + }, playSet), + pic_url: playSet['clearM3u8Ad']?getIcon("点播-开.svg"):getIcon("关.svg"), + col_type: "text_icon" + }); + d.push({ + title: '查看m3u8广告规则', + url: $('#noLoading#').lazyRule(() => { + let m3u8Ad_file = globalMap0.getVar('Jy_gmParams').rulepath + "m3u8_ad_rule.json"; + return "editFile://" + m3u8Ad_file; + }), + pic_url: 箭头图标, + col_type: "text_icon" + }); d.push({ title: '
', col_type: 'rich_text'