// ==UserScript== // @name 自han // @namespace 18x_vip_video_free_see fi11.av // @version 0.57 // @description icci // @author w2f // @include /^https://(www|h5).kmkk\d+\.com/videoContent/.*?$/ // @include /^https://www.hx\w+\.com.+$/ // @match https://www.fi11aa81.com/play/video/* // @match https://*/play/video/* // @match https://*/smallVideo/* // @include /^http(s)?:\/\/(www|h5)\.fi11\w+\.com\/play\/video/ // @include /^http(s)?:\/\/(www|h5)\.\w+\.(com|cn|xyz)\/play\/video/ // @include /^http(s)?:\/\/(www|h5)\.fi11\w+\.(com|cn|xyz)\/smallVideo\/.*?/ // @麻tv https://d2s51b8ht.com/ err https://hmxxrzi.xyz/new ok @91TV https://kdt29.com/ err // @match https://madou.bet/* // @match https://*/index* // @match https://*/new* // @match https://*/channel/videoList* // @match https://*/tags* // @match https://*/rankList* // @match https://madou.tv/* // @match https://afkv28.com/* // @match https://afkv29.com/* // @match https://afkv30.com/* // @match https://*/videos/* // @match https://*/video/* // @match https://9sex.com/index/movie/play/id/*.html // @match https://*/index/movie/play/id/* // @match http://*/index/movie/play/id/* // @include /^http(s)?:\/\/(www|h5)\.\w+\.xyz\/movie\/play\/id/ // @ 猫 // @match https://*/vip/index.html // @match https://*/vip/list-*.html // @match https://*/index/home.html // @include /https:\/\/www\.(\w+)\.com\/page\/vip/ // @include /^http(s)?:\/\/(.*)\.xyz\/(pc|h5)\/index\.html/ // @match https://alltv268.com/* // @include /^https://alltv\w+\.com.*$/ // @icon https://sy3wmh.xyz/pc/favicon.ico // @license MIT // @grant none // @require https://scriptcat.org/lib/637/1.4.5/ajaxHooker.js#sha256=EGhGTDeet8zLCPnx8+72H15QYRfpTX4MbhyJ4lJZmyg= // @run-at document-body // ==/UserScript== (function () { 'use strict'; let err_cnt = 0; function import_js(src) { let script = document.createElement('script'); script.src = src; document.head.appendChild(script); } import_js("https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"); import_js("https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.1.5/hls.min.js"); let not_need_dplayer = location.href.match("https://theav.*?.com/videos/") != null || location.href.match("https://the.*?.fun/videos/") != null; if (!not_need_dplayer) { import_js("https://cdnjs.cloudflare.com/ajax/libs/dplayer/1.26.0/DPlayer.min.js"); } ajaxHooker.protect(); ajaxHooker.filter([{type: 'xhr', url: '/videos/getInfo', method: 'POST', async: true}]); ajaxHooker.hook(request => { if (request.url.indexOf('/videos/getInfo') > -1 ) { request.url = "https://a5p3.95agri.com/videos/getPreUrl"; request.response = async res => { res.responseText = await modifyResponse(res.responseText); }; } }); async function modifyResponse(responseText){ let rspjson = await JSON.parse(responseText); window.xxxadrfgaddsasd = rspjson.data.url.replace(/start=\d+\&end=\d+\&/,"start=0&end=9999&"); let orirsp = {"code":0,"msg":"","data":{"canDownload":true,"canPlay":false,"canPrePlay":true,"discount":70,"discountPoint":0,"downloadPoint":2,"info":{"id":55159,"coverImgUrl":"","coverImgUrlVertical":"","name":"","addTime":"2024-08-17 19:25:31","uid":0,"length":782,"point":0,"isVip":1,"videoSort":1,"angleType":0,"disabled":0,"status":1,"transcodingStatus":0,"preTranscodingStatus":0,"isTemporarilyFree":0,"isSetPre":0,"recommend":"","isCollect":0,"isLike":0,"isBuy":0,"isAngle":11,"isSee":0,"isDownload":0,"isNeedLogin":1,"no":"1XGC4509XSF","tags":"身材,颜值,美女,性感,居家.","typeId":5,"isFeatured":0,"isVertical":0,"url":"","preUrl":"","urlId":0,"auditReason":"","description":"","width":0,"height":0,"release_type":0,"typeName":"自拍","typeParentId":4,"buyCount":0,"collectionCount":2735,"hot":20736,"likeCount":3376,"seeCount":15591,"commentCount":0,"userInfo":{"id":0,"avatar":"","avatar_thumb":"","user_nicename":"","sex":0,"newsVip":0,"coverImg":"","pcCoverImg":"","isattention":0,"fans":0,"offset":0,"isUpdate":0}}},"traceId":"Q57ad6"}; return await JSON.stringify(orirsp); } let today = new Date().toLocaleDateString(); let min = new Date().getMinutes(); function show_support_author(msg, secondsLeft = 5) { var mydiv = document.createElement('div'); mydiv.innerHTML = `

