// ==UserScript== // @name 网赚网盘助手 // @namespace http://tampermonkey.net/ // @version 1.2 // @description 网赚网盘助手;支持12种常见网赚网盘;1.减少人工操作;2.过滤网盘大部分广告;3.快速跳过等待倒计时;4.不需要输入验证码(部分网盘);5.没有破解VIP,网站各种限制还在; // @author czy // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js // @match http://www.xfpan.cc/*.html // @match http://www.kufile.net/file/*.html // @match https://www.yifile.com/* // @match https://rosefile.net/*.html // @match https://www.iycdn.com/*.html // @match https://dufile.com/*.html // @match http://www.xywpan.com/* // @match https://katfile.com/*.html // @match http://www.expfile.com/*.html // @match https://www.567file.com/*.html // @match http://www.xunniufile.com/*.html // @match http://www.xueqiupan.com/*.html // @license GPL-3.0-only // @grant GM_setClipboard // @grant GM_getValue // @grant GM_setValue // @run-at document-end // @compatible Chrome // @downloadURL none // ==/UserScript== /* eslint-disable no-redeclare */ /* eslint-disable no-undef */ (function() { 'use strict'; console.log('-----title-----'+ document.title); console.log('-----href-----'+ document.location.href); var strTip='💫 收费网盘助手 💫

1.减少人工操作;

2.过滤网盘大部分广告

3.快速跳过等待倒计时

4.不需要输入验证码(部分网盘)

5.没有破解VIP,网站各种限制还在

欢迎试用作者的另外一个作品

