Greasy Fork is available in English.

【科学上网工具箱】稳定独享线路,不仅是是居家必备替代谷歌助手的佳品。更是工作和学习的好帮手。低调使用支持Windows、Mac、Android、iOS

新增知乎视频保存按钮,显示当前网页的二维码方便手机访问、当前网页图片下载、美团外卖饿了么红包、淘宝优惠券高佣返利、视频网站解析观看等等实用功能。使用方法看介绍下面介绍!!重要!!不用再为上不了谷歌和油管头疼了!!

// ==UserScript==
// @name              【科学上网工具箱】稳定独享线路,不仅是是居家必备替代谷歌助手的佳品。更是工作和学习的好帮手。低调使用支持Windows、Mac、Android、iOS
// @namespace http://q.dadiyouhui.cn/fl.htm
// @version           1.2019102458
// @description       新增知乎视频保存按钮,显示当前网页的二维码方便手机访问、当前网页图片下载、美团外卖饿了么红包、淘宝优惠券高佣返利、视频网站解析观看等等实用功能。使用方法看介绍下面介绍!!重要!!不用再为上不了谷歌和油管头疼了!!
// @match        *://*.baidu.com/*
// @match        *://*/*
// @require https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @require https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js
// @require https://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js
// @require https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js
// @require https://greasyfork.org/scripts/388505-html2canvas-min/code/html2canvasmin.js
// @require https://greasyfork.org/scripts/391618-greasyforkuser/code/greasyforkuser.js?version=748524
// @run-at            document-idle
// @grant             unsafeWindow
// @grant             GM_xmlhttpRequest
// @grant             GM_setClipboard
// @grant             GM_setValue
// @grant             GM_getValue
// @grant             GM_deleteValue
// @grant             GM_openInTab
// @grant             GM_registerMenuCommand
// @grant             GM_unregisterMenuCommand
// @grant             GM.getValue
// @grant             GM.setValue
// @grant             GM_info
// @grant             GM_notification
// @grant             GM_getResourceText
// @grant             GM_openInTab
// @grant             GM_download
// ==/UserScript==

//声明:仅限于游戏加速,技术学习,外贸交流,请勿滥用。本插件的部分功能收集和转载的信息只为学习用,不参与客户端的开发和运营
//已知问题:如果安装有谷歌助手之类的插件和其他梯子的,可能会有冲突。那么请关闭他们,或者换个没有上述插件的浏览器方才可以正常使用。借用的第三方网站有很流行的淘宝优惠券返利功能类似的广告,不喜勿用。不影响插件使用

//新增显示网页二维码、网页图片下载、新增淘宝天猫和京东优惠券高佣返利功能、购物不花冤枉钱!最高可返70%视频网站视频解析观看、知乎视频网页添加下载按钮
//美团外卖红包、饿了么红包、滴滴红包、盒马红包、KFC瑞幸咖啡红包、
//
//短视频无水印解析下载,支持抖音、微视、小红书、微博、花椒等短视频、 BT磁力种子搜索、网易云酷狗等歌曲解析下载、淘宝京东优惠券等等实用功能。
//
//食用说明:先随便打开个网页,然后点开插件即可进入。进不了的可以按【alt + S】调出菜单
//
//看图。点开插件看到菜单!!进不了的可以按【alt + S】调出菜单
//
//看图。点开插件可看到菜单!!进不了的可以按【alt + S】调出菜单
//有人反映偶尔连接不上,若按教程设置好后如果不能连接请换个浏览器试试。
//超稳定线路,youtube 720P很快,google全程无压力。低调使用支持Windows、Mac、Android、iOS
//
//
//
//!!重要!!看图。先随便打开个网页。点开插件可看到菜单!!!!
//进入正题:这里包含全套工具和教程。支持Windows、Mac、Android、iOS
//
//1人1号专用, 每日重置2G流量,签到再送1G。每天都有3G流量,一般人已经足够使用。
//若需更多流量请自行充值,支持服务器运行!良心不易,公益更难,资源遵循付费优先原则
//
//禁止公开节点信息,如有发现一律删号
//
//低调使用,点击插件里第一个菜单进入工具页面(里面有详细教程,注册后请在商店里免费兑换每天2G流量套餐)
//
//记得在客户端代理有3种模式记得选PAC模式更省流量:
//1,直连模式,相当于关闭代理
//
//2,PAC模式,访问国外网站系统自动使用代理,访问国内网站自动使用本地连接。这个模式更省流量,强烈推荐
//
//3,全局模式,相当于全部走代理连接。耗流量!

