橘猫VIP视频免费看

来不及解释了,快上车!!!地址发布页:https://m.588222.xyz/ https://mm.588556.xyz/

// ==UserScript==
// @name         橘猫VIP视频免费看
// @namespace    orange_cat_vip_video_free_see
// @version      0.2
// @description  来不及解释了,快上车!!!地址发布页:https://m.588222.xyz/ https://mm.588556.xyz/
// @author       w2f
// @match        https://xgm.jmmae.xyz/*
// @match        https://xme.jmmcc.xyz/*
// @icon         https://xgm.jmmae.xyz/favicon.ico
// @license      MIT
// @grant none
// @require      https://greasyfork.org/scripts/476730-ajaxhooker-2/code/ajaxHooker_2.js?version=1259979
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    ajaxHooker.protect();
    ajaxHooker.filter([
        {type: 'xhr', url: '/view/videoList/', method: 'GET', async: true},
        {type: 'xhr', url: '/view/newIndexVideoList/', method: 'GET', async: true},
        {type: 'xhr', url: '/view/getLikeVideoList/', method: 'POST', async: true},
    ]);
    ajaxHooker.hook(request => {
        //console.log(request);
        if (request.url.indexOf('/view/videoList/') > -1 ||
           request.url.indexOf('/view/newIndexVideoList/') > -1 ||
           request.url.indexOf('/view/getLikeVideoList/') > -1) {
            request.response = async res => {
                var rsp = JSON.parse(JSON.parse(res.responseText));
                console.log(request.url,rsp);
                window.videoList = rsp.data.list || rsp.data;
            };
        }
    });

    function show_videourl() {
        var nodelist = document.querySelectorAll("div.videoItemBox > div"); if(nodelist.length == 0) return;
        if(window.videoList){
            //console.log(window.videoList);
            nodelist?.forEach(
                (item,idx,arr) => {
                    let xxx = document.querySelector(`#my_add_dizhi${idx}`); if (xxx) { xxx.parentNode.removeChild(xxx); }
                    let mydiv = document.createElement('div');
                    mydiv.innerHTML = `<div id="my_add_dizhi${idx}" style="color:red;font-size:14px;word-wrap: break-word;word-break: break-all;">
                      <p><a href="${window.videoList[idx].playUrl}" target="_blank">✅已破解,点此访问</a></p></div>`;
                    item.append(mydiv);
                    mydiv.onclick = function(ev) {ev.stopPropagation();};//阻止跳转
                }
            );
            window.videoList = null; console.log("成功破解!");
        }
        if (location.href.match("/index") != null) {
            //console.log(window.videoList);
            nodelist?.forEach(
                (item,idx,arr) => {
                    let xxx = document.querySelector(`#my_add_dizhi${idx}`); if (xxx) { xxx.parentNode.removeChild(xxx); }
                    let mydiv = document.createElement('div');
                    mydiv.innerHTML = `<div id="my_add_dizhi${idx}" style="color:red;font-size:14px;word-wrap: break-word;word-break: break-all;">
                      <p>⚠️首页未破解,切到分类页</a></p></div>`;
                    item.append(mydiv);
                    //mydiv.onclick = function(ev) {ev.stopPropagation();};//阻止跳转
                }
            );
            window.videoList = null; console.log("成功破解!");
        }
        if (location.href.match("/videoInfo") != null) {
            let fa = document.querySelector("#app > div > div.subjectBox > div > div:nth-child(3) > div:nth-child(3) > div:nth-child(1)") ||
                document.querySelector("#app > div > div:nth-child(1) > div:nth-child(2)") ; //pc or 手机
            let tip = document.querySelector("#my_add_tip");
            if (!tip) {
                tip = document.createElement('div');
                tip.innerHTML = `<div id="my_add_tip" style="color:red;font-size:14px;word-wrap: break-word;word-break: break-all;">
                      <p>⚠️破解地址在各分类的视频列表标题下方,不要进入视频播放页来找</p></div>`;
                fa.append(tip);
            }
        }
    }

    setInterval(show_videourl, 2000);

})();