您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自用,只有这一个功能,比较简单
当前为
// ==UserScript== // @name 冰灵ssr自动签到 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 自用,只有这一个功能,比较简单 // @author cghk002 // @match https://www.baidu.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant GM_setValue // @grant GM_getValue // @license GNU // ==/UserScript== (function() { 'use strict'; var cur_url = window.location.href; var btn = null; var LastSignedTime; //function addMenu() { LastSignedTime=GM_getValue("LastSignedTime", "2"); if(Date().toString().substring(8,10)!=LastSignedTime){//是否是当天没有签到 if (cur_url.indexOf("https://www.baidu.com/s?ie=utf-8") != -1) { window.open("https://www.essr.vip/user"); if(cur_url.indexOf("www.essr.vip")!=-1){ btn = document.getElementById('checkin'); btn.click(); //保存签到时间 GM_setValue("LastSignedTime", Date().toString().substring(8,10)); } } }//结 //} // addMenu(); })();