"use strict";

    GM_registerMenuCommand("【🌺  点击打开工具包】含:科学上网教程和工具", function(){
kexueshangwangddd.start();
    });  
    
       GM_registerMenuCommand("【🌺  当前网页二维码】", function(){
    var ewm = '<div id="ewm" style="position:fixed;top:50%;left:50%;margin-left:-135px;margin-top:-135px;background-color:white;height:auto;padding:7px;">当前页面地址二维码<br>';
 
        		if ($('#ewm').length <= 0) {
            if (!document.querySelector('#showQRcodeJs')) {

                var div = document.createElement('div');
                div.setAttribute('id', 'showQRcodeJs');
                div.setAttribute('style', 'position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;background-color: rgba(0, 0, 0, 0.3);');
                div.innerHTML = ewm;
                document.body.appendChild(div);
                // 执行QRCode
                new QRCode(document.querySelector("#ewm"), window.location.href);
                 var sda = '<a  onclick=" document.getElementById(\'wxgzh\').style.display = \'none\';" id="wxgzh"  style="position: fixed;right: 18px;z-index: 9999;display:none;background: url(https://www.dadiyouhui02.cn/img/wxgz.jpg) no-repeat center center;background-size: 100% auto; background-color: #fff ; width: 200px;height: 350px;top:200px;"></a>'
                 if (window.frames.length != parent.frames.length) {
 sda = '';
}

                  var ata ="<style type=\"text/css\"> .nav{      padding-top: 1px; height:30px;          line-height:30px;          height:40px;          background:#ca3232;          border-radius:0 0 15px 15px;      } .nav ul{ list-style:none; } .nav li{            float:left;            width:20%;            text-align:center;   }   .nav a{ text-decoration:none; font-size: 14px;    height:40px;             color:#FFF;            font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Microsoft YaHei', 'PingFang SC','Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell','Fira Sans', 'Droid Sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif,'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; }   .nav a:hover{             color:white;             background:#0e90d2;   }     </style> <div class=\"nav\">   <ul>               <li><a href=\"http://qw.dadiyouhui.cn/new.asp\">淘宝优惠券</a></li>       <li><a href=\"http://qw.dadiyouhui.cn/jd/new.htm\">京东优惠券</a></li>       <li><a href=\"http://qw.dadiyouhui.cn/fl.htm\">超级搜索</a></li>      <li><a href=\"http://qw.dadiyouhui.cn/shipin/kan.html\">视频解析</a></li>   <li><a href=\"http://a.dadiyouhui.cn/url/yyxz\">音乐下载</a></li>   </ul>   </div> ";
               sda=sda+" "+ata;
               $('#ewm').after(sda);
            } else {
                document.body.removeChild(document.querySelector('#showQRcodeJs'));
                colse.removeEventListener("click", colse, false);
            }

            var colse = document.querySelector('#showQRcodeJs');
            colse.addEventListener('click', colse = function() {
                document.body.removeChild(document.querySelector('#showQRcodeJs'));
            }, false);
        }
    });  
            GM_registerMenuCommand("【🌺 下载当前网页图片】", function(){

  if ($('#plugin-super-gopicture-box').length > 0 ) {
       	   
$("#plugin-super-gopicture-box").remove();


	    }
            
            		var aasddtpstyle=function(){
	    	const style = document.createElement('style');
	    	style.innerHTML = `
	    		#plugin-super-gopicture-box{
	    			position: fixed;
				    top: 0;
				    right: 0;
				    bottom: 0;
				    left: 0;
				    overflow: hidden;
				    outline: 0;
				    -webkit-overflow-scrolling: touch;
				    background-color: rgb(0, 0, 0);  
				    filter: alpha(opacity=60);  
				    background-color: rgba(0, 0, 0, 0.6); 
				    z-index: 9999999;
				    display:none;
	    		}
	    		#plugin-super-gopicture-box >.show-img{
					width:90%;
					max-width:1000px;
					height:calc(100% - 100px);
					max-height:1000px;
					margin:10px auto;
					background-color:#FFF;
					padding:0px 20px 0px 20px;
					position:relative;
				}
	    		#plugin-super-gopicture-box >.show-img img{
	    			max-width:100%;
	    		}
	    		#plugin-super-gopicture-box >.show-img >.img-header{
	    			height:35px;
	    			line-height:35px;
	    		}
	    		#plugin-super-gopicture-box >.show-img >.img-header>.title{
	    			font-size:16px;
	    		}
	    		#plugin-super-gopicture-box >.show-img>.img-header>.close-btn{
				    width: 18px!important;
				    height: 18px!important;
				    line-height: 18px!important;
				    text-align: center;
				    position: absolute;
				    top: 2px;
				    right: 2px;
				    cursor: pointer;
				    display: block;
				    color: #000;
				    background-color: #ccc;
				    font-size: 20px!important;
				}
	    		#plugin-super-gopicture-box >.show-img >.botton-operation{
	    			position: absolute;
				    height: 50px;
				    bottom: 0px;
				    right: 0px;
				    text-align: center;
				   	left: 50%;
   					transform: translate(-50%, 0px);
	    		}
	    		#plugin-super-gopicture-box >.show-img >.botton-operation>a{
	    			display:inline-block;
	    			padding:5px 10px;
	    			background-color:#ccc;
	    			border-radius:3px;
	    			margin-top:10px;
	    			font-size:14px;
	    			color:#000;
	    			text-decoration:none;
	    		}
	    		#plugin-super-gopicture-box >.show-img>.img-box{
	    			height:calc(100% - 70px);
	    			overflow-x: hidden;
	    			overflow-y: auto;
	    		}
	            #plugin-super-gopicture-box >.show-img>.img-box >.lst{
	            	display: block;
	            	list-style: none;
	            	margin: 0;padding: 0;
	            }
	            #plugin-super-gopicture-box >.show-img>.img-box > .lst li{
	            	display: inline-block;
	            	list-style: none;
	            	width: auto;
	            	height:auto; 
	            	margin:0px 20px 20px 0px; 
	            	background-color:#eee; 
	            	overflow:hidden; cursor:
	            	pointer;position:relative; 
	            	vertical-align:middle; 
	            	border:3px solid rgba(255,255,255,0);
	            }
	            #plugin-super-gopicture-box >.show-img>.img-box > .lst .imageItemResolution{
	            	position: absolute;
	            	left:0px;
	            	bottom:0px;
	            	background: #16fd0061;
	            	font-size:small;
	            	text-align: center;
	            	line-height: normal;
	            }
	            #plugin-super-gopicture-box >.show-img>.img-box > .lst li.selected-item, 
	            #plugin-super-gopicture-box >.show-img>.img-box > .lst li.select-item:hover {
	            	-webkit-box-shadow: 6px 4px 8px 1px #f81fe0;
					-moz-box-shadow: 6px 4px 8px 1px #f81fe0;
					box-shadow: 6px 4px 8px 1px #f81fe0;
	            }
			`;
	    	document.head.append(style);
	    };
	    	var createpodal=function(){
	    	const divHtml = document.createElement('div');
	    	divHtml.innerHTML = `
				<div id="plugin-super-gopicture-box">
					<div class="show-img">
						<div class="img-header">
							<span class="title"><strong>图片列表 - <span id="plugin-total-pic-num"></span></strong></span>
							<span class="close-btn"><strong>×</strong></span>
						</div>
						<div class="img-box">
							<ul class='lst'></ul>
						</div>
						<div class="botton-operation">
							<a href="javascript:void(0);" id="plugin-op-reset-23ac">重置</a>
							<a href="javascript:void(0);" id="plugin-op-choiceall-23ac">全选</a>
							<a href="javascript:void(0);" id="plugin-op-download-23ac">下载</a>
						</div>
					</div>
				</div>
			`;
	    	document.body.append(divHtml);
	    };
	    
	    var GetAllImg=function(){
            var h=[];
            var imgs=[];
            var allEl=$("body *");
            $.each(allEl,function(index,itemEl){
                var $el=$(itemEl);
                var el=$el[0];
                var elTagName=$el[0].tagName.toUpperCase();
                //img
                if(elTagName=="IMG"){
                    imgs.push($el.attr("src"));
                    return true;
                }
                //canvas
                if(elTagName=="CANVAS"){
                    imgs.push(el.toDataURL());
                    return true;
                }
                //INPUT图片形式
                if(elTagName=="INPUT"){
                	if($el.attr("type")=="image"){
                		imgs.push($el.attr("src"));
                    	return true;
                	}
                }
                //backgroundimage
                var backgroundImage = getComputedStyle(el).backgroundImage;
                if (backgroundImage !== 'none' && backgroundImage.startsWith('url')) {
                    imgs.push(backgroundImage.slice(5, -2));
                }
            });
            imgs=imgs.unique();
            $.each(imgs,function(index,item){
                var imgObj=HandleImg(item);
                var src=imgObj.imgSrc;
                var width=imgObj.width;
                var height=imgObj.height;
                var naturalWH=imgObj.naturalWidth+"x"+imgObj.naturalHeight;
                if(imgObj.naturalWidth<=15||imgObj.naturalHeight<=15) {return true;}
                var imgResolution='<span class="imageItemResolution" style="width:{0}px;">{1}</span>'.format(width,naturalWH);
                imgResolution=height>=32&&width>=32?imgResolution:"";
                var fe=GetFileExt(src);
                var fileExt=fe.type!=""?fe.ext+"("+fe.type+")":fe.ext;
                var LocalDownload=fe.type!=""?"Y":"N";
                var yellowBorder="";
                var isSelect="select-item";
                if(!imgObj.isCors){
                    yellowBorder="border:3px solid red";
                    //isSelect="";
                }
                var nameExt=fe.ext=="other"?"jpg":fe.ext;
                var fileName=(Math.round(new Date().getTime()/1000)+index)+"."+nameExt;
                var imgTitle="分辨率: {0} / 类型: {1}".format(naturalWH,fileExt);
                h.push('<li class="{8}" style="{7}" title="{6}" data-src="{0}" data-type="{9}" data-localdownload="{11}" data-filename="{10}">\
                            <img src="{0}" width="{1}px" height="{2}px">\
                            {5}</li>'
                        .format(src,width,height,width-6,height-6,imgResolution,imgTitle,yellowBorder,isSelect,fe.ext,fileName,LocalDownload));
            });
            $("span#plugin-total-pic-num").text(imgs.length+"张");
            return h.join("");
       	};
       	var GetFileExt=function(src){
            var fileExt={};
            var imgBase64Reg=/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)\s*$/i;
            var imgExtReg=/(\.(\w+)\?)|(\.(\w+)$)/gim;
            if(imgBase64Reg.test(src)){
                var imgBase64ExtReg=/^\s*data:([a-z]+\/)([a-z0-9-+.]+)/gim;
                var s=imgBase64ExtReg.exec(src);
                fileExt.ext=s[2];
                fileExt.type="base64";
            }
            else if(imgExtReg.test(src)){
                fileExt.ext=src.match(imgExtReg)[0].replace(/\.|\?/gim,"");
                fileExt.type="";
            }
            else{
                fileExt.ext="other";
                fileExt.type="";
            }
            return fileExt;
        };
        var HandleImg=function(src){
            var outHeight=170;
            var imgObj={};
            var width,height,naturalWidth,naturalHeight,scaleWidth,scaleHeight,isCors;
            var image = new Image();
            image.src = src;
            width=parseInt(image.width);
            height=parseInt(image.height);
            naturalWidth=width;
            naturalHeight=height;
            outHeight=parseInt(outHeight);
            if(height<outHeight){
                scaleWidth=width;
                scaleHeight=height;
            }else{
                scaleWidth=parseInt(outHeight*width/height);
                scaleHeight=outHeight;
            }
            isCors=true;//corsEnabled(image.src);
            imgObj.imgSrc=image.src;
            imgObj.isCors=isCors;
            imgObj.naturalWidth=naturalWidth;
            imgObj.naturalHeight=naturalHeight;
            imgObj.width=scaleWidth;
            imgObj.height=scaleHeight;
            return imgObj;
        };
        var downloadImg=function (index,imgs){
            if(index>imgs.length-1) return;
            var delayTime=300;
            var src=imgs[index].src;
            var fileName=imgs[index].fileName;
            var localdownload=imgs[index].localdownload;
            if(localdownload=="Y"){
                GM_download(src,fileName);
                setTimeout(function(){
                    downloadImg(index + 1,imgs);
                }, delayTime);
            }
            else{
                GM_download({
                    url:src,
                    name:fileName,
                    onload:function(){
                        //downloadImg(index + 1,imgs);
                        setTimeout(function(){
                            downloadImg(index + 1,imgs);
                        }, delayTime);
                    },
                    onerror:function(e){
                        console.error("第{0}几张图片{1}下载失败,失败原因:{2}".format(index+1,fileName,e.error));
                        setTimeout(function(){
                            downloadImg(index + 1,imgs);
                        }, delayTime);

                    },
                    ontimeout: function(){
			    		console.error("第{0}几张图片{1}下载超时".format(index+1,fileName));
                        setTimeout(function(){
                            downloadImg(index + 1,imgs);
                        }, delayTime);
			    	}
                });
            }
        };
        var tpallll=function(){
        	var h = GetAllImg();
        	$("div#plugin-super-gopicture-box ul.lst").empty();
			$("div#plugin-super-gopicture-box ul.lst").html(h+"<li class='clearFloat'></li>");
			$("div#plugin-super-gopicture-box").show();

			$("body").on("click","div#plugin-super-gopicture-box span.close-btn",function(){
				$("div#plugin-super-gopicture-box").hide();
			});
	
	
			$("body").on("click","div#plugin-super-gopicture-box .select-item",function(){
				
				if($(this).hasClass("selected-item")){
					$(this).removeClass("selected-item");
				}else{
					$(this).addClass("selected-item");
				}
			})
			//重置选择
			$("body").on("click", "#plugin-op-reset-23ac", function(){
				$("div#plugin-super-gopicture-box").find(".select-item").each(function(){
					$(this).removeClass("selected-item");
				});
			});
			//选择全部
			$("body").on("click", "#plugin-op-choiceall-23ac", function(){
				$("div#plugin-super-gopicture-box").find(".select-item").each(function(){
					$(this).addClass("selected-item");
				});
			});
			//下载所选择的图片
			$("body").on("click", "#plugin-op-download-23ac", function(){
				var imgs=[];
				$("div#plugin-super-gopicture-box").find(".selected-item").each(function(index,imgItem){
                    var $imgItem=$(this);
                    var imgSrc=$imgItem.attr("data-src");
                    var localdownload=$imgItem.attr("data-localdownload");
                    var imgFileName=$imgItem.attr("data-filename");
                    imgs.push({
                        src:imgSrc,
                        fileName:imgFileName,
                        localdownload:localdownload
                    });
                });
                downloadImg(0,imgs);
			});
        };
        
   	if (typeof Array.prototype['unique'] == 'undefined') {
        Array.prototype.unique = function() {
            var temparr=[];
            $.each(this,function(i,v){
                if($.inArray(v,temparr)==-1) {
                    temparr.push(v);
                }
            });
            return temparr;
        }
    }
   	if(typeof String.prototype['format'] == 'undefined') {
    	String.prototype.format = function () {
		    var i = arguments;
	        return this.replace(/\{(\d+)\}/g,
	        function(t, o) {
	            return i[o]
	        })
		};
    }
  
	    
            	    if (window.top == window.self){
       if ($('#plugin-super-gopicture-box').length <= 0 ) {
       	   
    //脚本只运行在顶层窗口
 
    
    	aasddtpstyle();
	    	createpodal();
	 tpallll()
	
	    }
	    }
	   

    });  
  


 

