User talk:GhostInTheMachine/TalkHelper2

Latest comment: 2 years ago by GhostInTheMachine in topic TalkHelper

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)Reply

  • 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 a localcomments 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 the localcomments 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 the CommentsInLocalTime gadget to have done all the hard work first. — GhostInTheMachine talk to me 19:27, 1 December 2020 (UTC)Reply

TalkHelper

edit

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)Reply

@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)Reply
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)Reply
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)Reply