《收费网盘专用下载器》'; function findAinBbyC(strA,classB, tagC) { var obj9=null; var obj1=document.querySelector(classB); if(obj1!=null) { //console.log(obj1.innerHTML); var obj2 = obj1.getElementsByTagName(tagC); for (var i = 0; i < obj2.length; i++) { //console.log(i); //console.log(obj2[i].innerHTML); if(obj2[i].innerHTML.indexOf(strA) >= 0) obj9=obj2[i]; } } return obj9; } function findAinB(strA,SelectorB) { var obj9=null; var obj1=document.querySelectorAll(SelectorB);//"div.package-download" if(obj1!=null && obj1.length>0) { for(var i=0;i=0) { obj9=obj1[i]; } } } return obj9; } function getInnerHtml(Selector) { var obj1=document.querySelector(Selector); if(obj1!=null) { console.log(obj1.innerHTML); return obj1.innerHTML; } else return ''; } function getInnerText(Selector) { var obj1=document.querySelector(Selector); if(obj1!=null) { console.log(obj1.innerText); return obj1.innerText; } else return ''; } if(document.location.href.indexOf('xfpan') != -1) { console.log("-----www.xfpan.cc-----"); var obj9=document.querySelectorAll("div.Dow_nr_r"); if(obj9!=null && obj9.length>0) obj9[0].innerHTML =strTip; if(document.location.href.indexOf('/file/') > 0) { $('#slow_button').click(); clearInterval(timer1); redirectDownPage(); } } else if(document.location.href.indexOf('xunniufile') != -1 || document.location.href.indexOf('567file') != -1 || document.location.href.indexOf('xueqiupan') != -1) { console.log("-----www.xunniufile.com----"); var obj9=document.querySelector("#main-content > div:nth-child(4)"); var obj8=document.querySelector("#page-content > div.row-fluid > div:nth-child(2) > div:nth-child(6)"); var obj7=document.querySelector("#page-content > div > div:nth-child(2) > div:nth-child(2)"); if(obj9!=null) obj9.innerHTML =strTip; else if(obj8!=null) obj8.innerHTML =strTip; else if(obj7!=null) obj7.innerHTML =strTip; if(document.location.href.indexOf('/file-') > 0) { var myVar = setInterval(function(){ var obj1=document.querySelector("#down_link"); document.title=obj1.innerText.substring(7); console.log(console.log(obj1.innerText)); if (obj1.innerHTML.indexOf('下载页面') != -1) { var obj2=document.querySelector("#down_link > a"); obj2.removeAttribute('target'); obj2.click(); clearInterval(myVar); } else { update_sec=null; down_file_link(); } }, 1000); } else if(document.location.href.indexOf('/down2-') > 0) { var myVar = setInterval(function(){ var obj1=document.querySelector("#down_link > a"); obj1.removeAttribute('target'); console.log(obj1.innerText); obj1.click(); }, 2000); } else if(document.location.href.indexOf('/down-') > 0) { var k=0; var myVar = setInterval(function(){ //console.log("down_box"); var obj0=document.getElementById('down_box'); if(obj0!=null) { var str3=obj0.getAttribute('style'); console.log(str3); if(str3!=null && str3.indexOf('display') >= 0) obj0.removeAttribute('style'); } var obj9=null; var obj1=document.querySelector("#addr_list"); if(obj1!=null) { console.log(obj1.innerHTML); if(obj1.innerHTML.indexOf('加载中') >= 0) { return; } var obj2 = obj1.getElementsByTagName('a'); console.log(obj2.length); for (var i = 0; i < obj2.length; i++) { console.log(i); console.log(obj2[i].innerHTML); if(obj2[i].innerHTML.indexOf('普通') >= 0) obj9=obj2[i]; } } else { clearInterval(myVar); setTimeout(alert("助手提示:\n发生错误,无法下载。"),200); return; } if(obj9!=null) { obj9.setAttribute('style','font-size:18px;color:#ff0000;'); var obj2=document.querySelector("body > div.navbar > div > div.container-fluid > a"); obj2.setAttribute('href',obj9.getAttribute('href')); obj2.setAttribute('onclick',obj9.getAttribute('onclick')); clearInterval(myVar); setTimeout(alert("助手提示:\n点击[普通下载]按钮开始下载,不需要输入验证码。"),200); } else { clearInterval(myVar); setTimeout(alert("助手提示:\n发生错误,无法下载。"),200); return; } }, 1000); } } else if(document.location.href.indexOf('kufile') != -1) { console.log("-----www.kufile.net-----"); var obj9=document.querySelectorAll("div.cright"); if(obj9!=null && obj9.length>0) obj9[0].innerHTML =strTip; var obj1=document.querySelector("#ptxz"); if(obj1!=null) { var obj3=obj1.getAttribute('onclick'); var p=obj3.indexOf('down'); obj1.setAttribute('onclick','ck_code();'+obj3.substring(p)); obj1.click(); } var myVar = setInterval(function(){ var obj1=document.querySelector("#ptxz"); document.title=obj1.innerText; }, 1000); } else if(document.location.href.indexOf('yifile') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); if(downtime>3) downtime--; var obj01=document.querySelector("#FVIEW > div.paylayer"); obj01.setAttribute('style','display: none;'); if(b==1) { var obj5=document.querySelector("#bootyz1"); if(obj5!=null) { var str1=obj5.getAttribute('style'); if(str1.indexOf('none')<0) { b=2; setTimeout(alert("助手提示:请输入验证码"),200); } } } var obj9=null; var obj1=document.querySelector("#FVIEW"); if(obj1!=null) { //console.log(obj1.innerHTML); var obj2 = obj1.getElementsByTagName('a'); for (var i = 0; i < obj2.length; i++) { //console.log(i); //console.log(obj2[i].innerHTML); if(obj2[i].innerHTML.indexOf('普通下载') >= 0 && b==0) obj9=obj2[i]; else if(obj2[i].innerHTML.indexOf('点击下载') >= 0 && b==2) obj9=obj2[i]; } } if(obj9!=null) { var obj3=obj9.getAttribute('onclick'); var obj4=obj9.getAttribute('href'); console.log(obj3); console.log(obj4); if(obj3 != null && obj3.indexOf('startWait')>=0 && b==0) { b=1; startWait(); } else if(obj4 != null && obj4.indexOf('/file/')>=0 && b==2) { b=3; //obj9.click(); //self.location.href=obj4; //$("#bootyz1").hide(); //$("#bootyz2").hide(); //$("#bootyz3").hide(); clearInterval(myVar); setTimeout(alert("助手提示:\n点击[点击下载]按钮开始下载\n如果点击后没有开始下载,可以:\n在按钮上点鼠标右键→[复制链接地址],\n然后到地址栏里点鼠标右键→[粘贴并转到]。"),200); } } }, 1000); } else if(document.location.href.indexOf('rosefile') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); var obj8=document.querySelector("#main > div:nth-child(1)"); if(obj8!=null && obj8.innerHTML.length>1) { var my = document.createElement("div"); document.body.appendChild(my); my.style.backgroundColor="#fefcee"; my.style.position="absolute"; my.style.top="70px"; my.style.right="5px"; my.innerHTML=strTip; obj8.innerHTML =""; } var obj1=$('iframe'); console.log(obj1.length); var i=0; if(obj1 != null && obj1.length>0) { for(i=0;i div:nth-child(2) > div:nth-child(4) > a > span"); if(obj2!=null) obj2.innerHTML ="助手提示:正在进入下载页面,请耐心等待 "+String(b); if(b==0) { console.log("startWait"); startWait(); b++; } else if(b==1) { console.log("redirectDownPage"); redirectDownPage(); b++; } else b++; } }, 500); } else if(document.location.href.indexOf('iycdn') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); var obj9=document.querySelector("#r1"); if(obj9!=null) obj9.innerHTML ="

