User talk:GhostInTheMachine/TalkHelper2
Appearance
Question
[edit]Why does this need local time. It would work just as well using UTC.--something I absolutely rely on to hkeep my head straight. Or is it pulling a hook from the time conversion script? DGG ( talk ) 18:30, 1 December 2020 (UTC)
- The Wikipedia:Comments in Local Time gadget scans a page for timestamps. It then adjusts their time to the local time zone and then (the bit I need) wraps the altered timestamp in a
<span>
tag with alocalcomments
class. It also replaces the date part with the text yesterday or today if appropriate. So that it can build the table of contents for all posts in the last two days, TalkHelper then searches for all uses of thelocalcomments
class with the text yesterday or today. This is saving me all of the hard work associated with finding and parsing dates, but it does need theCommentsInLocalTime
gadget to have done all the hard work first. — GhostInTheMachine talk to me 19:27, 1 December 2020 (UTC)
TalkHelper
[edit]![](http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Purple_arrow_down.svg/20px-Purple_arrow_down.svg.png)
Thank you for the very useful script! Unfortunately, whenever I'm reading on mobile, it pops up a warning that I don't have commentsInLocalTime enabled every time I load a new page. Is it possible to disable that somehow? Rusalkii (talk) 17:23, 1 February 2022 (UTC)
- @Rusalkii: The TalkHelper script needs the commentsInLocalTime gadget to be enabled as well. See TalkHelper #Use and #Prerequisites for how to do that (and why) — GhostInTheMachine talk to me 19:09, 1 February 2022 (UTC)
- Right, and I have it enabled on desktop, but either it's impossible to enable on the mobile version of the site or I'm missing something. Rusalkii (talk) 19:12, 1 February 2022 (UTC)
- Ah. I never use the mobile version - even on a tablet. I will see if I can replicate that — GhostInTheMachine talk to me 19:23, 1 February 2022 (UTC)
- Right, and I have it enabled on desktop, but either it's impossible to enable on the mobile version of the site or I'm missing something. Rusalkii (talk) 19:12, 1 February 2022 (UTC)