${msg}

`; document.querySelector("head").after(mydiv); if(secondsLeft == 0) return; var interval = setInterval(function() { secondsLeft--; var xxx = document.querySelector("#my_add_div_support_author p");if(xxx) xxx.innerText = `${msg}(${secondsLeft}s后自动关闭)`; if (secondsLeft <= 0) { var yyy = document.querySelector("#my_add_div_support_author"); if(yyy) yyy.parentNode.removeChild(yyy); clearInterval(interval); } }, 1000); } function show_videoUrl(videoUrl,dizhi, flag = 0) { var xxx = document.querySelector("#my_add_dizhi"); if(flag==0 && xxx){return 0;} if (xxx) xxx.parentNode.removeChild(xxx); var mydiv = document.createElement('div'); mydiv.innerHTML = `

视频:点击播放

`; dizhi?.after(mydiv); return 1; } function play_video(videoUrl, el, dizhi, flag = 0) { if (!videoUrl || !el || !dizhi) throw new Error(`部分参数无效,视频地址:${videoUrl}、播放器位置:${el}、提示位置:${dizhi}`); let ret = show_videoUrl(videoUrl,dizhi,flag); if(ret == 0){return 0;} if (window.dp) {window.dp.pause();window.dp.destroy();window.dp = null;} window.dp = new DPlayer({element: el,autoplay: true,theme: '#FADFA3',loop: true,lang: 'zh',screenshot: true,hotkey: true,preload: 'auto',video: {url: videoUrl,type: 'hls'}}); el.style.position = 'sticky';el.style.zIndex = '999';el.style.top = '0'; var xxx = document.querySelector("#my_add_sibling"); if(!xxx){var sibling = document.createElement('div');sibling.id = "my_add_sibling";el.after(sibling);} } function play_video2(videoUrl, videoUrl2, videoUrl3, videoUrl4, el, dizhi) { var mydiv = document.createElement('div'); mydiv.innerHTML = `
视频地址:

360P:${videoUrl}

480P:${videoUrl2}

720P:${videoUrl3}

1080P:${videoUrl4}

问题反馈 ,使用愉快!

