Skip to content

Commit 1fd4589

Browse files
committed
Update T66y tool.user.js
1 parent 828293b commit 1fd4589

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

T66y tool/T66y tool.user.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name 草榴小助手
33
// @namespace hoothin
4-
// @version 0.6.8
4+
// @version 0.6.9
55
// @description 草榴小助手修复,提供“加亮今日帖子”、“移除viidii跳转”、“图片自动缩放”、“种子链接转磁力链”、“预览整页图片”、“游客站内搜索”、“返回顶部”等功能!
66
// @author NewType & hoothin
77
// @match *://*.t66y.com/*
@@ -165,6 +165,14 @@
165165
}
166166
});
167167
}
168+
function getCurrentDate() {
169+
var myDate = new Date();
170+
return myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate();
171+
}
172+
var currentDate = getCurrentDate();
173+
if (currentDate == $.cookie('lastSignDate')) {
174+
document.title = "√" + document.title;
175+
}
168176
var lastReplyTime = $.cookie('lastReplyTime');
169177
var customReplyStr = $.cookie('customReplyStr');
170178
var isCheckIn = document.title.indexOf("打卡签到") !== -1;
@@ -218,6 +226,9 @@
218226
function replySuccess() {
219227
lastReplyTime = Date.now();
220228
$.cookie('lastReplyTime', lastReplyTime, { expires: 7, path: '/' });
229+
if (isCheckIn) {
230+
$.cookie('lastSignDate', currentDate, { expires: 7, path: '/' });
231+
}
221232
submitBtn.val("提 交");
222233
quickReply.val("回复成功");
223234
quickReply.css("background", "yellow");

0 commit comments

Comments
 (0)