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);