您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
cool
当前为
// ==UserScript== // @name gdriveplayer+vidcloud9+hydrax direct link redirector/downloader // @namespace http://tampermonkey.net/ // @version 0.3 // @description cool // @author You // @match https://vidcloud9.com/streaming.php?* // @match https://database.gdriveplayer.me/player.php?* // @match https://database.gdriveplayer.me/google.php?* // @match https://playhydrax.com/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; if(window.location.hostname=='playhydrax.com'||window.location.hostname.endsWith('.playhydrax.com')){ document.write(`<script>var urll,slug,isdone=false;slug=window.location.search.indexOf('v=')?window.location.search.match(/[?&]v=([^&]+)/)[1]:alert('error: video id not specified');var fd=new FormData();fd.append('slug',slug);var data=new URLSearchParams(fd);fetch('https://ping.idocdn.com',{method:'post',body:data}).then(d=>d.json()).then(res=>{if(!res.status)return alert('error: video id not found');urll=res.url;fetch('https://'+urll,{method:'post',body:data}).then(()=>{document.querySelector('img').src='https://ping.'+urll+'/ping.gif'});});</script> <img onload="document.querySelector('video').src='https://www.'+urll;"/><!--"www." makes the video HD--> <video style="position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;padding:0;margin:0;border:0;z-index:99999;" controls></video> `); document.close(); }else{ window.addEventListener("DOMContentLoaded",function(){ if(window.location.hostname=='database.gdriveplayer.me'||window.location.hostname.endsWith('.database.gdriveplayer.me'))(new Function('eval',document.querySelectorAll("body script")[1].innerText))(function(a){ var b=[a.slice(0,a.indexOf(';')+1),a.slice(a.indexOf(';')+1)]; b[1]='ae'+b[1].slice(b[1].indexOf('()')+2); (new Function('ae',b[1]))({document:{write:function(c){ c=c.replace('<script>','').replace('</script>','').trim(); (new Function('eval',b[0]+c))(function(e){ (new Function('eval','player',e))(function(f){ var urls=f.split("{sources:[").slice(1), url=f.slice(f.indexOf("if(countcheck=='")+16); function finishurls(ur,i){ var urr=eval(ur.slice(0,ur.indexOf("]")+1).replace(/"\+countcheck\+"/g,i)); return urr[urr.length-1].file; } urls=urls.map((r,i)=>finishurls("["+r,i)); urls.push(eval(url.slice(url.indexOf("{jwplayer().remove();window.location='")+37,url.indexOf("}")))); urls=urls.map(j=>(new URL(j,window.location.href)).href); document.close(); document.open(); document.write(`<body bgcolor="black"><script>var urls=JSON.parse(atob('${btoa(JSON.stringify(urls))}'));function errhandl(v){if(v.currentSrc==urls[urls.length-1])window.location.href=v.currentSrc;}</script><video controls style="position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;padding:0;margin:0;border:0;z-index:99999;">${urls.map(k=>'<source src="'+k+'"></source>').join("")}</video><script>document.querySelector("video").addEventListener('error',function(e){errhandl(this);},true);</script></body>`); document.close(); },function(){}); }); }}}); }); if(window.location.hostname=='vidcloud9.com'||window.location.hostname.endsWith('.vidcloud9.com'))document.querySelectorAll('li.linkserver').forEach(e=>{ var xd=e.innerText.toLowerCase(); if(xd.includes('hydrax')||xd.includes('hyrax'))location.href=e.dataset.video.replace('hydrax.net','playhydrax.com'); }); }); } })();