2014-08-08发表2014-08-08更新code1 分钟读完 (大约126个字)打开 AcFun 首页自动签到打开 AcFun 首页自动签到,Chrome + TamperMonkey 测试通过 123456789101112131415161718192021222324252627282930313233// ==UserScript==// @name ACFun 每日签到// @namespace http://z4none.me// @version 0.1// @description 打开 Acfun 时自动签到// @match http://www.acfun.tv/// @copyright 2014, [email protected]// ==/UserScript==$(function() { var date = new Date(); var today = date.toDateString(); var ac = $.cookie('auto-checkin'); var box = $("#area-search-guide [name='query']"); console.log("上次签到 : ", ac); if(ac && ac == today) return; box.val("正在签到 ..."); console.log("正在签到 ..."); $.post("/member/checkin.aspx").done(function(data){ if(data.success){ box.val(data.result); console.log(data.result); } else{ box.val(data.result); console.log(data.result); } $.cookie('auto-checkin', today); });}); 打开 AcFun 首页自动签到https://www.z4none.me/chrome-acfun/作者zi发布于2014-08-08更新于2014-08-08许可协议#JavaScript