File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/*
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 ;
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" ) ;
You can’t perform that action at this time.
0 commit comments