Is there a way to remove the "minutes ago" from on-site statuses?
Author | Topic |
---|---|
dellanonsense
|
Posted 2025-06-21 15:18:13
I would like to remove the "minutes ago" from the status.cafe widget on my neocities site. Is this possible? |
pxxels
|
Posted 2025-07-16 12:28:45
ngl I registered on the forum specifically to answer this because I just found it out myself and I think it's so nice to be able to customise! anyway if you go to the url of the provided script for the widget (https://status.cafe/current-status.js?name=[your_user]), you'll see that it's constructing the widget div using elements from some json variable called "r" which has all the info abt your status. !! you can edit the 2nd last line & last line of code all you want to format the header & content of the widget to remove the 'minutes ago' specifically, you gotta first use an edited version of the script: copy & paste that entire code into a new file (you can name it something like `status_cafe_script.js`), upload it in your neocities, and edit the section of HTML for the status widget. original: <script src="https://status.cafe/current-status.js?name=[your_user]" defer ></script> edited: <script src="[link to your new script file]" defer ></script> then, edit the copied code: delete `+ ' ' + r.timeAgo` at the end of the 2nd last line and the 'minutes ago' part won't show up anymore! (ps. sorry if the markdown gets wonky this is my first post) Last edited on 2025-07-16 12:29:20 |