`; dizhi && dizhi.after(mydiv); window.dp = new DPlayer({element: el,autoplay: true,theme: '#FADFA3',loop: true,lang: 'zh',screenshot: true,hotkey: true,preload: 'auto',video: {quality: [{name: '360P',url: videoUrl,type: 'hls'},{name: '480P',url: videoUrl2,type: 'hls'},{name: '720P',url: videoUrl3,type: 'hls'},{name: '1080P',url: videoUrl4,type: 'hls'}],defaultQuality: 0}}); } function show_err_log(err) { err && console.log(err); err_cnt++; if (err_cnt == 5) { let msg = `解析出错${location.href}错误:${err || "尝试多次"}操作系统:${navigator.platform}浏览器:${navigator.userAgent}`; console.log(msg);clearInterval(my_timer); } } function do_login(){ let phone = JSON.parse(localStorage.getItem('move-client-user-info'))?.user?.user_info?.phone; let event = document.createEvent('HTMLEvents');event.initEvent("input", true, true); if(phone){ let account = document.querySelectorAll('input.van-field__control')[0];account.value = phone;account.dispatchEvent(event); let password = document.querySelectorAll('input.van-field__control')[1];password.value = "123456";password.dispatchEvent(event); document.querySelector('button[type=submit]').click(); }else{ document.querySelector('div.login_1_2_1')?.click(); let account = document.querySelectorAll('input.van-field__control')[0]; account.value = ["130","131","132","133","135","137","138","170","187","189"][Math.floor(10*Math.random())]+Math.floor(Math.random()*100000000); account.dispatchEvent(event); let password = document.querySelectorAll('input.van-field__control')[1];password.value = "123456";password.dispatchEvent(event); let password2 = document.querySelectorAll('input.van-field__control')[2];password2.value = "123456";password2.dispatchEvent(event); document.querySelector('button[type=submit]').click(); } } let flag = 0; let last_videoUrl = null; function get_videourl() { let videoUrl = null, videoUrl2 = null, videoUrl3 = null, videoUrl4 = null; let el = null,dizhi = null,player = null,shikan = null,ads = null; try { if (!not_need_dplayer && typeof(DPlayer)!= 'function' ) {return;} else if (location.href.match(/https:\/\/www\.(\w+)\.com\/page\/vip/) != null) { var nodelist = document.querySelectorAll("div.content-item"); nodelist?.forEach((item,idx) => { var xxx = document.querySelector(`#my_add_dizhi${idx}`);if (xxx) { xxx.parentNode.removeChild(xxx); } var videourl = item.querySelector("a.video-pic")?.href?.replace("/vip/play-","/shipin/detail-"); if (videourl) {var mydiv = document.createElement('div');mydiv.innerHTML = `

访问

`;item.after(mydiv);} }); } else if (location.href.match("http.*?.xyz/pc/index.html*") != null) { var nodelist = document.querySelectorAll("#app div.box div.video_img"); nodelist?.forEach((item,idx) => { var xxx = document.querySelector(`#my_add_dizhi${idx}`);if (xxx) { xxx.parentNode.removeChild(xxx); } var videourl = item.querySelector("div > img")?.src?.split('cover')[2]?.split('.')[0]; if (videourl) {var mydiv = document.createElement('div');mydiv.innerHTML = `

访问

`;item.after(mydiv);} }); } else if (location.href.match("http.*?.xyz/h5/index.html*") != null) { nodelist = document.querySelectorAll("div.imgbox div div.vue-waterfall-column>div"); nodelist?.forEach((item,idx) => { var xxx = document.querySelector(`#my_add_dizhi${idx}`);if (xxx) { xxx.parentNode.removeChild(xxx); } var videourl = item.querySelector("img")?.src?.split('cover')[2]?.split('.')[0]; if (videourl) {var mydiv = document.createElement('div');mydiv.innerHTML = `

访问

`;item.after(mydiv);} }); } else if (location.href.match("https://alltv.*?.com/") != null) { document.querySelectorAll("div.video-list-unit-media")?.forEach((item,idx) => { var xxx = document.querySelector(`#my_add_dizhi${idx}`);if (xxx) { xxx.parentNode.removeChild(xxx); } var videourl = item.querySelector("div > img")?.src?.split('cover')[2]?.split('.')[0]; if (videourl) {var mydiv = document.createElement('div');mydiv.innerHTML = `

访问

