Skip to content
代码片段 群组 项目
提交 1994901d 编辑于 作者: Hunlongyu's avatar Hunlongyu
浏览文件

upgrade href link

上级 6cdfd6b3
No related branches found
No related tags found
无相关合并请求
// ==UserScript==
// @name m3u8 资源播放助手
// @version 0.1
// @version 0.2
// @author Hunlongyu
// @namespace https://github.com/Hunlongyu/m3u8_player
// @description 自动匹配 m3u8 资源,点击播放,即跳转到播放器页面。
......@@ -15,13 +15,13 @@
'use strict';
// code here
function getTitle () { // 获取页面标题
function getTitle () { // 获取页面标题
if (document.title) {
return document.title
}
return null
}
function getUrl () { // 获取 m3u8 的链接
function getUrl () { // 获取 m3u8 的链接
let list = document.querySelectorAll("input[name*='copy_']")
let url = null
for (let i = 0; i < list.length; i++) {
......@@ -33,4 +33,4 @@
}
}
getUrl()
})();
\ No newline at end of file
})();
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册