User talk:Enterprisey/reply-link/Archive 1
This is an archive of past discussions about User:Enterprisey. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Review
You are using ES6, so you should check that browsers support ES6, and you depend on the undeclared dependency "user.tokens". —TheDJ (talk • contribs) 14:10, 21 November 2017 (UTC)
- I think I removed all the ES6 features, so that's fixed (but let me know if I missed any). I also declared the dependency. Enterprisey (talk!) 18:29, 21 November 2017 (UTC)
- Instead of using user.tokens, just use mw.api.postWithToken(), it'll automatically handle token failures for you too. Legoktm (talk) 01:41, 22 November 2017 (UTC)
- Nice! Didn't know that existed. Enterprisey (talk!) 03:20, 22 November 2017 (UTC)
- Instead of using user.tokens, just use mw.api.postWithToken(), it'll automatically handle token failures for you too. Legoktm (talk) 01:41, 22 November 2017 (UTC)
Cancelling
Also, it might be handy to be able to cancel a reply dialog. I accidentally opened one and had to refresh the page. —TheDJ (talk • contribs) 14:13, 21 November 2017 (UTC)
- The "(replying)" text seems to be a non-functional link. Looking like a link, people will try clicking it ... Perhaps it could be changed to "(cancel)"? --Pipetricker (talk) 14:53, 21 November 2017 (UTC)
- Done! Enterprisey (talk!) 18:19, 21 November 2017 (UTC)
- Nice! To make it super-obvious, perhaps it could be changed to "cancel reply"? Pipetricker (talk) 11:23, 22 November 2017 (UTC)
- Good idea - done! Enterprisey (talk!) 11:26, 22 November 2017 (UTC)
- Hi, I'm enjoying this script!
- This is minor, but could you put a cancel button next to the reply button (bottom of the text box)?
- Thanks, Neuralnewt (talk) 16:21, 15 January 2018 (UTC)
- Sure - done! Enterprisey (talk!) 22:57, 15 January 2018 (UTC)
- Good idea - done! Enterprisey (talk!) 11:26, 22 November 2017 (UTC)
- Nice! To make it super-obvious, perhaps it could be changed to "cancel reply"? Pipetricker (talk) 11:23, 22 November 2017 (UTC)
- Done! Enterprisey (talk!) 18:19, 21 November 2017 (UTC)
Error on pages without mw-parser-output
I currently get an error on these types of pages. I also note that there CAN be multiple pagesmw-parser-output, and that you probably want to hook into mw.hook('wikipage.content') instead of $.ready, so that JS based content insertion and replacement is supported, like when using Livepreview option or the VisualEditor. —TheDJ (talk • contribs) 14:18, 21 November 2017 (UTC)
- I'm going to use that alternative hook - sounds good - but I don't think replying should work on anything but a regular reading page. (Sorry if that's not what you meant to say.) Enterprisey (talk!) 10:43, 22 November 2017 (UTC)
I also see it on history pages and the like: "at line 52: TypeError: null is not an object (evaluating 'mainContent.children')" —TheDJ (talk • contribs) 17:12, 22 November 2017 (UTC)
- Finished the different hook! Working on alternate page type graceful failure. Enterprisey (talk!) 08:58, 24 November 2017 (UTC)
- Should be fixed now. Enterprisey (talk!) 22:20, 4 December 2017 (UTC)
Script replies above earlier replies
The script doesn't know how to reply below other replies to the same comment. --Pipetricker (talk) 14:46, 21 November 2017 (UTC)
- Fixed! Enterprisey (talk!) 05:25, 22 November 2017 (UTC)
- If this appears after Enterprisey's "Fixed!", then it works. Mz7 (talk) 06:01, 22 November 2017 (UTC)
- Nice, I didn't expect it to be fixed this quickly! Here's a variant that maybe isn't solvable programatically: The intention of this comment is to reply to Enterprisey, but I wish it to be placed below Mz7's comment to not break the flow of the conversation, so I solved this by clicking the "reply" link by Mz7's signature instead of Enterprisey's. Pipetricker (talk) 10:02, 22 November 2017 (UTC)
- Unfortunately, I don't think I can detect that sort of thing reliably. Maybe I could make it more obvious in the form where the reply will go? (But I'd hate to clutter it up...) Enterprisey (talk!) 10:51, 22 November 2017 (UTC)
- Regarding making it more obvious where the reply will go, I thought in the first case above (which you fixed), the form could appear where the reply will be placed, but that could be confusing if there are longish intermediate comments. Or maybe (assuming the form is scrolled into view) it would make it less confusing and help in finding the new comment after the reload. Pipetricker (talk) 11:20, 22 November 2017 (UTC)
- I think the most common is to place the reply at the very end of a discussion, but the larger discussion, the more likely that is to be horribly wrong. The way the script currently does, placing the reply immediately after other replies (if any) to the same comment, is probably the only safe way in order not to be wrong, until the mind-reader API is released. Pipetricker (talk) 13:18, 22 November 2017 (UTC)
- It's this sort of complexity that you will be hard pressed to solve without Structured Discussions (previously Flow). —TheDJ (talk • contribs) 17:14, 22 November 2017 (UTC)
- Unfortunately, I don't think I can detect that sort of thing reliably. Maybe I could make it more obvious in the form where the reply will go? (But I'd hate to clutter it up...) Enterprisey (talk!) 10:51, 22 November 2017 (UTC)
- Nice, I didn't expect it to be fixed this quickly! Here's a variant that maybe isn't solvable programatically: The intention of this comment is to reply to Enterprisey, but I wish it to be placed below Mz7's comment to not break the flow of the conversation, so I solved this by clicking the "reply" link by Mz7's signature instead of Enterprisey's. Pipetricker (talk) 10:02, 22 November 2017 (UTC)
Newline breaks indentation
Typing a newline in the reply form breaks indentation within the comment, just like it does in regular wikitext. --Pipetricker (talk) 10:18, 22 November 2017 (UTC)
- Tracking this in the table above. Might have a fix for this out soon, actually. Enterprisey (talk!) 10:55, 22 November 2017 (UTC)
- Done! Enterprisey (talk!) 11:16, 22 November 2017 (UTC)
- Testing this:<newline>
- Next line.
- And a line beginning with a colon.
- Last line. Pipetricker (talk) 11:32, 22 November 2017 (UTC)
- Will a <br> tag end indentation?:
-- Pipetricker (talk) 13:28, 22 November 2017 (UTC)- It didn't, and I think it shouldn't; use the regular wikitext editor for that! --Pipetricker (talk) 13:39, 22 November 2017 (UTC)
- Done! Enterprisey (talk!) 11:16, 22 November 2017 (UTC)
Newline
Should a single newline be treated like a space, like it is in unindented wikitext (and <br> or {{break}} could in that case be used to force a new line with the same indentation if desired, see above), for consistency, or should the script treat it by making a new line with the same indentation level, like it currently does? --Pipetricker (talk) 13:44, 22 November 2017 (UTC)
- I think the current behavior is pretty intuitive (if I put in a newline, there's a newline in the output!) but I'd be open to including an option to have the script follow the alternate behavior you mention. Enterprisey (talk!) 08:51, 24 November 2017 (UTC)
Reply to reply breaks next section
So when I replied to my own reply, this happened. Regards SoWhy 10:22, 22 November 2017 (UTC)
- I accidentally broke replying to comments at the end of a section. This reply should work, though! Enterprisey (talk!) 10:41, 22 November 2017 (UTC)
- Still broken :-/ Regards SoWhy 08:39, 19 December 2017 (UTC)
- Broke section while reporting this. Meta. Couldn't the script just check whether a "==" follows a signature and add a newline if that's the case? Regards SoWhy 08:41, 19 December 2017 (UTC)
- Might be fixed now. Anyway, I'm working on a test suite to run future versions of the script against, so I don't create more regressions like this. Enterprisey (talk!) 16:04, 20 December 2017 (UTC)
- Thanks. I'll come back if it's still broken ;-) Regards SoWhy 16:05, 20 December 2017 (UTC)
- Might be fixed now. Anyway, I'm working on a test suite to run future versions of the script against, so I don't create more regressions like this. Enterprisey (talk!) 16:04, 20 December 2017 (UTC)
- Broke section while reporting this. Meta. Couldn't the script just check whether a "==" follows a signature and add a newline if that's the case? Regards SoWhy 08:41, 19 December 2017 (UTC)
- I assume this is the same issue? Galobtter (pingó mió) 05:15, 22 December 2017 (UTC) And while doing this reply this happened.. Galobtter (pingó mió) 05:16, 22 December 2017 (UTC)
- That was a silly bug in another part of the code; I tried making the same two replies and it works now. Enterprisey (talk!) 06:56, 22 December 2017 (UTC)
- Still seems to be happening :(. The reply is going above the section here. Galobtter (pingó mió) 07:16, 22 December 2017 (UTC)
- Ok, let's try this - can you go to your common.js and change reply-link to reply-link-dev? Then, attempting to reply should emit a lot of output, which you could put here in a {{collapse top}}. That should make it easier to narrow down the issue. Enterprisey (talk!) 09:27, 22 December 2017 (UTC)
- Still seems to be happening :(. The reply is going above the section here. Galobtter (pingó mió) 07:16, 22 December 2017 (UTC)
- That was a silly bug in another part of the code; I tried making the same two replies and it works now. Enterprisey (talk!) 06:56, 22 December 2017 (UTC)
(debug output has been analyzed)
This what you want? Galobtter (pingó mió) 11:51, 22 December 2017 (UTC)
- Absolutely! That's narrowed down the bug somewhat, so I added more logging statements. Can you refresh your cache, do the same thing again, and post the output here? Enterprisey (talk!) 02:52, 23 December 2017 (UTC)
(output also analyzed) Done. So when replying to you here it says "error when replying" and I've given the output there; on replying on my talk page there is no error, I also gave the output. Galobtter (pingó mió) 05:04, 23 December 2017 (UTC)
- Hmm. I made a change that might solve the issue, so let me know if this happens again. (It might...) If not, I have something else I could try. Thanks for working to help fix this bug! Enterprisey (talk!) 03:54, 24 December 2017 (UTC)
- :( Going to section above.. Galobtter (pingó mió) 04:56, 24 December 2017 (UTC)
- Alright - I redid a large chunk of the script. Hopefully, this fixes it? Enterprisey (talk!) 06:07, 25 December 2017 (UTC)
- :( Going to section above.. Galobtter (pingó mió) 04:56, 24 December 2017 (UTC)
in doReply, header = : /w/index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:294 Content request error: "Cannot read property '0' of null" /w/index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:296 Uncaught TypeError: Cannot read property '0' of null at sigIdxToStrIdx (/w/index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:104) at Object.<anonymous> (/w/index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:232) at fire (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:46) at Object.fireWith [as resolveWith] (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47) at done (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:126) at XMLHttpRequest.<anonymous> (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:129) undefined Failed to load resource: the server responded with a status of 404 () |
- Darn. What browser / operating system are you using, by the way? Enterprisey (talk!) 07:16, 25 December 2017 (UTC)
- Chrome on Kubuntu 16.04. I think version 61 or 62 of chrome. (just updated a few hours ago)Galobtter (pingó mió) 10:30, 25 December 2017 (UTC)
- Okay, I updated the script again to print more stuff. Can you run it again? Enterprisey (talk!) 19:50, 28 December 2017 (UTC)
- Chrome on Kubuntu 16.04. I think version 61 or 62 of chrome. (just updated a few hours ago)Galobtter (pingó mió) 10:30, 25 December 2017 (UTC)
in doReply, header = : index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:100 In sigIdxToStrIdx, sectionWikitext = >>>)<<< index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:106 SIG_REGEX: index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:107 null index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:108 SIG_REGEX_ALT: index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:109 null index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:305 Content request error: undefined index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:307 Uncaught Illegal strIdx in insertTextAfterIdx! strIdx = -1 (anonymous) @ index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:307 fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:46 fireWith @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47 done @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:126 (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:129 XMLHttpRequest.send (async) send @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:130 ajax @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:125 jQuery.ajax @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:143 jQuery.(anonymous function) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:127 getJSON @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:126 doReply @ index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:208 (anonymous) @ index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:380 index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:204 GET https://en.wikipedia.org/wiki/User_talk:Enterprisey/undefined 404 () doReply @ index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:204 (anonymous) @ index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:380 |
- I think we're getting somewhere - try again? Enterprisey (talk!) 04:34, 29 December 2017 (UTC)
in doReply, header = undefined index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:311 Content request error: "Cannot read property '2' of undefined" index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:313 Uncaught TypeError: Cannot read property '2' of undefined at Object.<anonymous> (index.php?title=User:Enterprisey/reply-link-dev.js&action=raw&ctype=text/javascript:245) at fire (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:46) at Object.fireWith [as resolveWith] (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47) at done (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:126) at XMLHttpRequest.<anonymous> (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:129) undefined Failed to load resource: the server responded with a status of 404 () |
Better edit summary
Instead of "Replying", the edit summary should include the name of the user you are replying to so that they can see it on their watchlist. Regards SoWhy 11:30, 22 November 2017 (UTC)
- Good idea - tracked in the table at the top. Enterprisey (talk!) 11:35, 22 November 2017 (UTC)
- Finished! Looked good in testing. Enterprisey (talk!) 09:51, 4 December 2017 (UTC)
- Let's see if this works... Regards SoWhy 09:56, 4 December 2017 (UTC)
- Nice work, thanks! Regards SoWhy 09:57, 4 December 2017 (UTC)
- Let's see if this works... Regards SoWhy 09:56, 4 December 2017 (UTC)
- In the same category, maybe the edit window could offer a few buttons to insert common templates, like {{reply}} or {{u}}, so you can easily add a ping-template for the user you are replying to? Regards SoWhy 09:53, 4 December 2017 (UTC)
- Yeah, I was thinking about adding an easier way to make replies. One interesting way to accomplish this would be to pop up a little window with the usernames of those earlier in the discussion thread. Then, clicking on one of those usernames would insert a correctly-formatted ping template. A lot of other websites have this feature, and I think it would probably improve usability a lot. Enterprisey (talk!) 10:02, 4 December 2017 (UTC)
- Would be useful - especially save on copying and pasting complicated usernames or getting pings wrong. Galobtter (pingó mió) 15:45, 5 December 2017 (UTC)
- Done, by the way. Enterprisey (talk!) 18:47, 21 August 2018 (UTC)
- Would be useful - especially save on copying and pasting complicated usernames or getting pings wrong. Galobtter (pingó mió) 15:45, 5 December 2017 (UTC)
- Yeah, I was thinking about adding an easier way to make replies. One interesting way to accomplish this would be to pop up a little window with the usernames of those earlier in the discussion thread. Then, clicking on one of those usernames would insert a correctly-formatted ping template. A lot of other websites have this feature, and I think it would probably improve usability a lot. Enterprisey (talk!) 10:02, 4 December 2017 (UTC)
- Finished! Looked good in testing. Enterprisey (talk!) 09:51, 4 December 2017 (UTC)
Automatically outdent
You could automatically detect when it might be prudent to outdent (over 8 levels ?), ask the user to confirm and then use {{outdent}} and reset the indentation level. —TheDJ (talk • contribs) 17:16, 22 November 2017 (UTC)
- Tracked at the top. Enterprisey (talk!) 08:54, 24 November 2017 (UTC)
Enable on non-talk pages
Could you enable the script on non-talk pages as well, especially in Wikipedia-space? Especially at AFD and RFA it might well be useful to use. Regards SoWhy 09:44, 24 November 2017 (UTC)
- Sure. Right now, there's a bug where the script requires a level-2 header to be present on the page, which is not the case for either of AfD or RfA. (It works in the village pumps, though.) Should be a brief fix, tracked at the top in case I don't get to it now. Enterprisey (talk!) 02:37, 26 November 2017 (UTC)
- And it's been enabled! SoWhy, let me know if it looks good. Enterprisey (talk!) 08:36, 4 December 2017 (UTC)
- Will do, thanks! Regards SoWhy 09:49, 4 December 2017 (UTC)
- Enterprisey It gives me an error when clicking the reply button in the transcluded AfD log. Works in the AfD page itself. When replying to the nomination in an AfD it should put a * instead of a : - I think the easiest solution would be for when there is a * in the beginning of the message it shouldn't do add any : as this is true for RfCs, RMs, and the like along with AfDs. Galobtter (pingó mió) 07:35, 5 December 2017 (UTC)
- For all XfDs, the script now uses a * instead of a :, and also displays a special link text: "reply to AfD" (or CfD, TfD, or MfD). Enterprisey (talk!) 06:01, 22 July 2018 (UTC)
- And it's been enabled! SoWhy, let me know if it looks good. Enterprisey (talk!) 08:36, 4 December 2017 (UTC)
Wrong username and time in reply signature!
The following is a reply by me, not by Enterprisey:
- When I tested yesterday, a blank line (more than one consecutive newlines) resulted in the error message "While getting the wikitext, there was an error."
- Testing the above with one blank line. Enterprisey (talk!) 08:54, 24 November 2017 (UTC)
It's a reply I made at 09:43 to my first comment in the "Newline" section above.
(Note: There's no comment dated 08:54 in this page's revision history, but there is a signature with that time, see WP:VPT#2 minutes difference between time in signature and history (archived) for an explanation of that. The time logged for that comment is 08:59. Also, the text "with one blank line" is a clarification I added later.) --Pipetricker (talk) 10:33, 24 November 2017 (UTC)
- That's quite bizarre. I certainly didn't put in any code to do that! The script, in all cases, always ends replies with the wikitext "~~~~" Somehow, that was translated into... my signature, with the wrong date. I have no idea what happened. I sure hope it isn't due to a user token mixup (pinging Legoktm for comments on that). Enterprisey (talk!) 06:08, 25 November 2017 (UTC)
- You should check the source code when you post it to the wiki ;) Something like
'~~' + '~~'
will work around that. And yes, we apply post-save transform to JS/CSS pages. Legoktm (talk) 21:37, 25 November 2017 (UTC)- Good catch! Fixed. Enterprisey (talk!) 02:34, 26 November 2017 (UTC)
- You should check the source code when you post it to the wiki ;) Something like
Make it work with comments in local time
So I was trying to figure out why the reply button wasn't even showing, and after some testing I suddenly realized it's because I have Wikipedia:Comments in Local Time enabled in preferences. It'd be nice if it worked with that. Thanks. Galobtter (pingó mió) 14:34, 27 November 2017 (UTC)
- Huh, sometimes I'm just randomly seeing it..maybe it depends on which script runs first.. Galobtter (pingó mió) 06:05, 28 November 2017 (UTC)
- I didn't think of testing that - tracked at the top, will get to it soon. I have some free time this weekend, but I'm very busy until midnight on Friday (EST). Enterprisey (talk!) 03:30, 1 December 2017 (UTC)
- Alright, fixed! Enterprisey (talk!) 22:30, 4 December 2017 (UTC)
- Okay, so it still isn't working for me - and I did some testing and figured that it is because it doesn't work with weird time zones (+5.5 for india in my case). It works with other time zones. Galobtter (pingó mió) 04:52, 5 December 2017 (UTC)
- Oh, I forgot to consider that case. Try it now? (Galobtter) Enterprisey (talk!) 05:36, 5 December 2017 (UTC)
- No, doesn't work. You can change your computer's timezone to test it. Galobtter (pingó mió) 05:40, 5 December 2017 (UTC)
- Oops, I had a bug in my code. Also, whenever I change my offset to +5.5, Comments in Local Time rounds it to either 4 or 5 - does this happen to you too? Enterprisey (talk!) 05:53, 5 December 2017 (UTC)
- No - this is what I'm seeing - "Enterprisey (talk!) 11:23 am, Today (UTC+5.5)". My computer is set to kolkata time. Galobtter (pingó mió) 05:57, 5 December 2017 (UTC)
- Oops, I had a bug in my code. Also, whenever I change my offset to +5.5, Comments in Local Time rounds it to either 4 or 5 - does this happen to you too? Enterprisey (talk!) 05:53, 5 December 2017 (UTC)
- No, doesn't work. You can change your computer's timezone to test it. Galobtter (pingó mió) 05:40, 5 December 2017 (UTC)
- Oh, I forgot to consider that case. Try it now? (Galobtter) Enterprisey (talk!) 05:36, 5 December 2017 (UTC)
- Okay, so it still isn't working for me - and I did some testing and figured that it is because it doesn't work with weird time zones (+5.5 for india in my case). It works with other time zones. Galobtter (pingó mió) 04:52, 5 December 2017 (UTC)
- Alright, fixed! Enterprisey (talk!) 22:30, 4 December 2017 (UTC)
- I didn't think of testing that - tracked at the top, will get to it soon. I have some free time this weekend, but I'm very busy until midnight on Friday (EST). Enterprisey (talk!) 03:30, 1 December 2017 (UTC)
- Found the issue - tested with the kolkata time zone on my computer. If you force reload (shift + reload), then it should work. Enterprisey (talk!) 06:16, 5 December 2017 (UTC)
- Works! Thanks! Galobtter (pingó mió) 06:19, 5 December 2017 (UTC)
FR: Detect signature code in reply
This is probably a feature only people like me need but I am so used to typing ~~~~ at the end of a comment, I am adding it automatically whenever I write one. Which is a problem if the script adds it as well. So maybe the script could detect whether a reply ends with ~~~~ and not add it again? Regards SoWhy 09:54, 4 December 2017 (UTC)
- Done! Enterprisey (talk!) 10:07, 4 December 2017 (UTC)
- That's quick! `I too saw that it would be useful. Galobtter (pingó mió) 10:24, 4 December 2017 (UTC)
- That was indeed quick. Thank you very much! Regards SoWhy 10:27, 4 December 2017 (UTC)
Reply to wrong user
In a recent AE case, I wanted to reply to a comment made by Sandstein in the section "Result concerning Atsme". Instead, the script added the reply to Masem's comment above. I have no idea why... Regards SoWhy 13:19, 5 December 2017 (UTC)
- Similar thing happened to me here - in both the reply appeared inside a closed discussion instead of where it should be. Galobtter (pingó mió) 15:40, 5 December 2017 (UTC)
- More weirdness Galobtter (pingó mió) 04:43, 7 December 2017 (UTC)
and more Galobtter (pingó mió) 07:21, 7 December 2017 (UTC)- Oh wait, this one is just me being an idiot and not putting the correct amount of tildes Galobtter (pingó mió) 10:58, 7 December 2017 (UTC)
- Again reply going in the wrong place Galobtter (pingó mió) 12:44, 7 December 2017 (UTC)
- Alright, good to know! I'm really swamped IRL for the next week or so, but I should be able to fix this after that. Enterprisey (talk!) 01:26, 8 December 2017 (UTC)
- Yeah, it has a problem with the relist template - for some reason it wants to put the reply inside it instead of where it should be. Galobtter (pingó mió) 18:03, 7 December 2017 (UTC)
- More weirdness Galobtter (pingó mió) 04:43, 7 December 2017 (UTC)
- And again (for tracking purposes): here. Maybe it's also bad at replying to the last statement on a page? Enterprisey (talk!) 04:12, 10 December 2017 (UTC)
I don't think so. In the first diff I gave the reply was in the penultimate section. There's a real problem with the relist template, and it may be related to the other problem. Galobtter (pingó mió) 04:34, 10 December 2017 (UTC)
- Okay so I just about was going to say no..yet I tried to reply to you and I replied to myself.. Galobtter (pingó mió) 04:35, 10 December 2017 (UTC)
- Alright; with the help of the new test cases, I removed a couple of bugs in the script. I'll get to the relisting thing soon now. Hopefully replying to the last statement works better now. Enterprisey (talk!) 16:23, 20 December 2017 (UTC)
- Ok so there's definitely a problem either with the tq template or it may have to do with the signature being inside the template or the same bug idk, but it's going inside the tq template right above: diff and diff, when I was trying to reply to you now. Galobtter (pingó mió) 17:50, 20 December 2017 (UTC)
- That's what I get for only updating one instance of the script, oops - clear your cache and try it now? Enterprisey (talk!) 18:06, 20 December 2017 (UTC)
- hmmmmm Galobtter (pingó mió) 06:35, 21 December 2017 (UTC)
- Huh, so that worked, but now half the time when loading this page, the reply link doesn't appear below SoWhy's comment at the top of the section. Galobtter (pingó mió) 06:39, 21 December 2017 (UTC)
- Hmm, I can't reproduce that. Do any errors appear in your browser console when that happens? Enterprisey (talk!) 08:01, 21 December 2017 (UTC)
- It is giving "Failed to load resource: the server responded with a status of 404 ()", however that appears even when it loads. Probably me having like 40 scripts has to do more with it. Galobtter (pingó mió) 08:07, 21 December 2017 (UTC)
- Hmm, I can't reproduce that. Do any errors appear in your browser console when that happens? Enterprisey (talk!) 08:01, 21 December 2017 (UTC)
- Huh, so that worked, but now half the time when loading this page, the reply link doesn't appear below SoWhy's comment at the top of the section. Galobtter (pingó mió) 06:39, 21 December 2017 (UTC)
- hmmmmm Galobtter (pingó mió) 06:35, 21 December 2017 (UTC)
- That's what I get for only updating one instance of the script, oops - clear your cache and try it now? Enterprisey (talk!) 18:06, 20 December 2017 (UTC)
- Ok so there's definitely a problem either with the tq template or it may have to do with the signature being inside the template or the same bug idk, but it's going inside the tq template right above: diff and diff, when I was trying to reply to you now. Galobtter (pingó mió) 17:50, 20 December 2017 (UTC)
- Alright; with the help of the new test cases, I removed a couple of bugs in the script. I'll get to the relisting thing soon now. Hopefully replying to the last statement works better now. Enterprisey (talk!) 16:23, 20 December 2017 (UTC)
Script not loading case
Hi Enterprisey. On my talk page, the script would not load until I commented out this. Thanks for another fine script! Sam Sailor 14:14, 10 December 2017 (UTC)
- Doesn't work when the text is styled - User Talk:Winged Blades of Godric for another example. Galobtter (pingó mió) 14:22, 10 December 2017 (UTC)
- I know the cause of the error; unfortunately, it's not a trivial fix because the styling makes the DOM tree look pretty gross. As a result, locating the headers becomes a bit harder. I'll check to see if this problem was solved by other user scripts; in the meantime, I'm tracking this issue in the table at the top. Thanks for pointing this problem out! Enterprisey (talk!) 16:14, 10 December 2017 (UTC)