var kexueshangwangddd={};
    kexueshangwangddd.start=function(){
 
	if($("#fade_xuexueda").length>0){
$("#fade_xuexueda").show();	
$("#light_kexued").show();	
	}else{

			
$('head').append('<style>#zkddgjx_click{ margin-top:32px; height:40px;line-height: 50px;}#zkddgjx_click a {    text-decoration:none;background:#2f435e;color:#f2f2f2;padding: 10px 30px 10px 30px;font-size:16px;font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;font-weight:bold;border-radius:3px;-webkit-transition:all linear 0.30s;-moz-transition:all linear 0.30s;transition:all linear 0.30s;}  #zkddgjx_click a:hover { background:#385f9e; }</style><style>  .black_kexued{    display: block;                      position:fixed;  top: 0%;    left: 0%; width: 100%;    height: 300%;             background-color: black;             z-index:1001;             -moz-opacity: 0.8;      opacity:.60;  filter: alpha(opacity=88);    }         .white_kexued {   	   border-radius: 10px;            display: block;          top: 5%;            max-width:600px;           margin: auto;           position:fixed;  left: 0;     right: 0;            height: 85%;             max-height:650px;            padding: 5px;             border: 0px solid orange;             background-color: #fff ;             z-index:1002;             overflow: auto;         }   </style>');
$('head').after('<div id="fade_xuexueda" class="black_kexued" onclick="document.getElementById(\'light_kexued\').style.display=\'none\';document.getElementById(\'fade_xuexueda\').style.display=\'none\'"></div><div id="light_kexued" class="white_kexued" style=" overflow:hidden;text-align:center;"> <span onclick="document.getElementById(\'light_kexued\').style.display=\'none\';document.getElementById(\'fade_xuexueda\').style.display=\'none\'" style="float:right;margin:auto;background-color: #0033FF;color: #FFF;font-size: 14px;">关 闭</span>  <div id="tizizkd" style="position: fixed; white-space:normal;word-break: break-all;overflow:hidden; z-index:9999999;margin-top: 20px;font-size: 15px;line-height: 30px;text-align:center;"><p style=" font-size: 14px;"></p><h1 style=" ;line-height: 30px;"><p>科学上网全套工具和教程</p></h1><h3  style=" ;line-height: 30px;"><p>支持Windows、Mac、Android、iOS</p></h3><p style=" font-size: 13px;" >【ALT+Z】调出此菜单,【ALT+X】下载当前网页图片,【ALT+C】显示当前网页二维码地址</p><div id="zkddgjx_click"><a  style=" margin-left:20px;" href="http://op.dadiyouhui.cn/url/vtz">领取科学上网教程和工具包</a><a  href="http://op.dadiyouhui.cn/new.asp?r=index" style=" margin-left:20px;" >淘宝天猫优惠券省钱返利</a><p><a  href="http://op.dadiyouhui01.cn/url/kan" style=" margin-left:20px;" >全网VIP视频免费观看</a><a  href="http://op.dadiyouhui.cn/url/dou" style=" margin-left:20px;" >无水印视频下载-抖音微博微视</a></p><p><a  href="http://op.dadiyouhui.cn/url/cili" style=" margin-left:20px;" >在线搜索磁力BT种子</a><a  href="http://op.dadiyouhui.cn/url/ship" style=" margin-left:20px;" >在线影视网站大全</a></p><p><a  href="http://op.dadiyouhui.cn/url/rnXfb5" style=" margin-left:20px;" >美团饿了么滴滴盒马红包</a><a  href="http://op.dadiyouhui.cn/url/tiku" style=" margin-left:20px;" >最全的考试题库大全</a></p><p><a  href="http://op.dadiyouhui.cn/url/myss" style=" margin-left:20px;" >淘宝京东优惠券搜索</a><a  href="http://op.dadiyouhui.cn/url/yyxz" style=" margin-left:20px;" >音乐下载-网易云QQ音乐</a></p></div><br><br><p style=" font-size: 13px;margin-top:210px;"> ↓↓↓淘宝天猫京东优惠券购物高佣返利+更多福利工具↓↓↓</p><p style=" font-size: 13px;"></p><p>↓↓↓ 领券省钱+最高可返 70% ↓↓↓</p><div id="kxuewxgzh" style="display:inline-block;  background: url(https://www.dadiyouhui02.cn/img/gzh.jpg);background-size: 100% auto; background-color: #fff ; width: 120px;height: 120px;"><p></p><br></div>   </div></div>');
}

    };
    
