2024-11-29 11:11:51 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
|
<title>uz影视 资源添加</title>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body {
|
|
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
|
|
max-width: 600px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
|
color: #007bff;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.page-header {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.page-title {
|
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.page-description {
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-resource {
|
|
|
|
|
|
margin: 20px 0;
|
|
|
|
|
|
padding: 15px;
|
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.url-input-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-resource input {
|
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.paste-btn {
|
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
background-color: #6c757d;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.resource-group {
|
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
border: 1px solid #f0f0f0;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.resource-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.resource-title {
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.resource-description {
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.button-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
padding: 8px 15px;
|
|
|
|
|
|
background-color: #007bff;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
min-width: 70px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.error {
|
|
|
|
|
|
color: red;
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
}
|
2024-11-29 17:46:26 +08:00
|
|
|
|
|
|
|
|
|
|
.copy-btn {
|
|
|
|
|
|
padding: 8px 15px;
|
|
|
|
|
|
background-color: #28a745;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
min-width: 70px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
2024-12-14 21:41:57 +08:00
|
|
|
|
.help-btn {
|
|
|
|
|
|
padding: 8px 15px;
|
|
|
|
|
|
background-color: #ffc107;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
min-width: 70px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
2024-11-29 11:11:51 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="page-header">
|
|
|
|
|
|
<div class="page-title">uz影视 资源添加</div>
|
|
|
|
|
|
<div class="page-description">uz影视 版本需要 v1.6.41 及以上,建议先打开 app 停留在首页</div>
|
2024-11-30 00:06:21 +08:00
|
|
|
|
<div class="page-description" style="color: #ffc107; font-weight: bold">当点击添加无效时,请尝试特殊添加。还是不行复制链接,uz影视 -> 设置 -> 数据管理 -> 订阅 -> + </div>
|
2024-11-29 11:11:51 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="custom-resource">
|
|
|
|
|
|
<h3>添加资源</h3>
|
|
|
|
|
|
<div class="url-input-container">
|
|
|
|
|
|
<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>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</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 = [
|
2024-12-13 22:16:03 +08:00
|
|
|
|
{
|
2024-12-14 21:41:57 +08:00
|
|
|
|
title: 'uz影视 all in one',
|
2024-12-13 22:16:03 +08:00
|
|
|
|
description: "整合大佬们开发的资源,感谢所有大佬",
|
|
|
|
|
|
resourceUrl: 'https://ghp.ci/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/uzAio.json',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-12-14 21:41:57 +08:00
|
|
|
|
title: 'pv大佬 all in one',
|
2024-12-13 22:16:03 +08:00
|
|
|
|
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',
|
|
|
|
|
|
},
|
2024-11-29 11:11:51 +08:00
|
|
|
|
{
|
|
|
|
|
|
title: '视频源扩展',
|
|
|
|
|
|
description: "视频源扩展大多由 <a href='https://github.com/Yswag'>Yswag</a> 大佬开发,感谢大佬",
|
|
|
|
|
|
resourceUrl: 'https://ghp.ci/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://ghp.ci/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',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
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',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '推荐首页扩展',
|
|
|
|
|
|
description: '展示视频推荐',
|
|
|
|
|
|
resourceUrl: 'https://ghp.ci/https://raw.githubusercontent.com/YYDS678/uzVideo-extensions/refs/heads/main/recommend/douban.json',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '采集站',
|
|
|
|
|
|
description: '采集站资源,不需要添加太多两个够用',
|
|
|
|
|
|
resourceUrl: 'https://ghp.ci/https://raw.githubusercontent.com/YYDS678/uzVideo/main/video_sources_default.json',
|
|
|
|
|
|
},
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
function validateUrl(url) {
|
|
|
|
|
|
try {
|
|
|
|
|
|
new URL(url)
|
|
|
|
|
|
return true
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
return false
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function showError(message) {
|
|
|
|
|
|
const errorEl = document.getElementById('errorMessage')
|
|
|
|
|
|
errorEl.textContent = message
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
errorEl.textContent = ''
|
|
|
|
|
|
}, 3000)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function installResource(isSpecial, configUrl = null) {
|
|
|
|
|
|
const urlInput = document.getElementById('customUrl')
|
|
|
|
|
|
let url = configUrl || urlInput.value.trim()
|
|
|
|
|
|
|
|
|
|
|
|
if (!url) {
|
|
|
|
|
|
showError('请输入资源链接')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!validateUrl(url)) {
|
|
|
|
|
|
showError('请输入有效的URL')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const encodedUrl = encodeURIComponent(url)
|
|
|
|
|
|
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}`
|
|
|
|
|
|
|
|
|
|
|
|
window.location.href = finalUrl
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-29 17:46:26 +08:00
|
|
|
|
// 添加复制函数
|
|
|
|
|
|
function copyToClipboard(text) {
|
|
|
|
|
|
navigator.clipboard.writeText(text).then(() => {
|
2024-12-14 21:41:57 +08:00
|
|
|
|
alert('使用路径:uz影视 -> 设置 -> 数据管理 -> 订阅 -> +');
|
|
|
|
|
|
alert('复制成功');
|
2024-11-29 17:46:26 +08:00
|
|
|
|
}).catch(err => {
|
2024-12-14 21:41:57 +08:00
|
|
|
|
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影视 -> 设置 -> 数据管理 -> 订阅 -> +');
|
2024-11-29 17:46:26 +08:00
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-29 11:11:51 +08:00
|
|
|
|
window.onload = function () {
|
|
|
|
|
|
const container = document.getElementById('resourcesContainer')
|
|
|
|
|
|
configs.forEach((config) => {
|
|
|
|
|
|
const resourceGroup = document.createElement('div')
|
|
|
|
|
|
resourceGroup.className = 'resource-group'
|
|
|
|
|
|
resourceGroup.innerHTML = `
|
2024-11-29 17:46:26 +08:00
|
|
|
|
<div class="resource-header">
|
|
|
|
|
|
<div class="resource-title">${config.title}</div>
|
|
|
|
|
|
${config.description ? `<div class="resource-description">${config.description}</div>` : ''}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="button-row">
|
|
|
|
|
|
<button class="copy-btn" onclick="copyToClipboard('${config.resourceUrl}')">复制链接</button>
|
2024-12-14 21:41:57 +08:00
|
|
|
|
<button class="help-btn" onclick="window.open('https://uz-video-five.vercel.app/help.html')">使用教程</button>
|
2024-11-29 17:46:26 +08:00
|
|
|
|
<button class="btn" onclick="installResource(false, '${config.resourceUrl}')">添加</button>
|
|
|
|
|
|
<button class="btn" onclick="installResource(true, '${config.resourceUrl}')">特殊添加</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
`
|
2024-11-29 11:11:51 +08:00
|
|
|
|
container.appendChild(resourceGroup)
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|