" + strTip + "
"; if(document.location.href.indexOf('file-')>0 && b==0) { update_sec=null; down_file_link(); var obj2=document.querySelector("#down_link > a:nth-child(1)"); obj2.removeAttribute('target'); obj2.removeAttribute('onclick'); obj2.click(); b=1; } else if(document.location.href.indexOf('down-')>0 && b==1) { document.getElementById('down_box').style.display =''; document.getElementById('down_box2').style.display ='none'; load_down_addr2('171617'); b=2; } else if(document.location.href.indexOf('down-')>0 && b==2) { var obj2=document.querySelector("#down_box"); console.log(obj2.innerHTML); if(obj2.innerHTML.indexOf('下载文件')>0) { setTimeout(alert("助手提示:网页提示错误,等10分钟后再试。"),200); clearInterval(myVar); } else if(obj2.innerHTML.indexOf('免费下载')>0) { setTimeout(alert("助手提示:\n点击[免费下载]按钮开始下载,不需要输入验证码。"),200); clearInterval(myVar); } } else b++; }, 500); } else if(document.location.href.indexOf('dufile') > 0) { var b=0; var myVar = setInterval(function(){ var obj1=document.querySelector("#interval_div"); if(obj1!=null) { //console.log(obj1.innerHTML); if(obj1.innerHTML.indexOf('您已经达到时段内下载限制')>=0) { //console.log("助手提示:网页提示下载限制,等几分钟后再试。"); var obj4=document.querySelector("#right_prem"); if(obj4!=null) obj4.innerHTML ="
" + strTip +"
网页提示下载限制,等几分钟后再试。"+ "
"; return; } } //console.log(b); if(document.location.href.indexOf('/file/')>0 && b<1) { updateTime=null; redirectDownPage(); var obj2=document.querySelector("#right_prem"); if(obj2!=null) obj2.innerHTML ="
" + strTip + "
"; b=1; } else if(document.location.href.indexOf('/down/')>0 && b<2) { var obj2=document.querySelector("#downbtn"); if(obj2!=null) { var str1=obj2.getAttribute('style'); //console.log(obj2.innerHTML); console.log(str1); if(str1.length<5) { doDownload(); b=2; } } var obj9=document.querySelectorAll("div.bluebox"); if(obj9!=null && obj9.length>0) { //console.log(obj9.length); obj9[0].innerHTML ="
" + strTip + "
"; } } else if(document.location.href.indexOf('/down/')>0 && b<3) { console.log(b); var obj2=document.querySelector("#frmDialog"); if(obj2!=null) { console.log(obj2.innerHTML); var obj3=document.querySelector("#show_down");//iframe if(obj3!=null) { var obj4=obj3.contentWindow.document.getElementById('downs') console.log(obj4.getAttribute('href')); b=3; var obj9=obj3.contentWindow.document.querySelectorAll("div.ggao"); if(obj9!=null && obj9.length>0) { setTimeout(alert("助手提示:\n点击[普通下载]按钮开始下载"),200); clearInterval(myVar); } } } } }, 500); } else if(document.location.href.indexOf('xywpan') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); var obj9=document.querySelectorAll("div.package-type"); if(obj9!=null && obj9.length>0) { //console.log(obj9.length); if(obj9[0].innerHTML.indexOf("助手")<0) obj9[0].innerHTML ="
" + strTip + "
"; } if(document.location.href.indexOf('/fs/')>0) { if(b<=0) redirectDownPage(); else if(b<=1) window.location = $("#slow_button").data('href'); b++; } else if(document.location.href.indexOf('/down/')>0) { var obj1=document.querySelectorAll("div.package-download"); if(obj1!=null && obj1.length>0 && b<=2) { for(var i=0;i0) { console.log(obj1[i].innerHTML); var s1=obj1[i].innerHTML; var p1=s1.indexOf('file_id='); if(p1>0) { var p2=s1.indexOf("'",p1); var s2=s1.substring(p1+8,p2); console.log(s2); load_down_addr5(s2); b=3; } } } } else if(b==3) { clearInterval(myVar); setTimeout(alert("助手提示:\n点击[免费下载]按钮开始下载"),200); } } }, 500); } else if(document.location.href.indexOf('katfile') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); var obj1=document.querySelectorAll("div.alert.alert-danger"); if(obj1!=null && obj1.length>0) { for(var i=0;i 0) { b=9; clearInterval(myVar); setTimeout(alert("助手提示:\n网页提示下载限制,等几分钟后再试。"),200); return; } } } if(b==0) { var obj1=document.querySelector("#freebtn"); if(obj1!=null) { obj1.click(); b=1; } } else if(b==1) { var my = document.createElement("div"); document.body.appendChild(my); my.style.backgroundColor="#fefcee"; my.style.position="absolute"; my.style.top="70px"; my.style.right="5px"; my.innerHTML=strTip; b=2; } else if(b==2) { setTimeout(alert("助手提示:\n请根据网页提示完成验证,验证完成点[传送]"),200); b=3; } if(b==0) { var obj2=document.querySelector("#dlink"); if(obj2!=null) { var str2=obj2.getAttribute('href'); if(str2.length>10) { setTimeout(alert("助手提示:\n点[下载]开始下载文件"),200); b=4; clearInterval(myVar); } } } }, 500); } else if(document.location.href.indexOf('expfile') > 0) { var b=0; var myVar = setInterval(function(){ console.log(b); var obj1=document.querySelectorAll("div.alert.alert-danger"); if(obj1!=null && obj1.length>0) { for(var i=0;i 0) { b=9; clearInterval(myVar); setTimeout(alert("助手提示:\n网页提示下载限制,等几分钟后再试。"),200); return; } } } if(document.location.href.indexOf('/down2-')>0 && b==0) { var obj1=document.querySelector("#wait_span"); if(obj1!=null) { console.log(obj1.innerText); b=1; update_sec=null; update_sec2=null; down_file_link(); } } else if(document.location.href.indexOf('/down-')>0 && b<3) { var obj2=document.querySelector("#addr_list"); if(obj2!=null) console.log(obj2); else return; document.getElementById('down_box').style.display =''; document.getElementById('down_box2').style.display ='none'; var obj4=document.querySelector("#vipdownload"); if(obj4!=null) obj4.innerHTML ="
" + strTip +"

点击[普通下载路线]按钮开始下载,不需要输入验证码。"+ "
"; b++; } if(b>=3) clearInterval(myVar); }, 500); } })();