`;item.after(mydiv);} }); } else if (location.href.match("https://.*?/index/movie/play/id/") != null) { player = document.querySelector("#dplayer"); dizhi = document.body.innerHTML.match("movies/(.*?)_preview.jpg.txt")[1].split('/'); if (player && dizhi && flag == 0) { videoUrl = `https://ms3.bca834d60257.com/${dizhi[0]}/${dizhi[1]}/360P/${dizhi[2]}_360P.m3u8`; videoUrl2 = `https://ms3.bca834d60257.com/${dizhi[0]}/${dizhi[1]}/480P/${dizhi[2]}_480P.m3u8`; videoUrl3 = `https://ms3.bca834d60257.com/${dizhi[0]}/${dizhi[1]}/720P/${dizhi[2]}_720P.m3u8`; videoUrl4 = `https://ms3.bca834d60257.com/${dizhi[0]}/${dizhi[1]}/1080P/${dizhi[2]}_1080P.m3u8`; ads = document.querySelector("#login-tip-modal"); if (ads) ads.parentNode.removeChild(ads); ads = document.querySelector(".vip-tip-modal"); if (ads) ads.parentNode.removeChild(ads); play_video2(videoUrl, videoUrl2, videoUrl3, videoUrl4, player, document.querySelector("div.notice")); flag = 1; }else if (flag == 1) { ads = document.querySelector(".pause-ad-imgbox"); if (ads) ads.parentNode.removeChild(ads); clearInterval(my_timer); } } else if (location.href.match("https://www.hjhs.*?/videos/") != null) { player = document.querySelector("#dplayer"); if (player && window.api?.quality?.url) { videoUrl = window.api.quality.url.replace("suo.", "").replace("_suo", ""); play_video(videoUrl, player, document.querySelector("div.headline")); clearInterval(my_timer); } } else if (location.href.match("https://theav.*?.com/") != null || location.href.match("https://the.*?.fun/") != null ) { videoUrl = window.player?.api("hls")?.url?.split('?')[0] || window.m3ky?.split('?')[0]; if (videoUrl && typeof(Playerjs)== 'function' ) { ads = document.querySelector(".table"); if (ads) ads.style.display = "none"; ads = document.querySelector(".sponsor"); if (ads) ads.style.display = "none"; ads = document.querySelector(".rate_box"); if (ads) ads.style.display = "none"; ads = document.querySelector(".green"); if (ads) ads.style.display = "none"; Playerjs({ id: "layer", file: videoUrl, autoplay: 1 }); clearInterval(my_timer); } } else if (location.href.match("https://.*?km.*?.com/videoContent/") != null) { videoUrl = document.querySelector("#videoContent")?.__vue__?.formatUrl; if (videoUrl) { ads = document.querySelector(".exchangeBg"); if (ads != null) ads.style.display = "none"; play_video(videoUrl, document.querySelector("#videoContent > div.video")|| document.querySelector("div.backImg"), document.querySelector("div.videoTitle") || document.querySelector("div p.name")); clearInterval(my_timer); } } else if (location.href.match("/play/video/") != null) { let videoUrl = window.xxxadrfgaddsasd.replace(/start=\d+\&end=\d+\&/,""); if (videoUrl) { ads = document.querySelector("div.vip-mask");if (ads != null) ads.style.display = "none"; ads = document.querySelector("div.overflow-hidden");if (ads != null) ads.style.display = "none"; show_videoUrl(videoUrl, document.querySelector("div.g-m-t-8.g-flex.title") || document.querySelector("h2.text-base.article-title"), 1); clearInterval(my_timer); } }else{localStorage.setItem("vip_level", '1');} }catch (err) {show_err_log(err);} } let my_timer = setInterval(get_videourl, 2000); var oldhref = location.href; setInterval(function () { if (location.href != oldhref) {oldhref = location.href;err_cnt = 0;clearInterval(my_timer);my_timer = setInterval(get_videourl, 2000);} if(today != localStorage.getItem('today_is_show') && Math.abs(new Date().getMinutes() - min) > 10 ){localStorage.setItem("today_is_show", today);} }, 1000); })();