冰灵ssr自动签到

自用,只有这一个功能,比较简单

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         冰灵ssr自动签到
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  自用,只有这一个功能,比较简单
// @author       cghk002
// @match        https://www.baidu.com/*
// @match        https://www.v2raya.vip/*
// @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;
    LastSignedTime=GM_getValue("LastSignedTime", "2");
    if(Date().toString().substring(8,10)!=LastSignedTime){//是否是当天没有签到
    if (cur_url.indexOf("www.baidu.com/s?ie") != -1) {
        window.open("https://www.v2raya.vip/user");
     }
    }
        if(cur_url.indexOf("www.v2raya.vip")!=-1){
          btn = document.getElementById('checkin');
            btn.click();
            //保存签到时间
            GM_setValue("LastSignedTime", Date().toString().substring(8,10));
        }
})();