音视频解析

支持爱奇艺、腾讯视频、优酷视频、哔哩哔哩、AcFun、搜狐视频、西瓜视频、芒果TV、土豆网、乐视、风行网、PPTV的视频解析,和网易云音乐、荔枝FM免费歌曲的解析及下载。部分网站无反应可刷新重试。

// ==UserScript==
// @name         音视频解析
// @namespace    http://tampermonkey.net/
// @version      1.4.5
// @description  支持爱奇艺、腾讯视频、优酷视频、哔哩哔哩、AcFun、搜狐视频、西瓜视频、芒果TV、土豆网、乐视、风行网、PPTV的视频解析,和网易云音乐、荔枝FM免费歌曲的解析及下载。部分网站无反应可刷新重试。
// @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/*
// @match        *://*.mgtv.com/b/*/*
// @match        *://*.1905.com/*/play/*
// @match        *://*.lizhi.fm/vod/*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const videoSites = {
        "1905.com":     "https://jx.playerjy.com/?url=",
        "mgtv.com":     "https://jx.xymp4.cc/?url=",
        "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="
    };

    const url = window.location.href;
    console.log("Current URL:", url);

    // 视频平台解析
    for (const site in videoSites) {
        if (url.includes(site)) {
            if (confirm('确定播放?')) {
                window.location.href = videoSites[site] + encodeURIComponent(url);
            }
            return;
        }
    }

    // 网易云音乐解析
    const match = url.match(/id=(\d+)/);
    if (match && confirm('确定播放?')) {
        window.location.href = `http://music.163.com/song/media/outer/url?id=${match[1]}`;
        return;
    }

    // 荔枝FM解析
    if (url.includes('lizhi.fm/vod/')) {
        console.log("Lizhi FM detected.");
        const element = document.querySelector('div.item:nth-of-type(3)');
        if (element) {
            console.log("Element found:", element.textContent);
            const dateMatch = element.textContent.match(/(\d{4}-\d{2}-\d{2})/);
            if (dateMatch) {
                const date = dateMatch[1].replace(/-/g, '/');
                console.log("Date found:", date);
                if (confirm('确定播放?')) {
                    const urlParts = url.split('/');
                    const audioId = urlParts[urlParts.length - 1];
                    console.log("Audio ID:", audioId);
                    window.location.href = `https://lizhi.fm/audio/${date}/${audioId}_hd.mp3`;
                }
            } else {
                console.log("No date found in element.");
            }
        } else {
            console.log("Element not found.");
        }
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址