mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-07 11:27:41 +00:00
优化 [自动签到(访问空间)] 功能(未登录将不会运行)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 全球主机交流论坛增强
|
||||
// @version 1.1.4
|
||||
// @version 1.1.5
|
||||
// @author X.I.U
|
||||
// @description 自动签到(访问空间)、屏蔽指定用户(黑名单)、自动无缝翻页、自动显示帖子内隐藏回复、自动隐藏阅读权限 255 的帖子、回到顶部(右键点击两侧空白处)
|
||||
// @match *://hostloc.com/*
|
||||
@@ -74,6 +74,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 检查是否登陆
|
||||
var loginStatus = false;
|
||||
if (document.getElementById('um')){
|
||||
loginStatus = true;
|
||||
}
|
||||
|
||||
// 默认 ID 为 0
|
||||
var curSite = {SiteTypeID: 0};
|
||||
|
||||
@@ -155,6 +161,7 @@
|
||||
|
||||
// 自动签到(访问空间 10 次 = 20 积分)
|
||||
function autoSignIn() {
|
||||
if (!loginStatus) return
|
||||
if (GM_getValue('menu_signingIn')) return
|
||||
let timeNow = new Date().getFullYear() + "/" + (new Date().getMonth() + 1) + "/" + new Date().getDate(),
|
||||
timeOld = GM_getValue('menu_signInTime');
|
||||
|
||||
Reference in New Issue
Block a user