Skip to content

Commit c78c15e

Browse files
authored
修复时间检测问题
1 parent a7a42c3 commit c78c15e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

keylol/stcnsteamid.user.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Keylol SteamID Display
33
// @namespace https://github.com/sffxzzp
4-
// @version 0.07
4+
// @version 0.09
55
// @description Display hided SteamID in keylol's steam connect bar
66
// @author sffxzzp
77
// @match *://keylol.com/t*
@@ -11,6 +11,7 @@
1111
// @icon https://keylol.com/favicon.ico
1212
// @grant GM_xmlhttpRequest
1313
// @updateURL https://github.com/sffxzzp/userscripts/raw/master/keylol/stcnsteamid.user.js
14+
// @downloadURL https://github.com/sffxzzp/userscripts/raw/master/keylol/stcnsteamid.user.js
1415
// ==/UserScript==
1516

1617
(function() {
@@ -50,7 +51,7 @@
5051
ksd.prototype.getNameFromSteam64ID = async function (steam64id) {
5152
var nameList = JSON.parse(localStorage.getItem('ksd')) || {};
5253
var nameItem = nameList[steam64id];
53-
if (nameItem && nameItem.last < (new Date()).getTime() - 86400000) {
54+
if (nameItem && nameItem.last > (new Date()).getTime() - 86400000) {
5455
return nameItem.name;
5556
}
5657
else {

0 commit comments

Comments
 (0)