Greasy Fork

Greasy Fork is available in English.

vip video

解析爱奇艺、腾讯视频VIP

当前为 2024-10-11 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         vip video
// @description  解析爱奇艺、腾讯视频VIP
// @namespace    http://study365.free.nf
// @version      29
// @match      https://*.iqiyi.com/v_*
// @match      https://*.iqiyi.com/w_*
// @match      https://*.iqiyi.com/a_*
// @match      https://v.qq.com/x/cover/*
// @match      https://v.qq.com/x/page/*
// @match      https://v.qq.com/tv/*
// @match      https://m.v.qq.com/x/m/play*
// @match      https://m.v.qq.com/x/play*
// @grant      none
// ==/UserScript==

(function() {
    'use strict';
    let list = [
        {"name": "虾米", "url": "https://jx.xmflv.com/?url=", "type":"pc"},
        {"name": "M1907", "url": "https://im1907.top/?jx=", "type":"all"},
        {"name": "playerjy", "url": "https://jx.playerjy.com/?url=", "type":"pc"},
        {"name": "ckplayer", "url": "https://www.ckplayer.vip/jiexi/?url=", "type":"pc"},
    ];
    setTimeout(function () {
        let href = location.href;
        let params = {};
        let arr = location.search.substring(1).split('&');
        for (let str of arr) {
            let pair = str.split("=");
            params[pair[0]] = pair[1];
        }
        if (href.indexOf('/m.v.qq.com') > 0) {
            href = 'https://v.qq.com/x/cover/' + params.cid + '/' + params.vid + '.html';
        }
        let mobile= /Mobile|Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
        let html = "<div style='z-index:999999999999;position:fixed;top:0;background:rgba(255,255,255,0.5)'>";
        for (let ele of list) {
            if(ele.type=="all"|| (mobile && ele.type=="mobile")||(!mobile && ele.type=="pc")){
                html += `<a href="` + ele.url + href + `" target="_blank" rel='noopener noreferrer' style="margin:5px;color:red;line-height:24px;font-size:16px">` + ele.name + `</a>`
            }
        }
        html += "</div>";
        let div = document.createElement("div");
        div.innerHTML = html;
        document.body.appendChild(div);
    },2000);
})();