Greasy Fork

Greasy Fork is available in English.

吾爱破解论坛自动签到 - 无道

吾爱破解论坛自动签到脚本,很简单的一个脚本。主要就是自动签到,不用手动点击签到。

当前为 2019-10-08 提交的版本,查看 最新版本

// ==UserScript==
// @name            吾爱破解论坛自动签到 - 无道
// @description	    吾爱破解论坛自动签到脚本,很简单的一个脚本。主要就是自动签到,不用手动点击签到。
// @author			无道
// @namespace       52sign
// @version			1.0
// @date            2019.09.30
// @modified		2019.09.30

//引用
// require			http://code.jquery.com/jquery-2.1.4.min.js
// @require			http://cdn.staticfile.org/jquery/2.1.4/jquery.min.js
//图标
// @icon            https://favicon.yandex.net/favicon/52pojie.cn

// @include			http*://www.52pojie.cn/
//功能
// @grant           unsafeWindow
// @grant           GM_log
// @grant           GM_setValue
// @grant           GM_getValue
// @grant           GM_info


// @encoding		utf-8
// @run-at			document-idle
// ==/UserScript==

(function () {
	'use strict';
	var $ = $ || window.$;
	if (GM_getValue(new Date().getDay())) {
		GM_log('已经执行签到了,此次不签到。');
	} else {
		// GM_log('已执行签到!');
		$.get("./home.php?mod=task&do=apply&id=2");
		GM_setValue(new Date().getDay(), 'sign');
		GM_log('sign');
	}
})();