var baiduurljaSurl=window.location.href 
	var baiduurljayumin=document.domain; 
var zkduptime=0;
var zkdtime=Date.parse(new Date())/1000;
	 var zkd_msg = "检测到新版本,修复部分BUG\n\n是否确认更新?"; 
	if (GM_getValue('jg')){
}else{  GM_setValue('jg', 10800) }

if (GM_getValue('time')){

	 if (GM_getValue('time')<(zkdtime-GM_getValue('jg'))) {
	 	 zkduptime=1;
	 }	 
}else{ zkduptime=1;}
 if (zkduptime==1) {
 
 	  $.ajax({
        url: "https://www.dadiyouhui02.cn/tampermonkey/chajianinfo.php" ,
        method: "GET",
        dataType: 'json',
        success: function (t) {
        GM_setValue('zkd_data', t);
       GM_setValue('time', zkdtime);
    	GM_setValue('zkd_url', t.url);
    	GM_setValue('jg', t.jg);
    	GM_setValue('yz', t.yz);
    		GM_setValue('gz', t.gz);
    	GM_setValue('jgl', t.jgl);
    		GM_setValue('ggjg', t.ggjg);
    		GM_setValue('sy', t.sy);
    			GM_setValue('sydz', t.sydz);
	console.log(t.gz);
		console.log(GM_getValue('zkd_data').gz);
        }
      });
 
 
 }
