Greasy Fork is available in English.
支持爱奇艺,Bilibili,优酷,腾讯视频,AcFun,网易云音乐,土豆,搜狐视频,乐视,PPTV,西瓜视频,风行网
当前为
// ==UserScript==
// @name 音视频解析
// @namespace http://tampermonkey.net/
// @version 1.4.1
// @description 支持爱奇艺,Bilibili,优酷,腾讯视频,AcFun,网易云音乐,土豆,搜狐视频,乐视,PPTV,西瓜视频,风行网
// @author Yutes
// @match *://*.163.com/*/song?id=*
// @match *://*.iqiyi.com/v*
// @match *://*.bilibili.com/bangumi/play/*
// @match *://*.youku.com/alipay_video/id_*
// @match *://*.v.qq.com/x/*/play?cid=*
// @match *://*.acfun.cn/v/?ab=*
// @match *://play.tudou.com/*
// @match *://*.sohu.com/v*
// @match *://*.le.com/vplay_*
// @match *://*.pptv.com/show/*
// @match *://*.ixigua.com/*?logTag=*
// @match *://*.fun.tv/*play/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const videoSites = {
"bilibili.com": "https://jx.xymp4.cc/?url=",
"fun.tv": "https://jx.xymp4.cc/?url=",
"youku.com": "https://jx.xmflv.com/?url=",
"v.qq.com": "https://jx.xmflv.com/?url=",
"iqiyi.com": "https://jx.xmflv.com/?url=",
"tudou.com": "https://jx.xmflv.com/?url=",
"sohu.com": "https://jx.xmflv.com/?url=",
"le.com": "https://jx.xmflv.com/?url=",
"pptv.com": "https://jx.xmflv.com/?url=",
"ixigua.com": "https://jx.xmflv.com/?url=",
"acfun.cn": "https://jx.playerjy.com/?url="
};
let url = window.location.href;
let redirectUrl = '';
// 查找匹配的视频平台并设置重定向地址
for (let site in videoSites) {
if (url.includes(site)) {
redirectUrl = videoSites[site] + url;
break;
}
}
// 处理视频解析
if (redirectUrl) {
if (confirm('确定播放?')) {
window.location.href = redirectUrl;
}
return;
}
// 处理网易云音乐的重定向
const match = url.match(/id=(\d+)/);
if (match && match[1]) {
const songId = match[1];
const newUrl = `http://music.163.com/song/media/outer/url?id=${songId}`;
if (confirm('确定播放?')) {
window.location.href = newUrl;
}
}
})();