您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
cool
当前为
// ==UserScript== // @name gdriveplayer+vidcloud9+vidstreaming+hydrax direct link redirector/downloader // @namespace http://tampermonkey.net/ // @version 1.0 // @description cool // @author You // @match http*://vidcloud9.com/videos/* // @match http*://vidstreaming.io/videos/* // @match http*://vidcloud9.com/streaming.php?* // @match http*://vidcloud9.com/load.php?* // @match http*://vidstreaming.io/streaming.php?* // @match http*://vidstreaming.io/load.php?* // @match http*://www.vidcloud9.com/videos/* // @match http*://www.vidstreaming.io/videos/* // @match http*://www.vidcloud9.com/streaming.php?* // @match http*://www.vidcloud9.com/load.php?* // @match http*://www.vidstreaming.io/streaming.php?* // @match http*://www.vidstreaming.io/load.php?* // @match http*://database.gdriveplayer.me/google.php?* // @match http*://database.gdriveplayer.me/player.php?* // @match http*://databasegdriveplayer.me/google.php?* // @match http*://databasegdriveplayer.me/player.php?* // @match http*://database.gdriveplayer.io/google.php?* // @match http*://database.gdriveplayer.io/player.php?* // @match http*://databasegdriveplayer.io/google.php?* // @match http*://databasegdriveplayer.io/player.php?* // @match http*://database.gdriveplayer.us/google.php?* // @match http*://database.gdriveplayer.us/player.php?* // @match http*://databasegdriveplayer.us/google.php?* // @match http*://databasegdriveplayer.us/player.php?* // @match http*://databasegdriveplayer.xyz/google.php?* // @match http*://databasegdriveplayer.xyz/player.php?* // @match http*://playhydrax.com/* // @grant none // @run-at document-start // ==/UserScript== (async function() { 'use strict'; //in order to download hydrax videos, you must use a header changing extension //i recommend simple-modify-header: //firefox: https://addons.mozilla.org/en-US/firefox/addon/simple-modify-header //chrome: https://chrome.google.com/webstore/detail/gjgiipmpldkpbdfjkgofildhapegmmic //import this config: https://pastebin.com/dl/VfZGYwJW //and press the start button //then you can change the below variable to true :) //!!NOTE!!: make sure you turn off the header changer extension because it currently wildcards ALL .monster domains var justDownloadHydrax=false;//UPDATE: i recommend to instead just right click video->"Save video as..." (works in firefox, not yet tested in chrome) var gdriveplayerhosts=["database.gdriveplayer.me","databasegdriveplayer.me","database.gdriveplayer.io","databasegdriveplayer.io","database.gdriveplayer.us","databasegdriveplayer.us","databasegdriveplayer.xyz"]; if(window.location.hostname=='playhydrax.com'||window.location.hostname.endsWith('.playhydrax.com')){ document.cookie="isNoAds=true;path=/"; var vidEl=document.querySelector("video"); for(var i=0;i<10000&&(!vidEl||!vidEl.hasAttribute("src"));i++){ vidEl=document.querySelector("video"); await new Promise(r=>setTimeout(r,1)); } var vidUrl=vidEl.src; document.close(); document.open(); document.write(`<video src="${vidUrl}" 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> ${justDownloadHydrax?`<a src="${vidUrl}" download="hydrax.mp4">download</a>`:``} `); document.close(); /* document.close(); document.open(); 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="${justDownloadHydrax?`var a=document.querySelector('a');a.download=slug+'.mp4';a.href='https://www.'+urll;a.click();`:`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> ${justDownloadHydrax?`<a download="hydrax.mp4">download</a>`:``} `); document.close(); */ }else{ window.addEventListener("DOMContentLoaded",async function(){ function endsWithAny(str,arr){ for(var item in arr){ if(str.endsWith(item))return true; } return false; } if(gdriveplayerhosts.includes(window.location.hostname)||endsWithAny(window.location.hostname,gdriveplayerhosts))(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')||window.location.hostname=='vidstreaming.io'||window.location.hostname.endsWith('.vidstreaming.io')){ if(window.location.pathname.startsWith("/videos/")){ if(window.location.search==""&&window.location.hash.startsWith("#corsplayer:")){ document.close(); document.open(); if(window.location.hostname.startsWith("www.")){ window.location.hostname=window.location.hostname.slice(4); document.close(); }else{ var vidurl=window.location.hash.slice(12); document.write(`<video controls style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;"></video>`); document.close(); var v=document.querySelector("video"); v.onerror=function(){ var hlsjs=document.createElement('script'); hlsjs.onload=function(){ if(Hls.isSupported()){ var hls=new Hls(); hls.loadSource(v.src); hls.attachMedia(v); } }; hlsjs.src='https://cdn.jsdelivr.net/npm/hls.js@latest'; document.querySelector('head').appendChild(hlsjs); }; v.src=vidurl; } }else{ try{ var ifr=document.querySelector("iframe"); var vidurl=(await (await fetch("https://"+window.location.hostname+"/ajax.php"+ifr.src.split(".php")[1],{headers:{"X-Requested-With":"XMLHttpRequest"}})).json()).source_bk[0]["file"]; ifr.src="#corsplayer:"+vidurl; }catch(e){ console.log(e); } } }else{ 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'); }); } } }); } })();