Greasy Fork is available in English.

【稳定】全网收费视频解析

优酷、爱奇艺、腾讯、芒果等全网VIP视频免费破解去广告

// ==UserScript==
// @name         【稳定】全网收费视频解析
// @namespace    https://zhangwenbing.com/
// @version      3.0.0
// @description    优酷、爱奇艺、腾讯、芒果等全网VIP视频免费破解去广告
// @author       bing
// @match        *://*.iqiyi.com/*
// @match        *://*.youku.com/*
// @match        *://*.le.com/*
// @match        *://*.letv.com/*
// @match        *://v.qq.com/*
// @match        *://*.tudou.com/*
// @match        *://*.mgtv.com/*
// @match        *://film.sohu.com/*
// @match        *://tv.sohu.com/*
// @match        *://*.acfun.cn/v/*
// @match        *://*.bilibili.com/*
// @match        *://vip.1905.com/play/*
// @match        *://*.pptv.com/*
// @match        *://v.yinyuetai.com/video/*
// @match        *://v.yinyuetai.com/playlist/*
// @match        *://*.fun.tv/vplay/*
// @match        *://*.wasu.cn/Play/show/*
// @exclude      *://*.bilibili.com/blackboard/*
// ==/UserScript==

(function () {
    'use strict';

    // Your code here...
    function addJQuery(callback) {
        var script = document.createElement("script");
        script.setAttribute("src", "//libs.baidu.com/jquery/2.0.0/jquery.min.js");
        script.addEventListener('load', function () {
            var script = document.createElement("script");
            script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
            document.body.appendChild(script);
        }, false);
        document.body.appendChild(script);
    }

    // the guts of this userscript
    function main() {
        function bind() {
            jQ('.select-item').unbind()
            jQ('.select-item').on('click', function (e) {
                var index = jQ(this).text() - 1;
                // https://pcw-api.iqiyi.com/video/video/playervideoinfo?tvid=11959584500
                var uri = 'https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid=' + param['albumid'] + '&page=1&size=' + (index + 1);
                jQ.get(uri, function (res) {
                    location.href = res.data.epsodelist[index].playUrl;
                });
            });
            setTimeout(bind, 2000);
        }

        bind();

        var div = document.createElement("div");
        div.innerHTML = '<div id="analysis"><a style="color:#008000;font-size:28px" href="javascript:window.open(\'http://www.zhangwenbing.com/plugin/tools/video#url=\'+location.href)">▷</a></div>';
        document.body.appendChild(div);
        document.getElementById('analysis').style.cssText = 'z-index:99999;position: fixed;top:200px;left:0';
    }

    // load jQuery and execute the main function
    addJQuery(main);
})();