Skip to content

Commit d3ca358

Browse files
committed
README.md
1 parent 7855049 commit d3ca358

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

Hostloc-Enhanced.user.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name 全球主机交流论坛增强
33
// @version 1.3.4
44
// @author X.I.U
5-
// @description 自动签到(访问空间)、屏蔽用户(黑名单)、屏蔽关键词(帖子标题)、回帖小尾巴、自动无缝翻页、快捷回到顶部(右键点击两侧空白处)、收起预览帖子(左键点击两侧空白处)、预览帖子快速回复带签名、显示是否在线、显示帖子内隐藏回复、屏蔽阅读权限 255 帖子
5+
// @description 自动签到(访问空间 +22 积分)、屏蔽用户(黑名单)、屏蔽关键词(帖子标题)、回帖小尾巴、自动无缝翻页、快捷回到顶部(右键点击两侧空白处)、收起预览帖子(左键点击两侧空白处)、预览帖子快速回复带签名、显示是否在线、显示帖子内隐藏回复、屏蔽阅读权限 255 帖子
66
// @match *://hostloc.com/*
77
// @match *://91ai.net/*
88
// @icon https://www.hostloc.com/favicon.ico
@@ -23,7 +23,7 @@
2323
(function() {
2424
'use strict';
2525
var menu_ALL = [
26-
['menu_autoSignIn', '自动签到', '自动签到', true],
26+
['menu_autoSignIn', '自动签到(22 积分)', '自动签到', true],
2727
['menu_reAutoSignIn', '重新签到', '重新签到', ''],
2828
['menu_blockUsers', '屏蔽用户', '屏蔽用户', false],
2929
['menu_customBlockUsers', '自定义屏蔽用户', '自定义屏蔽用户', []],
@@ -195,10 +195,9 @@
195195
//replyIntervalDOMNodeInserted(); // 监听插入事件(回帖间隔)
196196

197197

198-
// 自动签到(访问空间 10 次 = 20 积分)
198+
// 自动签到(访问空间 10 次 = 20 积分 + 当天首次访问论坛 2 积分
199199
function autoSignIn() {
200200
if (!loginStatus) return
201-
//if (GM_getValue('menu_signingIn')) return
202201
let timeNow = new Date().getFullYear() + "/" + (new Date().getMonth() + 1) + "/" + new Date().getDate(),
203202
timeOld = GM_getValue('menu_signInTime');
204203
if (!timeOld || timeOld != timeNow) { // 是新的一天
@@ -208,33 +207,27 @@
208207
url = 0;
209208
// 随机生成 12 个空间地址(2 个冗余)
210209
for(let i = 0;i < 12;i++){url_list[i] = "https://" + location.host + "/space-uid-" + Math.floor(Math.random()*(50000-10000+1)+10000) + ".html";}
211-
// 每 5 秒访问一次(避免触发网站防御机制)
212-
//GM_setValue('menu_signingIn', true);
210+
// 每 5 秒访问一次(避免触发网站防御机制,而且还可以适当浏览论坛)
213211
let signIn = setInterval(function(){
214212
GM_xmlhttpRequest({
215213
url: url_list[url++],
216214
method: "GET",
217215
timeout: 4000
218216
});
219-
console.log(`[全球主机交流论坛 增强] 金钱 +2 (${url_list[url]})`);
217+
console.log(`[全球主机交流论坛 增强] 积分 +2 (${url_list[url]})`);
220218
if (url === 11) { // 次数够了就取消定时循环
221219
clearInterval(signIn);
222-
//GM_setValue('menu_signingIn', false);
223-
//GM_setValue('menu_signInTime', timeNow); // 写入签到时间以供后续比较
224220
console.log('[全球主机交流论坛 增强] 签到完成!');
225-
GM_notification({text: '签到完成!金钱 +20 ~', timeout: 3500});
221+
GM_notification({text: '签到完成!积分 +22 ~', timeout: 3500});
226222
}
227223
}, 5000);
228-
}/* else { // 新旧签到时间一致
229-
console.info('[全球主机交流论坛 增强] 已经签过到了。')
230-
}*/
224+
}
231225
}
232226

233227

234228
// 重新签到
235229
function reAutoSignIn() {
236-
//GM_setValue('menu_signingIn', false);
237-
GM_setValue('menu_signInTime', '1970/1/1');
230+
GM_setValue('menu_signInTime', '1970/1/1'); // 设置为比当前日期更早
238231
location.reload(); // 刷新网页
239232
}
240233

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
| [<img src="https://user-images.githubusercontent.com/54703944/118383905-b5d32380-b634-11eb-8914-dcea8e628ed3.png" height="16px" />](https://github.com/XIU2) | **新标签页打开链接 \*** | 将网页中所有链接改为新标签页打开~ | **[安装](https://greasyfork.org/zh-CN/scripts/429714)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/TargetBlank.user.js)** |
3333
| [<img src="https://www.52pojie.cn/favicon.ico" height="16px" />](https://www.52pojie.cn) | **吾爱破解论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/412681)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/52pojie-Beautification.user.js)** |
3434
| [<img src="https://www.52pojie.cn/favicon.ico" height="16px" />](https://www.52pojie.cn) | **吾爱破解论坛 增强** | **自动签到**、自动无缝翻页、屏蔽导读悬赏贴 (最新发表页)... | **[安装](https://greasyfork.org/zh-CN/scripts/412680)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/52pojie-Enhanced.user.js)** |
35-
| [<img src="https://i.loli.net/2021/03/30/tvOSNCmi4rIH3Ju.png" height="16px" />](https://hostloc.com) | **全球主机交流论坛 增强 \*** | **自动访问空间、屏蔽用户**、屏蔽关键词、自动无缝翻页等... | **[安装](https://greasyfork.org/zh-CN/scripts/414005)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Hostloc-Enhanced.user.js)** |
35+
| [<img src="https://i.loli.net/2021/03/30/tvOSNCmi4rIH3Ju.png" height="16px" />](https://hostloc.com) | **全球主机交流论坛 增强 \*** | **自动访问空间(22积分)、屏蔽用户**、屏蔽关键词、自动无缝翻... | **[安装](https://greasyfork.org/zh-CN/scripts/414005)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Hostloc-Enhanced.user.js)** |
3636
| [<img src="https://store.steampowered.com/favicon.ico" height="16px" />](https://store.steampowered.com) | **Steam 创意工坊大图 修复** | 修复 Steam 创意工坊预览大图无法显示的问题 | **[安装](https://github.com/XIU2/UserScript/raw/master/SteamWorkshopImageRepair.user.js)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/SteamWorkshopImageRepair.user.js)** |
3737

3838
> _脚本名称末尾 **`*`** 代表该脚本为**网友主动提出需求**而写的。如果你也有需求,可以[告诉我](https://github.com/XIU2/UserScript/issues/new/choose)_

0 commit comments

Comments
 (0)