自动签到

自用各种签到

当前为 2016-11-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         自动签到
// @namespace    https://greasyfork.org/zh-CN/users/75882-qq50941544
// @version      20161104
// @description  自用各种签到
// @author       QQ50941544
// @grant        none
// @include      *//ld.m.jd.com/*
// @include      *//vip.jd.com/*
// @include      *//vip.jr.jd.com/*
// @include      *//jifen.2345.com/*
// @include      *//shouji.2345.com/*
// @include      *//try.jd.com/*
// ==/UserScript==

var wait = 1500;
if(isURL("shouji.2345.com")){
    setTimeout(function(){
		every_day_signature();
	},wait);   
}
if(isURL("jifen.2345.com")){
    setTimeout(function(){
		every_day_signature();
	},wait);   
}
if(isURL("vip.jd.com")){
    setTimeout(function(){
    //document.getElementsByClassName("signup-btn")[0].click();
    document.getElementById('checkinBtn').click();
	},wait+500);   
}
if(isURL("http://vip.jr.jd.com/")){
    setTimeout(function(){
		//document.getElementById('qian-btn').click();
          document.getElementsByClassName("qian-text")[0].click();  
	},wait);   
}
if(isURL("try.jd.com")){
    //京东试用
    setTimeout(function(){
		document.getElementById('btn-app').click();
	},wait);
}
if(isURL("ld.m.jd.com")){
    setTimeout(function(){
		document.getElementById('signId').click();
	},wait);   
}
function isURL(x){
    if(window.location.href.indexOf(x)!=-1){
        return true;
    }else{
        return false;
    }
}