From 3422e4336019700434bf823701de5c0b6a75940c Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 8 Oct 2020 22:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E9=85=B7=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index d219774..fde8519 100644 --- a/tieba page.js +++ b/tieba page.js @@ -340,7 +340,17 @@ videos.forEach(video => { let src = video.getAttribute('data-vhsrc'); let img = video.querySelector('img'); - video.outerHTML = ``; + let hr = video.getAttribute('data-vsrc'); + if (src) { + video.outerHTML = ``; + } else if (hr && hr.indexOf('youku.com') > -1) { + let r = hr.split('id_')[1].replace('.html', '') + video.outerHTML = `` + + } else { + + } + }); } url(e);