This commit is contained in:
uz
2025-01-25 12:15:47 +08:00
parent c665097052
commit 7d6a93ad38

View File

@@ -145,66 +145,111 @@
<body>
<div class="page-header">
<div class="page-title">uz影视 资源添加</div>
<div class="page-description">uz影视 版本需要 v1.6.41 及以上,建议先打开 app 停留在首页</div>
<div class="page-description" style="color: #ffc107; font-weight: bold">当点击添加无效时请尝试特殊添加。还是不行复制链接uz影视 -> 设置 -> 数据管理 -> 订阅 -> + </div>
<div class="page-description">
uz影视 版本需要 v1.6.41 及以上,建议先打开 app 停留在首页
</div>
<div
class="page-description"
style="color: #ffc107; font-weight: bold"
>
当点击添加无效时请尝试特殊添加。还是不行复制链接uz影视 ->
设置 -> 数据管理 -> 订阅 -> +
</div>
</div>
<div class="custom-resource">
<h3>添加资源</h3>
<div class="url-input-container">
<input type="text" id="customUrl" placeholder="请输入资源链接" />
<input
type="text"
id="customUrl"
placeholder="请输入资源链接"
/>
</div>
<div id="errorMessage" class="error"></div>
<div class="button-row">
<button class="btn" onclick="installResource(false)">添加</button>
<button class="btn" onclick="installResource(true)">特殊添加</button>
<button class="btn" onclick="installResource(false)">
添加
</button>
<button class="btn" onclick="installResource(true)">
特殊添加
</button>
</div>
</div>
<div class="page-description" style="margin-top: 20px; margin-bottom: 10px; color: #ffc107; font-weight: bold">以下资源收录自网络,请自行甄别。</div>
<div
class="page-description"
style="
margin-top: 20px;
margin-bottom: 10px;
color: #ffc107;
font-weight: bold;
"
>
以下资源收录自网络,请自行甄别。
</div>
<div id="resourcesContainer"></div>
<script>
const configs = [
{
title: 'uz影视 all in one 无代理',
description: '整合大佬们开发的资源,感谢所有大佬',
resourceUrl:
'https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/uzAio.json',
},
{
title: 'uz影视 all in one',
description: "整合大佬们开发的资源,感谢所有大佬",
resourceUrl: 'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/uzAio.json',
description: '整合大佬们开发的资源,感谢所有大佬',
resourceUrl:
'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/uzAio.json',
},
{
title: 'pv大佬 all in one',
description: "<a href='https://github.com/proversion2024'>proversion2024</a> 大佬 all in one感谢大佬",
resourceUrl: 'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/uzAio.json',
description:
"<a href='https://github.com/proversion2024'>proversion2024</a> 大佬 all in one感谢大佬",
resourceUrl:
'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/uzAio.json',
},
{
title: '视频源扩展',
description: "视频源扩展大多由 <a href='https://github.com/Yswag'>Yswag</a> 大佬开发,感谢大佬",
resourceUrl: 'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/vod/vod.json',
description:
"视频源扩展大多由 <a href='https://github.com/Yswag'>Yswag</a> 大佬开发,感谢大佬",
resourceUrl:
'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/vod/vod.json',
},
{
title: '网盘工具扩展-夸克、UC、阿里',
description: "阿里解析功能由 <a href='https://github.com/wangdepeng100'>wangdepeng100</a> 大佬开发感谢大佬。iOS15 以下系统无法使用,夸克需要会员",
resourceUrl: 'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/panTools/panTools.json',
description:
"阿里解析功能由 <a href='https://github.com/wangdepeng100'>wangdepeng100</a> 大佬开发感谢大佬。iOS15 以下系统无法使用,夸克需要会员",
resourceUrl:
'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/panTools/panTools.json',
},
{
title: '网盘工具扩展-夸克、UC、阿里、天翼',
description: "<a href='https://github.com/proversion2024'>proversion2024</a> 大佬开发感谢大佬。iOS15 以下系统无法使用,夸克需要会员",
resourceUrl: 'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/panTools/panTools.json',
description:
"<a href='https://github.com/proversion2024'>proversion2024</a> 大佬开发感谢大佬。iOS15 以下系统无法使用,夸克需要会员",
resourceUrl:
'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/panTools/panTools.json',
},
{
title: '网盘源',
description: "<a href='https://github.com/proversion2024'>proversion2024</a> 大佬开发,感谢大佬",
resourceUrl: 'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/vod/vod.json',
description:
"<a href='https://github.com/proversion2024'>proversion2024</a> 大佬开发,感谢大佬",
resourceUrl:
'https://ghproxy.cn/https://raw.githubusercontent.com/proversion2024/uz-extensions/refs/heads/master/vod/vod.json',
},
{
title: '推荐首页扩展',
description: '展示视频推荐',
resourceUrl: 'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/recommend/douban.json',
resourceUrl:
'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/recommend/douban.json',
},
{
title: '采集站',
description: '采集站资源,不需要添加太多两个够用',
resourceUrl: 'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo/main/video_sources_default.json',
resourceUrl:
'https://gh-proxy.com/https://raw.githubusercontent.com/YYDS678/uzVideo/main/video_sources_default.json',
},
]
@@ -243,25 +288,36 @@
const baseScheme = 'uzVideo://uzVideo?action=addSub&url='
const intentScheme = 'intent://uzVideo?action=addSub&url='
const finalUrl = isSpecial ? `${intentScheme}${encodedUrl}#Intent;scheme=uzVideo;end` : `${baseScheme}${encodedUrl}`
const finalUrl = isSpecial
? `${intentScheme}${encodedUrl}#Intent;scheme=uzVideo;end`
: `${baseScheme}${encodedUrl}`
window.location.href = finalUrl
}
// 添加复制函数
function copyToClipboard(text) {
navigator.clipboard.writeText(text).then(() => {
alert('使用路径uz影视 -> 设置 -> 数据管理 -> 订阅 -> +');
alert('复制成功');
}).catch(err => {
const textArea = document.createElement('textarea')
textArea.value = text
document.body.appendChild(textArea)
textArea.select()
document.execCommand('copy')
document.body.removeChild(textArea)
alert('复制失败,请手动复制:\n\n' + text + '\n\n使用路径uz影视 -> 设置 -> 数据管理 -> 订阅 -> +');
});
navigator.clipboard
.writeText(text)
.then(() => {
alert(
'使用路径uz影视 -> 设置 -> 数据管理 -> 订阅 -> +'
)
alert('复制成功')
})
.catch((err) => {
const textArea = document.createElement('textarea')
textArea.value = text
document.body.appendChild(textArea)
textArea.select()
document.execCommand('copy')
document.body.removeChild(textArea)
alert(
'复制失败,请手动复制:\n\n' +
text +
'\n\n使用路径uz影视 -> 设置 -> 数据管理 -> 订阅 -> +'
)
})
}
window.onload = function () {
@@ -272,13 +328,23 @@
resourceGroup.innerHTML = `
<div class="resource-header">
<div class="resource-title">${config.title}</div>
${config.description ? `<div class="resource-description">${config.description}</div>` : ''}
${
config.description
? `<div class="resource-description">${config.description}</div>`
: ''
}
</div>
<div class="button-row">
<button class="copy-btn" onclick="copyToClipboard('${config.resourceUrl}')">复制链接</button>
<button class="copy-btn" onclick="copyToClipboard('${
config.resourceUrl
}')">复制链接</button>
<button class="help-btn" onclick="window.open('https://uz-video-five.vercel.app/help.html')">使用教程</button>
<button class="btn" onclick="installResource(false, '${config.resourceUrl}')">添加</button>
<button class="btn" onclick="installResource(true, '${config.resourceUrl}')">特殊添加</button>
<button class="btn" onclick="installResource(false, '${
config.resourceUrl
}')">添加</button>
<button class="btn" onclick="installResource(true, '${
config.resourceUrl
}')">特殊添加</button>
</div>
`
container.appendChild(resourceGroup)