Greasy Fork

Greasy Fork is available in English.

网站自动签到合集 By aoweisi

try to signature in auto

目前为 2018-01-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         网站自动签到合集 By aoweisi
// @namespace    http://www.liuweb.com
// @version      0.1
// @description  try to signature in auto
// @author       aoweisi
// @include      *//jifen.2345.com/*
// @include      *//ttz.china.com/*
// @include      *//ttz.china.com/Signin/index/*
// @include      *//www.juxiangyou.com/*
// @include      *//www.juxiangyou.com/sign/*
// @include      *//www.2478.com/*
// @include      *//www.2478.com/dayCheck/*

// @grant        none
// ==/UserScript==

function isURL(x){
    if(window.location.href.indexOf(x)!=-1){
        return true;
    }else{
        return false;
    }
}

var wait = 1500;

//2345联盟
if(isURL("jifen.2345.com")){
    setTimeout(function(){
		every_day_signature();
	},wait);
}

//天天钻
if(isURL("ttz.china.com")){
    setTimeout(function(){
		document.getElementsByClassName('sign')[0].click();
	},wait);
}
if(isURL("ttz.china.com/Signin/index")){
    setTimeout(function(){
		document.getElementsByClassName('signinNow')[0].click();
	},wait);
}
//聚享游
if(isURL("www.juxiangyou.com")){
    setTimeout(function(){
		document.getElementsByClassName('qiandao-btn')[0].click();
	},wait);
}
if(isURL("www.juxiangyou.com/sign")){
    setTimeout(function(){
		document.getElementsByClassName('J_sign')[0].click();
	},wait);
}
//24趣吧
if(isURL("www.2478.com")){
    setTimeout(function(){
		if(document.getElementsByClassName('js-checkin')[0].innerText!="已签到"){
            document.getElementsByClassName('js-checkin')[0].click();
        }
	},wait);
}
if(isURL("www.2478.com/dayCheck")){
    setTimeout(function(){
		document.getElementsByClassName('Do_Check')[0].click();
	},wait);
}