Spaces:
Running
Running
| [ | |
| { | |
| "name":"抖音", | |
| "url_patterns":[ | |
| "https?://v\\.douyin\\.com/[-=&%\\w]+/?" | |
| ], | |
| "pc":{ | |
| "page_start_javascript":[ | |
| "(function(){ /*window.java_obj.showPcWebview();*/ })();" | |
| ], | |
| "page_finish_javascript":[ | |
| "(function(){ console.log('length:'+document.querySelectorAll('.video-detail-container video,.note-detail-container video,.note-detail-container img').length); })();", | |
| "(function(){function getResource(){console.log('getResource');if(document.querySelectorAll('.video-detail-container video,.note-detail-container video,.note-detail-container img[src*=\"douyinpic.com\"]').length>0){console.log('getResource founded');document.querySelectorAll('.note-detail-container img[src*=\"douyinpic.com\"]').forEach(item=>window.java_obj.addResourceUrl(item.getAttribute('src')));document.querySelectorAll('.note-detail-container video').forEach(item=>window.java_obj.addResourceUrl(item.querySelector('source').getAttribute('src')));document.querySelectorAll('.video-detail-container video').forEach(item=>window.java_obj.addResourceUrl(item.querySelector('source').getAttribute('src')));window.java_obj.handlePcFinish()}else{console.log('getResource not founded');setTimeout(function(){getResource()},2000)}}function checkIsResourceExists(){document.querySelectorAll('*').forEach(element => {if(element.textContent.includes('你要观看的视频不存在')){window.java_obj.handlePcFinish()}});}function checkCaptcha(){if(document.querySelector('#captcha_container')!=null){window.java_obj.showPcWebview()}else{checkIsResourceExists();setTimeout(function(){getResource()},2000);setTimeout(function(){window.java_obj.reloadPc()},10000)}}checkCaptcha()})();" | |
| ], | |
| "web_resource_request_javascript":[] | |
| }, | |
| "wap":{ | |
| "page_start_javascript":[], | |
| "page_finish_javascript":[ | |
| "(function(){function getInfo(){if(window._ROUTER_DATA==undefined){setTimeout(function(){console.log('Has no _ROUTER_DATA');getInfo()},2000);return}console.log(JSON.stringify(window._ROUTER_DATA));let page=null;if(window._ROUTER_DATA.loaderData.hasOwnProperty('note_(id)/page')){page=window._ROUTER_DATA.loaderData['note_(id)/page'];window.java_obj.setBundle('type','note')}if(window._ROUTER_DATA.loaderData.hasOwnProperty('video_(id)/page')){page=window._ROUTER_DATA.loaderData['video_(id)/page'];window.java_obj.setBundle('type','video')}window.java_obj.setBundle('desc',page.videoInfoRes.item_list[0].desc);window.java_obj.setBundle('nickname',page.videoInfoRes.item_list[0].author.nickname);window.java_obj.setBundle('signature',page.videoInfoRes.item_list[0].author.signature);window.java_obj.setBundle('unique_id',page.videoInfoRes.item_list[0].author.unique_id);window.java_obj.setBundle('sec_uid',page.videoInfoRes.item_list[0].author.sec_uid);window.java_obj.setBundle('avatar',page.videoInfoRes.item_list[0].author.avatar_medium.url_list[0]);window.java_obj.handleWapFinish()}function checkIsResourceExists(){document.querySelectorAll('*').forEach(element => {if(element.textContent.includes('抱歉,作品不见了')){window.java_obj.message('抱歉,作品不见了');window.java_obj.handleWapFinish()}});}if(new RegExp('/(www.iesdouyin.com|m.douyin.com)\/(share\/)?(video|note)/','').test(window.location.href)){checkIsResourceExists();getInfo()}})();" | |
| ], | |
| "web_resource_request_javascript":[ | |
| "(function(){ if(new RegExp('/(www.iesdouyin.com|m.douyin.com)\/web\/api\/v2\/aweme\/slidesinfo\//', '').test('[url]')){window.java_obj.getWapJsonByUrl('[url]','_slides_info');function getInfo(){if (window._slides_info==undefined){setTimeout(function(){getInfo()},1000);return;}window.java_obj.setBundle('desc',window._slides_info.aweme_details[0].share_info.share_title);window.java_obj.setBundle('nickname',window._slides_info.aweme_details[0].author.nickname);window.java_obj.setBundle('signature',window._slides_info.aweme_details[0].author.signature);window.java_obj.setBundle('unique_id',window._slides_info.aweme_details[0].author.unique_id);window.java_obj.setBundle('sec_uid',window._slides_info.aweme_details[0].author.sec_uid);window.java_obj.setBundle('avatar',window._slides_info.aweme_details[0].author.avatar_thumb.url_list[0]);window.java_obj.handleWapFinish();} getInfo();} })();" | |
| ] | |
| } | |
| }, | |
| { | |
| "name":"快手", | |
| "url_patterns":[ | |
| "https?://v\\.kuaishou\\.com/[-=&%\\w]+/?" | |
| ], | |
| "pc":{ | |
| "page_start_javascript":[], | |
| "page_finish_javascript":[ | |
| "window.java_obj.handlePcFinish();" | |
| ], | |
| "web_resource_request_javascript":[] | |
| }, | |
| "wap":{ | |
| "page_start_javascript":[], | |
| "page_finish_javascript":[ | |
| "(function(){let eid='';let cdn='';function getInfo1(){Object.keys(window.INIT_STATE).forEach(function(item){if(window.INIT_STATE[item]==undefined){return}if(window.INIT_STATE[item].userProfile==undefined){return}if(window.INIT_STATE[item].userProfile.profile.eid!=eid){return}window.java_obj.setBundle('signature',window.INIT_STATE[item].userProfile.profile.user_text);window.java_obj.handleWapFinish()})}function getInfo(){if(window.INIT_STATE==undefined){setTimeout(function(){getInfo()},1000);return}Object.keys(window.INIT_STATE).forEach(function(item){if(window.INIT_STATE[item]==undefined){return}if(window.INIT_STATE[item].photo==undefined){return}console.log(window.INIT_STATE[item].photo);window.java_obj.setBundle('desc',window.INIT_STATE[item].photo.caption);window.java_obj.setBundle('nickname',window.INIT_STATE[item].photo.userName);window.java_obj.setBundle('unique_id',window.INIT_STATE[item].photo.userId);window.java_obj.setBundle('sec_uid',window.INIT_STATE[item].photo.userEid);eid=window.INIT_STATE[item].photo.userEid;window.java_obj.setBundle('avatar',window.INIT_STATE[item].photo.headUrl);if(window.INIT_STATE[item].photo.photoType=='VIDEO'){window.java_obj.addResourceUrl(window.INIT_STATE[item].photo.manifest.adaptationSet[0].representation[0].backupUrl[0])}if(window.INIT_STATE[item].photo.photoType=='HORIZONTAL_ATLAS'){cdn='https://'+window.INIT_STATE[item].photo.ext_params.atlas.cdn[0];window.INIT_STATE[item].photo.ext_params.atlas.list.forEach(function(item){window.java_obj.addResourceUrl(cdn+item)})}getInfo1()})}getInfo()})();" | |
| ], | |
| "web_resource_request_javascript":[] | |
| } | |
| }, | |
| { | |
| "name":"小红书", | |
| "url_patterns":[ | |
| "https?://xhslink\\.com/a/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"西瓜视频", | |
| "url_patterns":[ | |
| "https?://v\\.ixigua\\.com/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"皮皮虾", | |
| "url_patterns":[ | |
| "https?://h5\\.pipix\\.com/s/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"B站", | |
| "url_patterns":[ | |
| "https?://b23\\.tv/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"A站", | |
| "url_patterns":[ | |
| "https?://m\\.acfun\\.cn/v/\\?[-=&%\\w]+" | |
| ] | |
| }, | |
| { | |
| "name":"今日头条", | |
| "url_patterns":[ | |
| "https?://m\\.toutiao\\.com/is/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"虎牙视频", | |
| "url_patterns":[ | |
| "https?://hy\\.fan/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"腾讯微视", | |
| "url_patterns":[ | |
| "https?://video\\.weishi\\.qq\\.com/[-=&%\\w]+/?" | |
| ] | |
| }, | |
| { | |
| "name":"好看视频", | |
| "url_patterns":[ | |
| "https?://haokan\\.baidu\\.com/v\\?[-=&%\\w]+" | |
| ] | |
| }, | |
| { | |
| "name":"最右", | |
| "url_patterns":[ | |
| "https?://share\\.xiaochuankeji\\.cn/hybrid/share/post\\?[-=&%\\w]+" | |
| ] | |
| }, | |
| { | |
| "name":"皮皮搞笑", | |
| "url_patterns":[ | |
| "https?://h5\\.pipigx\\.com/pp/post/\\w+\\?[-=&%\\w]+" | |
| ] | |
| } | |
| ] | |