来不及解释了,快上车!!!
// ==UserScript== // @name 小狐狸VIP视频免费看 // @namespace small_fox_vip_video_free_see_2 // @version 3.0 // @description 来不及解释了,快上车!!! // @author w2f // @match https://01.xhlld085.shop/* // @match https://06.xhlld080.shop/* // @match https://xhlld044.shop/* // @include /^http(s)?:\/\/ld01.xhlld\d+\.(cyou|xyz)/ // @include /^http(s)?:\/\/ld.xhlld\d+\.(cyou|xyz)/ // @include /^http(s)?:\/\/xhlld\d+\.(cyou|xyz)/ // @icon https://06.xhlld080.shop/favicon.ico // @license MIT // @grant GM_log // @grant GM_addStyle // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_xmlhttpRequest // @run-at document-body // @connect supabase.co // @require https://unpkg.com/@supabase/[email protected]/dist/umd/supabase.js // @require https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.1.5/hls.min.js // @require https://scriptcat.org/lib/5007/1.0.4/supabaseClientLibrary.js#sha384=UVgc6octvKJ1F7mziyZvq8As2JOFlBP67kH/AOywBSXFrlKuyXMJCViIiNfbAjgu // @require https://scriptcat.org/lib/5008/1.0.6/chatRoomLibrary.js#sha384=K75aUnIAOk8+4AgNJhFH/4Z5ouseZgL0DZxQjyMkXf8+ZLZdI2dsPWsQBEbwSptw // @require https://scriptcat.org/lib/637/1.4.4/ajaxHooker.js#sha256=Z7PdIQgpK714/oDPnY2r8pcK60MLuSZYewpVtBFEJAc= // ==/UserScript== (async function () { 'use strict'; //2025年9月18日 //最新地址发布页: https://xhlyj702.shop/#/index?tag=yjdi //最新跳转地址: https://xhlld044.shop/#/index?tag=yjdi //2025年12月10日 https://06.xhlld080.shop/#/index?tag=yjdi // 2.获取视频地址 ajaxHooker.protect(); ajaxHooker.filter([ { type: 'xhr', url: '/view/getVideoInfo/', method: 'POST', async: true },//小狐狸 { type: 'xhr', url: '/view/getLikeVideoList/', method: 'POST', async: true },//小狐狸 ]); ajaxHooker.hook(request => { if (request.url.indexOf('/view/getVideoInfo/') > -1) { request.response = async res => { let jsonobj = JSON.parse(res.responseText); //console.log("hooked!!! getVideoInfo ====>",jsonobj); let tmp = jsonobj.data.coverUrl.split('/'); window.m3u8_id = tmp[3] + '/' + tmp[4]; //"20240504/59kS6tea" window.mediaInfo = jsonobj.data; console.log("hooked1!!! window.m3u8_id ====>", jsonobj, window.m3u8_id); }; } else if (request.url.indexOf('/view/getLikeVideoList/') > -1) { request.response = async res => { let jsonobj = JSON.parse(res.responseText); //console.log("hooked!!! getLikeVideoList ====>",jsonobj); let m3u8_prefix = jsonobj.data.map(item => { let tmp = item.playUrl.split('/')[2]; return tmp; }); //console.log("hooked!!! m3u8_prefix ====>",m3u8_prefix); window.m3u8_prefix = Array.from(new Set(m3u8_prefix)); console.log("hooked2!!! window.m3u8_prefix ====>", jsonobj, window.m3u8_prefix); //ajaxHooker.unhook(); }; } }); // 初始化 await SbCLi.init('xhl'); const chatRoom = await ChatRoomLibrary.initUI(); function check_circle() { if (window.m3u8_prefix?.length && window.m3u8_id) { const url = `https://${window.m3u8_prefix[0]}/${window.m3u8_id}/index.m3u8`; window.m3u8_prefix = null; window.m3u8_id = null; const videoInfo = { url: window.location.href, content: window.mediaInfo.title, video_url: url, image_url: window.mediaInfo.coverUrl, }; // 加载卡片,发送消息 if (SbCLi.decreaseTrialCount() > 0){ chatRoom.addMsgCard(videoInfo); } else{ chatRoom.addMsgCard({ content: '用户未激活,今日试看次数已用完!' }); } const res = SbCLi.sendMessage(videoInfo); GM_log('发送消息的响应:', res); } } setInterval(check_circle, 2000); })();