你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/13055-kat-smart-full-date-time/discussions/14719,源站連結 點此以跳轉。
Today: "1 hour ago", yesterday: "yesterday, 11:44", earlier: "12 days ago, 01 Oct 2015, 10:45"
< 脚本 KAT: smart full date/time 的反馈
I think it would be better if you submit your code as a separate script, the MIT license allows it. Since you use the KAT site, unlike me, you'll be able to update the script. If you do, I'll hide my script from the listing. Also add a // @contributor q1k and increase the version to 1.1.0 (because your changes are more substantial than a mere bugfix) in the metablock.
But what I can't figure out is thisvar text = prefix ? prefix + time : time + ', ' + n.innerHTML + '';
The way I see it, is that the full date will be added as a prefix to the original text. Correct?
So whatever I try to do to swap these around, so that the full date is appended on the original text, I end up with a non functional script.
I did a "few" changes :)
Thank you for this.