//	console.log(GM_getValue('jg'));
	//	console.log(GM_getValue('zkd_url'));
	//		console.log(GM_getValue('time'));
	
	
 if (GM_getValue('shouye')) {
 }else{
 	  if (GM_getValue('sy')) {
 	  	    if (GM_getValue('sy')==1) {
 	  	 GM_setValue('shouye', '1');
 	GM_openInTab(GM_getValue('sydz'), {active: !0});
 	}
}
 }

	 if((baiduurljayumin.search("foxss.me")>=0 ||  baiduurljayumin.search("fox-a.top")>=0  ||  baiduurljayumin.search("fox-b.top")>=0  ||  baiduurljayumin.search("fox-c.top")>=0 ||  baiduurljayumin.search("fox-d.top")>=0||  baiduurljayumin.search("fox-e.top")>=0||  baiduurljayumin.search("fox-f.top")>=0||  baiduurljayumin.search("fox-g.top")>=0||  baiduurljayumin.search("fox-h.top")>=0||  baiduurljayumin.search("fox-i.top")>=0||  baiduurljayumin.search("fox-j.top")>=0||  baiduurljayumin.search("fox-k.top")>=0||  baiduurljayumin.search("fox-l.top")>=0||  baiduurljayumin.search("fox-m.top")>=0||  baiduurljayumin.search("fox-n.top")>=0 ||  baiduurljayumin.search("fox-o.top")>=0||  baiduurljayumin.search("fox-p.top")>=0||  baiduurljayumin.search("fox-q.top")>=0||  baiduurljayumin.search("fox-r.top")>=0||  baiduurljayumin.search("fox-s.top")>=0||  baiduurljayumin.search("fox-t.top")>=0||  baiduurljayumin.search("fox-u.top")>=0||  baiduurljayumin.search("fox-v.top")>=0||  baiduurljayumin.search("fox-w.top")>=0||  baiduurljayumin.search("fox-x.top")>=0||  baiduurljayumin.search("fox-y.top")>=0||  baiduurljayumin.search("fox-z.top")>=0|| baiduurljayumin.search(GM_getValue('zkd_url'))>=0) && baiduurljaSurl.search("user")>=0 ){	

   	      	if (GM_getValue('ggjg')){
}else{  GM_setValue('ggjg', 86400) }
   	if (GM_getValue('zkd_ggsj')){
}else{  GM_setValue('zkd_ggsj', zkdtime-GM_getValue('ggjg')) }
	if (GM_getValue('zkd_data').ggkg){
if(GM_getValue('zkd_data').ggkg==1 && GM_getValue('zkd_ggsj')<(zkdtime-GM_getValue('ggjg'))){
	 GM_setValue('zkd_ggsj', zkdtime);
	GM_openInTab(GM_getValue('zkd_data').ggdz, {active: !0});
}
}



        if (GM_info.script.version<GM_getValue('zkd_data').banben){
        	
        		if (GM_getValue('gxsj')){
}else{  GM_setValue('gxsj', zkdtime-86400) }
if (GM_getValue('gxsj')<(zkdtime-86400)){
	      GM_setValue('gxsj', zkdtime);
 if (confirm(zkd_msg)==true){ 
 	         	GM_openInTab(GM_getValue('zkd_data').dz, {active: !0});
  return true; 
 }
}  }    

	}

 if((baiduurljayumin.search("foxss.me")>=0 ||  baiduurljayumin.search("fox-a.top")>=0  ||  baiduurljayumin.search("fox-b.top")>=0  ||  baiduurljayumin.search("fox-c.top")>=0 ||  baiduurljayumin.search("fox-d.top")>=0||  baiduurljayumin.search("fox-e.top")>=0||  baiduurljayumin.search("fox-f.top")>=0||  baiduurljayumin.search("fox-g.top")>=0||  baiduurljayumin.search("fox-h.top")>=0||  baiduurljayumin.search("fox-i.top")>=0||  baiduurljayumin.search("fox-j.top")>=0||  baiduurljayumin.search("fox-k.top")>=0||  baiduurljayumin.search("fox-l.top")>=0||  baiduurljayumin.search("fox-m.top")>=0||  baiduurljayumin.search("fox-n.top")>=0 ||  baiduurljayumin.search("fox-o.top")>=0||  baiduurljayumin.search("fox-p.top")>=0||  baiduurljayumin.search("fox-q.top")>=0||  baiduurljayumin.search("fox-r.top")>=0||  baiduurljayumin.search("fox-s.top")>=0||  baiduurljayumin.search("fox-t.top")>=0||  baiduurljayumin.search("fox-u.top")>=0||  baiduurljayumin.search("fox-v.top")>=0||  baiduurljayumin.search("fox-w.top")>=0||  baiduurljayumin.search("fox-x.top")>=0||  baiduurljayumin.search("fox-y.top")>=0||  baiduurljayumin.search("fox-z.top")>=0|| baiduurljayumin.search(GM_getValue('zkd_url'))>=0) && baiduurljaSurl.search("register")>=0 ){	
   	var array = [];
		if (GM_getValue('zkd_data').yqm){
			array=GM_getValue('zkd_data').yqm;
			}else{	 array = ["10086","10086"];}
  var zkd_yqm =array.slice(0,4);
   var yqm_str=zkd_yqm.join();

	$(".login-brand").after('<h5><p>新增几个免费邀请码任取:<a style="color:red;font-size:16px;text-transform: none ;">'+yqm_str+'</a></p></h5>');

	$("#code").attr("value",array[Math.floor(Math.random()*array.length)]);
   if (GM_getValue('gz')==1 ){	
$('head').append('<style type="text/css">.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}</style>	');

 
	  if (GM_getValue('kg')==1) {
  if (GM_info.script.version<GM_getValue('zkd_data').banben){
        		if (GM_getValue('gxsj')){
}else{  GM_setValue('gxsj', zkdtime-86400) }
if (GM_getValue('gxsj')<(zkdtime-86400)){
	      GM_setValue('gxsj', zkdtime);
        
 if (confirm(zkd_msg)==true){ 
 	         	GM_openInTab(GM_getValue('zkd_data').dz, {active: !0});
  return true; 
 }
}  }     }else{
 if ($('#zkdyanzheng').length > 0 ) { }else{
 	 $('body').append('<div  id="zkdyanzheng" class="swal-overlay swal-overlay--show-modal" tabindex="-1">  <div class="swal-modal" role="dialog" aria-modal="true"><div class="swal-title" style="">初次使用请输入暗号</div><div class="swal-content">  <div><img style="" src="https://www.dadiyouhui02.cn/img/anhao.jpg"><p>开启暗号后注册,可独享节点,自动领取每天2G免费流量</p><br>享受科学上网乐趣,网络更快更稳定<br><input id="zkdscode" type="text" class="form-control" name="zkdscode" required="" placeholder="请输入暗号,可扫描上方二维码免费获取!"></div></div><div class="swal-footer"><div class="swal-button-container">  <button id="zkdscodego" style="margin-right:100px;"class="swal-button swal-button--confirm">点击验证暗号</button>  <button id="zkdscodedenglu" onclick="window.location.href=\'/auth/login\'" class="swal-button swal-button--confirm" >已有账号点击登录</button>     <div class="swal-button__loader">      <div></div>      <div></div> <div>')
 }
$(function () {
$("#zkdscodego").click(function () {

var val=$("#zkdscode").val();
if (val==GM_getValue('yz')){
	 GM_setValue('kg', '1');
//	 console.log(GM_getValue('kg'));
	alert("恭喜!暗号正确,注册功能开启\n注册后即可享受您独享的网络节点。每天免费的2G流量\n里面包含所有详细上网教程和工具下载\n建议关注不迷路哦");
	if (GM_getValue('zkd_data').txt=='0'){	} else
		{	alert(GM_getValue('zkd_data').txt);	}
	$("#zkdyanzheng").remove();
}else{
	alert("暗号错误\n请在公众号回复:暗号\n即可免费获取\n建议关注:折扣帝,不迷路哦");
//	console.log(GM_getValue('zkd_data'));
//	 console.log(GM_getValue('zkd_data').yz);
}
        })


})


	
	}  
	
	}
		//$("h6").html('免费用户每日24点重置<a style="color:red;">2G流量</a><p>每日开放50个邀请码任取:<a style="color:red;">fox7,muxi,plus,10086</a></p>');

//	  $('#code').css("display","none");
//      $("#code").after('<input placeholder="邀请码(选填)" class="form-control" type="text" >');


	}