增加谷歌跨域说明
This commit is contained in:
parent
7ae29a866e
commit
d3892b0209
@ -1,3 +1,9 @@
|
||||
###### 2023/06/12
|
||||
- [X] 发布新版本,增加谷歌跨域设置说明。播放页手动增加&debug=1 这个参数可以实现强制嗅探(浏览器支持跨域的情况下手动调试使用)
|
||||
```text
|
||||
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-site-isolation-trials --disable-web-security --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --user-data-dir=C:\Program Files\Google\Chrome\Application
|
||||
```
|
||||
|
||||
###### 2023/06/09
|
||||
- [X] 发布新版本,增加上传源覆盖提示,增加在线编辑源功能(手机使用可能在此界面会卡死,推荐电脑)
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
3.9.43beta8
|
||||
3.9.43beta9
|
||||
28
js/扛把子影院.js
Normal file
28
js/扛把子影院.js
Normal file
@ -0,0 +1,28 @@
|
||||
var rule={
|
||||
title:'扛把子影院',
|
||||
//host:'https://www.2023kan.com',
|
||||
host:'https://www.90yc.com',
|
||||
hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});HOST = jsp.pdfh(html,"ul&&li&&a&&href")',
|
||||
url:'/type/fyclass/fypage.html',
|
||||
searchUrl:'/s/**/fypage.html',
|
||||
searchable:0,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
filterable:0,//是否启用分类筛选,
|
||||
class_parse:'#sj-nav-1&&ul&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||
cate_exclude:'福利',
|
||||
play_parse:true,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'.main&&ul&&li;a&&title;img&&src;i&&Text;a&&href',
|
||||
double:true, // 推荐内容是否双层定位
|
||||
一级:'.main&&ul&&li;a&&title;img&&src;i&&Text;a&&href',
|
||||
二级:{
|
||||
"title":"h1&&a:eq(2)&&Text;.ct-c&&dl&&dd:eq(1)--span&&Text",
|
||||
"img":".lazy img&&src",
|
||||
"desc":"ct-c&&dl&&dt:eq(1)--span&&Text;.ct-c&&dl&&dd:eq(2)--span&&Text;.ct-c&&dl&&dd:eq(0)--span&&Text;;",
|
||||
"content":".ct-c&&.ee&&Text",
|
||||
"tabs":"#stab1&&.playfrom li",
|
||||
"lists":".videourl:eq(#id) li"
|
||||
},
|
||||
搜索:'.main&&ul&&li;a&&title;img&&src;i&&Text;a&&href',
|
||||
}
|
||||
@ -60,6 +60,10 @@ cd utils && wget https://ghproxy.liuzhicong.com/https://raw.githubusercontent.co
|
||||
```
|
||||
执行后重启9001或者docker即可正常检测升级
|
||||
|
||||
### 谷歌浏览器跨域支持嗅探
|
||||
```text
|
||||
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-site-isolation-trials --disable-web-security --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --user-data-dir=C:\Program Files\Google\Chrome\Application
|
||||
```
|
||||
|
||||
#### 参考地址
|
||||
[参考T4](https://github.com/sec-an/TV_Spider/blob/main/spider/sp360.py)
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
<button v-show="iframeShow" @click="openTestVideo">测试直链</button>
|
||||
<iframe id="iframe-player" :src="iframeSrc" v-show="iframeShow"
|
||||
allowfullscreen="true" allowtransparency="true" webkitallowfullscreen="true" mozallowfullscreen="true"
|
||||
allow-same-origin="true"
|
||||
allow-same-origin="true" autoplay=1
|
||||
name="iframe-player" scrolling="no" frameborder="0" ref="iframeRef"
|
||||
></iframe>
|
||||
</a>
|
||||
@ -278,12 +278,17 @@ const app = createApp({
|
||||
if(res.redirect){ // 重定向的直接设置播放器的值
|
||||
if(isVideo(res.url)){ // 判断重定向的为直链
|
||||
methods.setPlayUrl(res.url);
|
||||
return
|
||||
}else{
|
||||
console.log('重定向待嗅探页面,但是由于跨域问题,只好内嵌播放页播放');
|
||||
iframeSrc.value = res.url;
|
||||
}
|
||||
return
|
||||
// throw new Error('重定向网页直接播放,尝试嗅探(存在跨域无法嗅探问题,暂时考虑直接内嵌人家的播放页)');
|
||||
console.log(location.href);
|
||||
if(location.href.includes('debug=1')){
|
||||
throw new Error('重定向网页直接播放,尝试嗅探(存在跨域无法嗅探问题,暂时考虑直接内嵌人家的播放页)');
|
||||
}else{
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// const res = await axios.get(url,{maxRedirects: 0});
|
||||
@ -374,6 +379,9 @@ const app = createApp({
|
||||
// iframeSrc.value = ctx.value.path+'?url='+'https://sf9-dycdn-tos.pstatp.com/obj/tos-cn-i-8gu37r9deh/7c399215485c40cb9f1d1da640354a12?filename=1.mp4';
|
||||
},
|
||||
setPlayUrl(url){
|
||||
if(url.includes('url=')){
|
||||
url = url.split('url=')[1];
|
||||
}
|
||||
iframeSrc.value = ctx.value.path+'?url='+url;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user