User talk:Enterprisey/reply-link/Archive 2

Problem detecting username
I just posted a reply with this edit summary. The reply worked as intended though. Regards SoWhy 17:01, 12 March 2018 (UTC)
 * This should be fixed now. --Enterprisey (talk!) 02:15, 17 July 2018 (UTC)

Error
Every time I go to use it, it says there was an error and cancels the reply. cinco deL3X1 ◊distænt write◊  17:08, 13 May 2018 (UTC)
 * working now cinco deL3X1 ◊distænt write◊  15:06, 14 May 2018 (UTC)
 * Does it only work on Talk Pages? I tried using it on an AFD page again and got an error. cinco deL3X1 ◊distænt write◊  16:57, 14 May 2018 (UTC)
 * I fixed some bugs that were preventing it from working well on AfD pages. Let me know about any further ones, though. Enterprisey (talk!) 19:09, 19 July 2018 (UTC)

Replies in next section
If a page has multiple sections it replies in the next section for some reason such as at https://en.wikipedia.org/w/index.php?title=Talk:Jared_Kushner/GA1&action=history --Emir of Wikipedia (talk) 11:31, 30 June 2018 (UTC)
 * I am not sure if this is actually an error with reply-link, which is why I removed my comment. On that page heading levels had not been used, someone had manually numbered each section, and therefore reply-link would consider it all one section. Emir of Wikipedia (talk) 10:57, 22 July 2018 (UTC)
 * Ah, I see. I'll investigate it anyway, there might be a bug on my end. Enterprisey (talk!) 21:41, 23 July 2018 (UTC)

Reply link doesn't seem to work on my talk page
As subject. I do not see any reply links after the signature on my talk page. But I can see one on this page.--Tyw7 (🗣️ Talk to me • ✍️ Contributions) 09:16, 16 July 2018 (UTC)
 * Looks like the templates I used broke the gadget. Removing these enable the gadget to work. --Tyw7  (🗣️ Talk to me • ✍️ Contributions) 09:18, 16 July 2018 (UTC)
 * I think there's an HTML error in your talk page, as every paragraph seems to be wrapped in a &lt;font> element. If this is intentional, I'm not sure it'll be easy to fix the script so it works with that. Enterprisey (talk!) 15:27, 16 July 2018 (UTC)
 * I found the leaking font. Thanks. Now it works. But it seems to recognize my name wrong (see thread below) --Tyw7  (🗣️ Talk to me • ✍️ Contributions) 16:26, 16 July 2018 (UTC)

Reply to seem to pull the last link in signature into the edit summary
Take a look this edit. This gadget used the last link in my signature as my name. This is the edit summary how it's suppose to work. --Tyw7 (🗣️ Talk to me • ✍️ Contributions) 09:26, 16 July 2018 (UTC)
 * Alright, should be fixed. Enterprisey (talk!) 00:36, 17 July 2018 (UTC)
 * Edit: It seems it works but it removes the "--". Any way to re-add it to be consistant with the way Wikipedia interface adds signature if you click the toolbar icon? --Tyw7  (🗣️ Talk to me • ✍️ Contributions) 00:42, 17 July 2018 (UTC)
 * Try, a preference that I just added. Enterprisey (talk!) 01:00, 17 July 2018 (UTC)
 * Where should I add that? undefinedTyw7 (🗣️ Talk to me • ✍️ Contributions) 01:56, 17 July 2018 (UTC)
 * OK and now it adds "undefined" to the signature undefined<i style="font-family:'Rock salt','Comic Sans MS','Courier New',Verdana; color: Green;">Tyw7</i>  (🗣️ Talk to me • ✍️ Contributions) 01:58, 17 July 2018 (UTC)
 * OK when I added window.replyLinkSigPrefix = "--"; to my common.js, it renders the "--" correctly but if I don't add that it adds "undefined" instead. Weird. --<i style="font-family:'Rock salt','Comic Sans MS','Courier New',Verdana; color: Green;">Tyw7</i>  (🗣️ Talk to me • ✍️ Contributions) 02:01, 17 July 2018 (UTC)
 * (at the same time) In your common.js file. Also regarding that "undefined", I also just fixed that. --Enterprisey (talk!) 02:02, 17 July 2018 (UTC)
 * OK cool. Thanks.  Hope there're no further bugs to report. --<i style="font-family:'Rock salt','Comic Sans MS','Courier New',Verdana; color: Green;">Tyw7</i>  (🗣️ Talk to me • ✍️ Contributions) 02:03, 17 July 2018 (UTC)
 * I hope so too, but it's a pretty complicated script, I don't know :)
 * Thank you for all the help finding them! --Enterprisey (talk!) 02:04, 17 July 2018 (UTC)

Replying to AFD comment jumps around
See https://en.wikipedia.org/w/index.php?title=Wikipedia%3AArticles_for_deletion%2FRavi_Kumar_Panasa&type=revision&diff=850700762&oldid=850684397. When replying to an AFD comment, my reply jumps to the top of the list. I think it should be threaded below the reply --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk to me • ✍️ Contributions) Please ping if you had replied 14:55, 17 July 2018 (UTC)
 * I fixed the bug that caused that, which was introduced while I was writing code for the XfD stuff. Enterprisey (talk!) 03:39, 19 July 2018 (UTC)
 * Still broken. Tried to reply to the last comment but that test comment jumped to the top of the list --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i>  (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 10:37, 19 July 2018 (UTC)
 * Combination of two things: I had a bug in the script, and some other editors were indenting their comments improperly and it broke the script. It now works on that AfD. I don't know how to make the script deal with that specific improper indentation style (replying to a * comment with just a colon for indentation), so we'll just have to WP:TPO those when we see them. Enterprisey (talk!) 19:05, 19 July 2018 (UTC)

Reply link doesn't give any friendly warnings if the link is on the block list
Your reply link gadget doesn't give any user-friendly warnings if the link is on the block list. It simply just quits, which left me confused as to why my edits weren't appearing. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 11:23, 23 July 2018 (UTC)
 * Good point - I added a more helpful error message in that case. Enterprisey (talk!) 22:16, 23 July 2018 (UTC)
 * I've tested and it still didn't do anything. The link is https:// amzn. to/2LgfYXf.  Spacing apart to avoid tripping filter. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i>  (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 22:17, 23 July 2018 (UTC)
 * Strange - seems to work fine for me. I just pushed a new update to the script, try reloading? Enterprisey (talk!) 22:23, 23 July 2018 (UTC)
 * OK that works now. Thanks. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i>  (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 22:25, 23 July 2018 (UTC)

Reply link jumps around
See https://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/List_of_breakfast_drinks_(2nd_nomination)&diff=prev&oldid=851911965

I was trying to reply User:Hijiri88 but it seems reply link thinks I'm replying to User:El_cid,_el_campeador --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 11:14, 25 July 2018 (UTC)
 * Weird - it works for me on that page. The most recent update to the script fixed replying in AfDs in some cases, so another reload might help? Enterprisey (talk!) 12:04, 25 July 2018 (UTC)
 * OK now it works. Weird. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i>  (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 13:38, 25 July 2018 (UTC)

Reply link is not sane
Reply-link failed to reply to a comment on my talk page. I replied manually as Special:Diff/852728913. Console log follows:

JQMIGRATE: Migrate is installed with logging active, version 3.0.1 VM195:184 This page is using the deprecated ResourceLoader module "jquery.ui.widget". (anonymous) @ VM195:184 VM195:224 This page is using the deprecated ResourceLoader module "jquery.ui.position". (anonymous) @ VM195:224 VM195:586 This page is using the deprecated ResourceLoader module "mediawiki.api.options". Use "mediawiki.api" instead. (anonymous) @ VM195:586 VM195:269 This page is using the deprecated ResourceLoader module "jquery.tipsy". mw.loader.implement.css @ VM195:269 VM195:179 This page is using the deprecated ResourceLoader module "jquery.ui.core". Please use OOUI instead. mw.loader.implement.css @ VM195:179 load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 Use of "addOnloadHook" is deprecated. Use jQuery instead. get @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 Use of "addPortletLink" is deprecated. Use mw.util.addPortletLink instead get @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 Use of "addOnloadHook" is deprecated. Use jQuery instead. get @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:92 index.php?title=User:Evad37/XFDcloser/v3.js&action=raw&ctype=text/javascript:93 [XFDcloser] Current page is not an XfD page index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:689 <a href=​"/​wiki/​User_talk:​Black_Kite" title=​"User talk:​Black Kite" class=​"userlink">​Black Kite (talk)​</a>​ index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:455 in doReply, header = Array(3) index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 0 (idx 596): >== Tech News: 2018-28 ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 1 (idx 6128): >== Tech News: 2018-29 ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 2 (idx 10122): >== Tech News: 2018-30 ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 3 (idx 12903): >== NPR Newsletter No.12 30 July 2018 ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 4 (idx 16133): >== Tech News: 2018-31 ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:165 Header 5 (idx 19855): >== Trump balloon ==< index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:559 Content request error: undefined index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:561 Uncaught Sanity check on header name failed! Found "Trump balloon", expected "Trump balloon ¶" (wikitext vs DOM)

AntiCompositeNumber (talk) 00:03, 31 July 2018 (UTC)
 * I've found the issue, looks like the script is currently incompatible with User:Bility/copySectionLink at the moment. --AntiCompositeNumber (talk) 00:36, 31 July 2018 (UTC)
 * Should be sorted now. Enterprisey (talk!) 00:49, 31 July 2018 (UTC)
 * Also, thanks for the wonderfully formatted bug report! Enterprisey (talk!) 00:50, 31 July 2018 (UTC)
 * Yup everything works now! Thanks! AntiCompositeNumber (talk) 11:21, 31 July 2018 (UTC)

Double "reply" at Deletion_review/Log/2018_July_29
On the page Deletion_review/Log/2018_July_29, for some strange reason it shows two "reply" button. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 11:07, 31 July 2018 (UTC)
 * Should be fixed. Enterprisey (talk!) 20:07, 31 July 2018 (UTC)

Script errors out when replying at User_talk:Joe_Roe
When trying to reply to the comments at User_talk:Joe_Roe, I get the error "There was an error while replying! Please leave a note at the script's talk page with any errors in the browser console, if possible." --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 11:09, 31 July 2018 (UTC)
 * It had a problem with parsing your signature, I think. Should be fixed now. Enterprisey (talk!) 20:09, 31 July 2018 (UTC)
 * It also errors out at Talk:KC_International_Airlines. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 09:42, 1 August 2018 (UTC)
 * Seems to work fine for me - can you paste any errors you may be getting here? Also, which browser version are you using? Enterprisey (talk!) 17:23, 1 August 2018 (UTC)
 * Chrome OS v 67. Weird.  Now it works. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 20:09, 1 August 2018 (UTC)
 * Don't know what you did but now it's broken again. Getting the error "There was an error while replying! Please leave a note at the script's talk page with any errors in the browser console, if possible." --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 01:49, 10 August 2018 (UTC)

Redirects in signatures
uses a redirect in their signature (linking to User talk:Salvidrim which redirects to User talk:Salvidrim!) which produces a uncaught exception: Sanity check on sig username failed! Found Salvidrim but expected Salvidrim! (wikitext vs DOM error. While I assume the redirect here is not intentional but result of a typo, it showcases that the script has problems with redirects in signatures because it does not check the redirect target. Since some people use such redirects, it might be worthwile to fix. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 14:56, 31 July 2018 (UTC)
 * Not a typo, exclamation marks can break stuff and redirects work (usually? never heard of "reply-link" before today). But clearly many people use redirects in sigs. However I notice I'm using User:Salvidrim! and User talk:Salvidrim so I'm nore sure why they're different. I know I used to use User:Salv for character length but then the highlight-admins script didn't work so I changed it back... anyways really makes me wish signatures were edited somewhere where history was retained and you could diff it... Ben · Salvidrim!   &#9993;  15:09, 31 July 2018 (UTC)

I too am getting an error when trying to reply to Slav. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk • ✍️ Contributions) Please ping me if you had replied 15:21, 31 July 2018 (UTC)
 * Fixed, I took the easy way out and just stored a manual list of redirects that appear in people's signatures, since it's so rare. If the list gets too big, I'll consider using an API call, but I didn't want that overhead for now. Enterprisey (talk!) 20:37, 31 July 2018 (UTC)
 * Note to myself that the relevant API call looks quite fast, so I'll probably put it in the script soonish after previews are out. Enterprisey (talk!) 21:09, 1 August 2018 (UTC)

Problem with markup in header?
I tried to reply to this section and got a uncaught exception: Sanity check on header name failed! Found "Pre-GA comments: Hearthstone reference and plot length", expected "Pre-GA comments: Hearthstone reference and plot length" (wikitext vs DOM) error. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 09:44, 6 August 2018 (UTC)
 * Should be fixed now, thanks for the bug report. Enterprisey (talk!) 14:41, 6 August 2018 (UTC)

error detecting username
I tried to reply to the second of FunkMonk's comments but got an uncaught exception: Sanity check on sig username failed! Found SoWhy but expected FunkMonk (wikitext vs DOM) error. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 07:22, 7 August 2018 (UTC)
 * I wasn't able to replicate this bug, even with the exact revision of the page. I'll re-read the relevant code, though - maybe there's something else going on. I've been continuously messing with the code that finds signatures, so try clearing your cache and reloading? (I think other people reporting bugs on this page are running into the same thing, so I guess in general clearing one's cache is advisable when a bug in this script is found.) Enterprisey (talk!) 19:47, 7 August 2018 (UTC)

Getting errors when replying to anyone
When I hit reply to any person, I get the error "There was an error while replying! Please leave a note at the script's talk page with any errors in the browser console, if possible." --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 00:08, 19 August 2018 (UTC)
 * , please copy-and-paste whatever you have in the browser console. Enterprisey (talk!) 00:19, 19 August 2018 (UTC)
 * Erm how? I'm on Chrome.  Edit: I got this error "index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:604 Uncaught Sanity check on sig username failed! Found Tyw7 but expected null (wikitext vs DOM)"

--<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 00:20, 19 August 2018 (UTC)
 * Which browser/OS are you using? I tried it with Firefox and Chrome on Linux and can't reproduce this. Enterprisey (talk!) 00:25, 19 August 2018 (UTC)
 * Chrome OS and Chrome on Android --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 00:27, 19 August 2018 (UTC)
 * OK it says the following error when I tried replying to myself "index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:604 Uncaught Sanity check on sig username failed! Found Tyw7 but expected null (wikitext vs DOM)" --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 01:01, 19 August 2018 (UTC)

I've cleared my cache and it's intermittently causing the error. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 01:06, 19 August 2018 (UTC)

"index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:604 Uncaught Sanity check on sig username failed! Found Enterprisey but expected null (wikitext vs DOM) (anonymous) @ index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:604 fire @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:46 fireWith @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:47 done @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:126 (anonymous) @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:129 load (async) send @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:129 ajax @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:125 jQuery.ajax @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:143 jQuery.(anonymous function) @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:127 getJSON @ load.php?debug=false&lang=en&modules=jquery|mediawiki.base|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:126 doReply @ index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:450 (anonymous) @ index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:735"

Here's a dump of my console: https://pastebin.com/Eui7faeJ https://pastebin.com/XaF9Zckr (logs expires in one month) --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 01:07, 19 August 2018 (UTC)

Chrome:version info https://pastebin.com/grCTe59g (Post expires in 1 month) --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 01:11, 19 August 2018 (UTC)
 * Will continue trying to replicate this. Enterprisey (talk!) 06:35, 19 August 2018 (UTC)
 * Don't suppose you can view the console on Android Chrome? --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 11:13, 19 August 2018 (UTC)
 * I don't really think so. Maybe I could run an emulator? Anyway, I'll see if I can test the script on more operating systems to try and reproduce this issue. Enterprisey (talk!) 23:34, 19 August 2018 (UTC)
 * I couldn't get the app to work on Android Chrome. It did work so either an update of Chrome or reply link broke the app. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 23:39, 19 August 2018 (UTC)

Now getting the following error

/w/index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:634 Uncaught TypeError: Cannot read property 'charAt' of null at Object. (/w/index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:544) at fire (/w/load.php?debug=false&lang=en&modules=jquery%7Cmediawiki.base%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:46) at Object.fireWith [as resolveWith] (/w/load.php?debug=false&lang=en&modules=jquery%7Cmediawiki.base%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:47) at done (/w/load.php?debug=false&lang=en&modules=jquery%7Cmediawiki.base%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:126) at XMLHttpRequest. (/w/load.php?debug=false&lang=en&modules=jquery%7Cmediawiki.base%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=19lyfvl:129)

Reckon it's to do with the emojis in my signature and the fact that I used User:Tyw7/t rather than User talk:Tyw7? Or that I have texts and additional links in the signature. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 19:28, 21 August 2018 (UTC)

Edit: Yeah... your app doesn't like to reply to me. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 19:39, 21 August 2018 (UTC)
 * That's a bit weird. Note to self: from the dump, it's having trouble grabbing a signature from the HTML. Enterprisey (talk!) 19:44, 21 August 2018 (UTC)
 * , seems OK for now. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 02:09, 29 August 2018 (UTC)

Personalize ping template?
Hi there. Nice job on the new features. One thing though: Could you maybe add an option to choose the text added at the beginning of the reply? For example, I prefer using instead of  to ping users, so it would be nice if I could choose that instead. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 07:37, 21 August 2018 (UTC)
 * And also, it'd be nice rather than auto-adding, to have a button to add it. I do often use ping but not enough to have it auto-add, but it'd still be convenient to be able to add a ping easily... Galobtter (pingó mió) 08:57, 21 August 2018 (UTC)
 * Done for both requests. Check the script page for a couple of new options. Enterprisey (talk!) 18:39, 21 August 2018 (UTC)
 * , awesome! But with the ping button enabled, the cancel button is below the reply button instead of the buttons being in one row. Is that intentional? Galobtter (pingó mió) 18:53, 21 August 2018 (UTC)
 * Nice, although the script still adds ", " after the ping template which makes no sense with that auto-adds ":". Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 19:02, 21 August 2018 (UTC)
 * Fixed both errors. Enterprisey (talk!) 19:13, 21 August 2018 (UTC)
 * Wooo, nice! Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 19:38, 21 August 2018 (UTC)

Error in replying to unsigned comment
In replying to comments signed with a subst of unsigned, I'm getting the following error:

Content request error: "Cannot read property 'charAt' of null" index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:634 Uncaught TypeError: Cannot read property 'charAt' of null at Object. (index.php?title=User:EnterpriseyBot/reply-link.js&action=raw&ctype=text/javascript:544) at fire (load.php:46) at Object.fireWith [as resolveWith] (load.php:47) at done (load.php:126) at XMLHttpRequest. (load.php:129) Galobtter (pingó mió) 14:27, 21 August 2018 (UTC)
 * , which comment? I just tried it and it works fine for me. Enterprisey (talk!) 18:41, 21 August 2018 (UTC)
 * Has an error with any unsigned comment that I see, e.g here- replicated it with a test comment of mine on here Galobtter (pingó mió) 18:47, 21 August 2018 (UTC)
 * Works for me in both cases. Bit weird. I'll continue looking into it. Enterprisey (talk!) 19:02, 21 August 2018 (UTC)
 * , ah, the issue is from interactions with the gadget Comments in local time (works when gadget is disabled) Galobtter (pingó mió) 19:25, 21 August 2018 (UTC)
 * Aw man, I thought I had fixed that already. Thanks for spotting the bug! Fix on the way. Enterprisey (talk!) 19:32, 21 August 2018 (UTC)
 * , that would explain it. I have that gadget installed. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 19:35, 21 August 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 19:39, 21 August 2018 (UTC)
 * , hmm... it seems that your app doesn't like me replying to myself. It seems to work if I reply to others but not if I reply to myself. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 19:41, 21 August 2018 (UTC)
 * Brilliant! Galobtter (pingó mió) 06:39, 22 August 2018 (UTC)

"&" in link breaks preview
What it says above. If you add an external link containing an & in your reply, the preview of the comment will break off at the part before the &. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 14:36, 21 August 2018 (UTC)
 * Fixed. Enterprisey (talk!) 18:18, 21 August 2018 (UTC)

Dies with auto-number headings
If Auto-number headings in the appearances section of preferences is checked, this will fail the sanity check (Found "Please comment on Talk:Sofia Airport", expected "10 Please comment on Talk:Sofia Airport" (wikitext vs DOM)) and the like). The number on the page is wrapped in a   class, so presumably it should be possible to ignore it. ~  Amory <small style="color:#555"> (u • t • c) 15:20, 23 August 2018 (UTC)
 * Fixed. Enterprisey (talk!) 00:17, 24 August 2018 (UTC)

Comment order
Comments pretty often appear above another person's comments instead of below - e.g as in here. Not sure why.. Galobtter (pingó mió) 05:15, 31 August 2018 (UTC)
 * Makes sense. If you want to reply to someone's comment who already has received replies, it's customary to use a double indent below their comment so it doesn't appear as a reply to those who replied to the original comment. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 07:28, 31 August 2018 (UTC)
 * Well, the issue is not the indenting but that the reply should be chronologically below, as I did in the next edit. Galobtter (pingó mió) 07:35, 31 August 2018 (UTC)
 * Oh man, I haven't touched that code in ages. Will investigate. Enterprisey (talk!) 20:04, 31 August 2018 (UTC)
 * Should be fixed. I had working code as of late July, but it seems that I broke it sometime between then and now. Enterprisey (talk!) 17:05, 26 September 2018 (UTC)

Cannot determine correct section
I tried to respond to someone at Wikipedia_talk:Interface_administrators and got the error uncaught exception: Sanity check on header name failed! Found "Straw poll (Sept 2)", expected "Support (Sept 2)" (wikitext vs DOM). Regards So  Why  15:20, 3 September 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 04:01, 4 September 2018 (UTC)
 * Now I got Check the console for the dry-run results.. And when I manually set dry run to false in my JS, I get dryRunCheckbox is null. Regards So  Why  11:51, 4 September 2018 (UTC)
 * I made a pretty silly error, fixed. Enterprisey (talk!) 15:42, 4 September 2018 (UTC)
 * Thanks! Regards So  Why  07:31, 5 September 2018 (UTC)

Negative strIdx (signature not found in wikitext)
Happens when I try to reply to User talk:Redrose64. At the time it was the last section on the page.

Conveniently there's lots of verbose output!

in doReply, header = (3) ["2", "Tech admin", 51] Header 0 (idx 9245): >== Invasion of Time edits ==< Header 1 (idx 9350): >== The link you asked for ==< Header 2 (idx 9645): >== Reading ==< Header 3 (idx 9721): >==Seasons Greeting to you and yours==< Header 4 (idx 10588): >== To you ==< Header 5 (idx 11579): >==The Monk==< Header 6 (idx 11885): >== Enjoy! ==< Header 7 (idx 13090): >==Happy New Year!==< Header 8 (idx 13888): >== Template talk:WikiProject Biography ==< Header 9 (idx 14605): >==Sailing from Holyhead?==< Header 10 (idx 14943): >==Season's Greetings==< Header 11 (idx 15835): >== and template signatures. ==< Header 12 (idx 15920): >== Carluke Railway Station ==< Header 13 (idx 17668): >== fix v-t-e links ==< Header 14 (idx 18248): >==Question==< Header 15 (idx 19075): >== Nomination for deletion of Template:Editnotices/Page/Template:Rail-interchange ==< Header 16 (idx 19678): >== Bristol meetup ==< Header 17 (idx 20142): >==Yet another==< Header 18 (idx 21168): >==Blank lines in talk pages==< Header 19 (idx 36366): >== Templating me for edit warring ==< Header 20 (idx 38717): >== Template:Railway-routemap‎ ==< Header 21 (idx 40248): >== move of Request for closure ==< Header 22 (idx 40850): >== Chains at Patchway ==< Header 23 (idx 41455): >== Help ==< Header 24 (idx 43622): >== Clapham Junction ==< Header 25 (idx 46315): >==Trainspotters book==< Header 26 (idx 46807): >== Plaque spotting ==< Header 27 (idx 48694): >== Disappearance of the Beaumont children ==< Header 28 (idx 49662): >== Flag of NATO ==< Header 29 (idx 50247): >== Thank you ==< Header 30 (idx 50770): >=="Shadow" IP editor==< Header 31 (idx 51797): >==Disambiguation link notification for August 2==< Header 32 (idx 52355): >== Cambrian Railway. No such thing as the Grouping Act? ==< Header 33 (idx 53546): >=== Grouping Act of 1921 ===< Header 34 (idx 56000): >== Cheers on the revert on the Biddulph Valley Line draft ==< Header 35 (idx 56399): >== Thanks for cleanup on trans woman RfC ==< Header 36 (idx 57252): >== Notification of general sanctions. ==< Header 37 (idx 60577): >== All WikiProject Women-related pages ==< Header 38 (idx 66054): >== Talk:Israel ==< Header 39 (idx 73903): >==Your assistance is needed==< Header 40 (idx 76757): >==Metrolink Platforms in Infobox for Manchester Victoria==< Header 41 (idx 77499): >==Your edits since 4 Aug at Brett Kavanuagh==< Header 42 (idx 82500): >== TOC question ==< Header 43 (idx 83848): >== Template:Asia topic ==< Header 44 (idx 84348): >== RFC ID ==< Header 45 (idx 85514): >== Category talk:Hill stations in Cambodia ==< Header 46 (idx 85954): >== Redlinks ==< Header 47 (idx 86398): >== no idea but thanks ==< Header 48 (idx 86743): >== edit summaries ==< Header 49 (idx 88331): >==Talk page archiving==< Header 50 (idx 89219): >== Mattcymru2 ==< Header 51 (idx 90789): >== Tech admin ==< [getSectionWikitext] endIdx negative, setting to 91733 In sigIdxToStrIdx, sigIdx = 2 sig match (matchIdx = 0) is > talk   23:05, 3 September 2018 (UTC)< (index = 304) sig match (matchIdx = 1) is >talk) 18:16, 4 September 2018 (UTC)< (index = 885) [sigIdxToStrIdx] out of matches

Thanks for the awesome script &mdash; MusikAnimal  talk  19:30, 4 September 2018 (UTC)
 * , unable to reproduce for the moment, will try more later on. Which comment were you trying to reply to? Enterprisey (talk!) 04:15, 5 September 2018 (UTC)
 * This edit is the one I tried to make using reply-link. The same thing just happened to me now at Wikipedia talk:Interface administrators. This is the edit I tried to make there. I'm on Chrome 68, MacOS. I'm going to guess some of the September 4 changes to the script are the culprit, as I use reply-link very often and the first time I got the error was shortly after these changes were made. Thanks for looking into it! &mdash; MusikAnimal  talk  04:22, 5 September 2018 (UTC)
 * Ironically, those changes were supposed to fix the WT:INTADMIN error. The problem is that Xaosflux put the example intadmin application in a comment. My script parses the HTML and wikitext separately, so the wikitext parser sees a header and the HTML parser doesn't - which results in a sanity-check fail. I'm fairly busy IRL for the next couple of days but will see if I can get to it before people stop using WT:INTADMIN. Enterprisey (talk!) 04:31, 5 September 2018 (UTC)
 * Anyway, should be working now. Enterprisey (talk!) 05:34, 13 September 2018 (UTC)

I got the same error when attempting to add Special:Diff/861338767. The debug output is different, though: in doReply, header = : [getSectionWikitext] endIdx negative, setting to 208694 In sigIdxToStrIdx, sigIdx = undefined [sigIdxToStrIdx] out of matches Uncaught Negative strIdx (signature not found in wikitext) &mdash; MusikAnimal  talk  18:38, 26 September 2018 (UTC)
 * That's pretty weird. I've pushed out a couple of new versions today, but I didn't touch code related to that. Enterprisey (talk!) 18:44, 26 September 2018 (UTC)
 * One of the comments I made to INTADMIN today worked. As I said, with Special:Diff/861484692 it did not. This time, clicking "reply" jumped me to the top of the page and put a hash  in the URL. That sounds like the listener wasn't attached properly. I hit refresh a few times, and made sure to remove the # from the URL, too. There was an error in the JS console but I did not make not of it, sorry! I'll comment here with the error if it happens again. Thanks for all of your help! &mdash;  MusikAnimal  talk  19:47, 27 September 2018 (UTC)
 * , yeah, that's pretty weird. You're using Chrome, right? Enterprisey (talk!) 19:49, 27 September 2018 (UTC)
 * Yes Chrome. And actually, the bug still happens -- but only when replying to Amakuru's !vote. The error was, line 859. &mdash;  MusikAnimal  talk  19:52, 27 September 2018 (UTC)

Error when replying to User:Arms & Hearts at Articles for deletion/María Gabriela de Faría
I got the following error in the console:

Uncaught Sanity check on sig username failed! Found Arms &amp; Hearts but expected Arms & Hearts (wikitext vs DOM)

--<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 00:07, 6 September 2018 (UTC)
 * I know what's going on (the user has "&amp;amp;" in their wikitext), and will fix it later in the week, possibly on the weekend. Enterprisey (talk!) 00:23, 6 September 2018 (UTC)
 * OK cool. --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 00:43, 6 September 2018 (UTC)
 * Fixed. Enterprisey (talk!) 23:03, 8 September 2018 (UTC)

Does not work at WP:EF/FP
I can see in the code that the Wikipedia namespace is supported, and the script works at some WP venues like WP:AN/I, but the "(reply)" links are missing at Edit filter/False positives/Reports. Is this expected? &mdash; MusikAnimal  talk  16:57, 9 September 2018 (UTC)
 * Seems to be working for me. Can you post any errors that appear in the console? Enterprisey (talk!) 18:46, 9 September 2018 (UTC)
 * Hmm, now it is working! For the record I had checked for errors, and there were none. All good now though, so disregard. Thanks &mdash; MusikAnimal  talk  01:18, 12 September 2018 (UTC)

Gadget fails to reply to users with "=" in their name
your gadget fail to reply to users with "=" in their name like User:7&6=thirteen --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 20:56, 19 September 2018 (UTC)
 * FWIW, I got that message. <b style="color:#060">7&amp;6=thirteen</b> (<b style="color:#000">☎</b>) 20:57, 19 September 2018 (UTC)
 * , well the gadget uses the raw form of without the "1=" part.  And I had to manually edit your talk page to add that message.  I got some console error.
 * "index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:700 Uncaught Sanity check on header name failed! Found "Username breaks the template", expected "Username breaks the  template" (wikitext vs DOM)"
 * "index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:700 Uncaught Sanity check on header name failed! Found "Username breaks the template", expected "Username breaks the  template" (wikitext vs DOM)"


 * Thought Enterprisey might want to take a look at this and maybe fix the gadget?--<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 20:59, 19 September 2018 (UTC)
 * link to relevant VPT; Reply-link could just add "1=" when there is an = in a username Galobtter (pingó mió) 21:02, 19 September 2018 (UTC)
 * , Well it broke even if I didn't use the u template. The gadget broke when replying to User talk:7&6=thirteen here --<i style="font-family:'Rock salt','Comic Sans MS'; color: Green;">Tyw7</i> (🗣️ Talk) — If (reply) then (ping me) 21:03, 19 September 2018 (UTC)

Lists within comments
I tried to add a comment that included a list (*). When previewed, the list was displayed correctly but when added the script used pb to make the breaks, thus of course breaking the list. Is that intentional? Regards So  Why  14:31, 21 September 2018 (UTC)
 * I didn't consider replying while the initial indentation was a *. I'll fix that. But yeah, usually it uses pb's to join lines in that case. Enterprisey (talk!) 14:40, 21 September 2018 (UTC)
 * Fixed. Enterprisey (talk!) 17:04, 26 September 2018 (UTC)

Autosigning
Seems like a new feature, but it breaks things for me. If I'm making my comment in, it signs after the /small tag. It also doesn't work with other end-of-comment templates, like fbdb or tps. Autosigning should be disabled when the comment already includes. --AntiCompositeNumber (talk) 15:12, 4 October 2018 (UTC)
 * Ah, good idea. At the moment, auto-signing is disabled if the comment ends with four tildes, but I should also make it not auto-sign if four tildes occurs anywhere in the message. Enterprisey (talk!) 22:20, 4 October 2018 (UTC)
 * Done. Enterprisey (talk!) 03:46, 6 October 2018 (UTC)

WP:SVG help
Is there anything that needs to be done for this script to work at WP:SVG help? The reply links are not appearing for me. Thanks, AntiCompositeNumber (talk) 15:00, 12 October 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 23:17, 12 October 2018 (UTC)
 * Thanks! --AntiCompositeNumber (talk) 17:12, 15 October 2018 (UTC)

No longer working for AFDs?
Is it just me or does the script no longer work on AFD pages? Regards So  Why  10:37, 21 October 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 19:25, 23 October 2018 (UTC)

Note to all regarding links only in first section
Hi everybody. It seems that another script I wrote, User:Enterprisey/hover-edit-section, is incompatible with this script. I totally played myself. Sorry for the inconvenience, and a fix is on the way. Enterprisey (talk!) 18:14, 23 October 2018 (UTC)
 * Fix should be out now. Enterprisey (talk!) 18:33, 23 October 2018 (UTC)
 * , Funny thing, I've only noticed this bug on your talk page. (currently still only seeing the links in the first section). —  Insertcleverphrasehere (or here)  08:47, 31 October 2018 (UTC)

Buttons
The buttons for this script seem to look weird in Timeless (append  to the page URL). The leftmost button (Reply) has Timeless styling, but the right two are taller and the Cancel button in particular looks a bit odd (possibly a faint grey border added by Timeless). I think this is probably an issue with Timeless only having styling for the  CSS class or something like that, but posting here just in case it's an issue with the script. Jc86035 (talk) 16:04, 24 October 2018 (UTC)
 * Yeah, probably similar to T185283 and such. All the buttons/form stuff are a bit iffy, as it all predates a lot of the recent changes to ooui in particular. Is this using ooui styles or something else? -— Isarra ༆ 19:09, 25 October 2018 (UTC)
 * Yup, I didn't put mw-ui-progressive on the non-leftmost button; on Vector when the deprecated styles are loaded, it has a nice visual contrast. Apparently it breaks on Timeless, though. Anyway, the "create string of HTML" method is poor coding practice (as much as I prefer the pre-OOUI DOM), so I'll probably switch it over to OOUI soonish. Enterprisey (talk!) 04:25, 26 October 2018 (UTC)

Global usage
Added this

mw.loader.load( 'http://en.wikipedia.org/w/index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript' ); // w:User:Enterprisey/reply-link.js

to meta:User:Gryllida/global.js but the reply links won't show. At english wikipedia they did, when it was a local script. Why could this be? Does it work for you? Gryllida (talk) 00:20, 31 October 2018 (UTC)
 * This managed to start working after a browser restart. Not sure why. Gryllida (talk) 00:57, 31 October 2018 (UTC)
 * , I assume that you purged your cache in the process? Otherwise restarting would accomplish the same thing. zchrykng (talk) 01:04, 31 October 2018 (UTC)
 * Yes I think I purged the cache.
 * Now I made a fork at User:Gryllida/reply-link.js with some modifications: the advert link now points to w:... for this to work on other wikis; usernames of people are now wikilinked in the edit summary instead of the pings in the body of the message; the custom edit summary is on by default. Gryllida (talk) 05:07, 31 October 2018 (UTC)
 * Next plan is to make it multilingual (specifically the edit summary as this is what others see) for usage at non-English wikis. Have any pointers to scripts which already have internationalization? :) Gryllida (talk) 05:11, 31 October 2018 (UTC)
 * I'm sure that Twinkle has various translations, but I have no idea what method that takes. zchrykng (talk) 05:36, 31 October 2018 (UTC)
 * I'm sure that Twinkle has various translations, but I have no idea what method that takes. zchrykng (talk) 05:36, 31 October 2018 (UTC)

Sig in preview
Auto-sign Signatures should be included in the previews to indicate that there is no need to sign comments. Love this script. —  Insertcleverphrasehere (or here)  08:44, 31 October 2018 (UTC)
 * Great idea! Enterprisey (talk!) 04:56, 8 November 2018 (UTC)
 * and, so, upon checking, it seems that the only way to accomplish this is through an API call to grab the current user's signature. I'm not sure the added delay is worth it. Usually, I would put this behind a preference, but this feature would mainly help people new to the script, who would be less inclined to add a preference. I could make the feature opt-out, but discoverability would be very low. Would it solve the problem if I just put a raw &#126;~ at the end of the preview, and hovering over it displayed a message like "your signature will go here"? Enterprisey (talk!) 05:03, 8 November 2018 (UTC)
 * , that is about what I figured (see my test below for something I tried that didn't work). Don't know if you need that. maybe just show some text in the interface with a button to hide it or something? Or you could pop up a message when someone does sign their message that they don't need to sign their messages? zchrykng (talk) 05:28, 8 November 2018 (UTC)

Fix for signature in preview
If I'm understanding the code correctly, this should add a signature to the preview.

var sanitizedCode = document.getElementById( "reply-dialog-field" ).value; if( !hasSig( sanitizedCode ) ) { sanitizedCode += " " + ( window.replyLinkSigPrefix ?                            window.replyLinkSigPrefix : "" ) + SIGNATURE; } sanitizedCode.replace( /&/g, "%26" );

Needs to replace lines 1015 and 1016. zchrykng (talk) 14:47, 31 October 2018 (UTC)
 * Well, just tested this change. It does insert the ~ into the message, but the preview doesn't rendered it correctly as far as I can tell. zchrykng (talk) 18:44, 2 November 2018 (UTC)

Replying to AfDs from log pages does not work
Replying to AfDs from an AfD daily log page (like Articles for deletion/Log/2018 November 1) using the "(reply to AfD)" link doesn't work, it returns an "Uncaught Negative strIdx (signature not found in wikitext)" error in the console. Going to the individual AfD page and doing it works fine, however. --Nathan2055talk - contribs 08:55, 2 November 2018 (UTC)
 * Yes, replying in transcluded pages is currently broken. The fix for this is not simple, and will be done when I have much more free time (which is sadly in limited supply at the moment). Enterprisey (talk!) 04:56, 8 November 2018 (UTC)

Jquery one liner if it helps
$('#reply-link-0').parentsUntil('.mw-parser-output').prevAll('.xfdc-notices').prev.children('.mw-headline')

Here you go, if it helps. zchrykng (talk) 07:10, 8 November 2018 (UTC)

Multiple "outdented" (reply)
Special:PermaLink/867852949, go down to Ronhjones' message starting with I'm not sure that commons would like. In both Chrome and Firefox I see two additional (reply), each on their own line and each "outdented" a notch after his message. Changing ( → ) in Special:Diff/867852949/next did nothing (and why should it?). Do you see the same? Sam Sailor 12:40, 8 November 2018 (UTC)

Uncaught negative strIndex (signature not found in wikitext)
Hi. Same error that MusikAnimal reported a while ago with no resolution.

Attempting to reply to AnthonyAppleyard at this discussion at VPPR.

Running Chrome 70, Windows 10 build 17134. Skin is the default (vector, I believe?)

in doReply, header = Array(3)

0: "2"

1: "Linking to an edit"

2: 30length: 3

__proto__ : Array(0)

index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:367 [getSectionWikitext] endIdx negative, setting to 311629

index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:384 In sigIdxToStrIdx, sigIdx = 0

index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:444 [sigIdxToStrIdx] out of matches

index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:810 Uncaught Negative strIdx (signature not found in wikitext)

Thanks a lot.  Programming Geek talk to me 19:09, 8 November 2018 (UTC)

New Sections, Votes, etc.
Is there a possibility to add a button at the bottom of the talk page for 'New Section' that will open up an on-page box similar to the reply box but enables you to post a new section to the bottom of the page instead (complete with being able to specify the header)?

Another change I'd like to see is having the indent bits (such as *::) be added to the text of the text box, rather than implemented by the script invisibly. This would allow you to 'reply' to other people's !votes and just remove this text so that you can format a vote correctly in the text box, or else to add a new un-indented comment to the bottom of a thread by just replying to the most recent comment and just blanking the text box. —  Insertcleverphrasehere (or here)  11:57, 25 November 2018 (UTC)

Error when replying to mass message
I was trying to provide the reply that I later added manually here. But I received an error when trying to do so. The error was:

TypeError: null is not an object (evaluating 'el.tagName') findUsernameInElem — index.php:207 (anonymous function) — index.php:905 logError — load.php:2:629" —Th e DJ (talk • contribs) 21:31, 28 November 2018 (UTC)
 * Ah, I see. The strangest signature I've seen to date - everything's an cross-wiki link! (Although I see why someone would do that.) This confuses the parser terribly. I will track this at the top. Enterprisey (talk!) 22:05, 28 November 2018 (UTC)

Wrong links in preview on subpages
If you add an internal link to your reply and hit "preview", on subpages (such as this one) it will append the subpage to the link (e.g. Main Page will link to User talk:Enterprisey/Main Page). That's only for the preview though, the added link works in the final reply. Regards <b style="color:#7A2F2F; font-variant:small-caps">So</b><b style="color:#474F84; font-variant:small-caps">Why</b> 15:05, 24 August 2018 (UTC)
 * I don't think I'm sending something wrong to the Parsoid API, but will go through and check their docs anyway. Enterprisey (talk!) 20:04, 31 August 2018 (UTC)
 * Just so you know, I noticed this issue as well when using reply-link at Bots/Requests for approval/MusikBot II 2, but also in this comment (preview links to User talk:Enterprisey/Wikipedia:Bots/Requests for approval/MusikBot II 2). The red vs blue links are correct, however, it's only the linked URL that's the problem. Thanks for for your hard work! &mdash; MusikAnimal  talk  16:49, 15 October 2018 (UTC)
 * No problem! Yeah, this section of the Parsoid API is a little under-documented so I'm just going to visit this week's technical advice meeting. Enterprisey (talk!) 18:12, 15 October 2018 (UTC)
 * Just a little friendly "poke" about this issue :) I'm a forgetful person so I always check my links before saving, but when I'm on a subpage the links do not work. &mdash; MusikAnimal  talk  03:26, 8 November 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 21:42, 19 December 2018 (UTC)

Special:Diff/861001854
Looks like a bug. I clicked reply to the bottommost comment but it was placed inside the closed RM discussion. <u style="font:1.1em/1em Arial Black"><u style="color:#7f2ed1">Flooded <u style="color:#bfa6d8"> with them <u style="color:#7f2ed1">hundreds 14:35, 24 September 2018 (UTC)
 * Yeah, replying below a hatted discussion is a bit screwy at the moment. On the to-do list. Enterprisey (talk!) 16:25, 26 September 2018 (UTC)
 * The script failed completely while making this edit. I think it's related to the hatted discussion issue, as it errored with  --AntiCompositeNumber (talk) 13:58, 20 December 2018 (UTC)

Template:Talk quote inline
When using Template:Talk quote inline in a reply, then using the preview button, the preview is given the following error: Looking at the code for the template, this only happens when { {NAMESPACE}} is equal to zero (the mainspace), which is apparently what's occurring when the reply is previewed. --  Alex TW 03:35, 10 December 2018 (UTC)
 * Fixed! Enterprisey (talk!) 21:40, 19 December 2018 (UTC)
 * Cheers! All the best. --  Alex TW 23:36, 19 December 2018 (UTC)
 * Thanks! Galobtter (pingó mió) 05:02, 20 December 2018 (UTC)

user script conflict
Is there a way for bring compatibility to User:Kephir/gadgets/unclutter? It conflicts with it, and causes your script to not work. -- 1989 (talk) 09:37, 30 November 2018 (UTC)
 * I will look into this soonish; seems like this shouldn't be that hard. Enterprisey (talk!) 21:47, 19 December 2018 (UTC)
 * Great, please ping me when you do. Thanks. -- 1989 (talk) 02:39, 24 December 2018 (UTC)

Script not working on DYK nomination pages
WP:DYK nominations are subpages of Template:Did you know nominations (e.g. Template:Did you know nominations/Unavowed) but on those pages, I don't get a reply link. Is it because they are templates? Regards So  Why  12:13, 8 October 2018 (UTC)
 * Yes, it's because they're transcluded. It is impossible to check (without an API call) if an HTML element in a page comes from a transclusion. When I see a smarter way to accomplish this check, I'll implement it. Enterprisey (talk!) 02:31, 19 October 2018 (UTC)
 * , Is it possible to set the script to work specifically on Template:Did you know nominations and its subpages? I literally just installed this, and the first thing I did was try to test it on a dyk nomination I am reviewing. --DannyS712 (talk) 08:44, 4 January 2019 (UTC)
 * Done. Enterprisey (talk!) 20:57, 4 January 2019 (UTC)

I can blam tule plz?
A nice tool, couple of problems that I noticed are already being addressed and seen resolved Kudos!. I made an edit to AfD and wonder if the tool tried to resolve an edit conflict on an active page. Could have been another glitch in the software, or I did something silly, but the content was not available to delete in my reply window. cygnis insignis 18:59, 4 January 2019 (UTC)
 * It does not try to resolve edit conflicts. However, it is extremely rare that it would encounter an edit conflict, because when you click "Reply", it grabs the wikitext, immediately makes the change, and immediately saves it back - so someone else would have to grab and save while it's processing. Enterprisey (talk!) 22:04, 4 January 2019 (UTC)
 * Thank you. So it is possible that someone removed it and that action didn't appear in the log? The person who it had the comment removed was understanding, that part is okay at least, it is not unknown for the site's software to make a error. I would have preferred to not be accused of something abominable, I guess I hoped to be able to point to something if gets he vindictive after my thin-skinned response. Cheers again for the tool cygnis insignis 22:22, 4 January 2019 (UTC)
 * , oh my fault entirely, I didn't scroll down in the diff. That is really, really bad. Fortunately, there's an easy fix, so I shall implement it. Thank you very much for reporting this! Enterprisey (talk!) 22:26, 4 January 2019 (UTC)
 * , no problems, just solutions, my friend. cygnis insignis 22:35, 4 January 2019 (UTC)

For DYK?
It currently only works on talk pages, but there are a few other places where talk occurs. For example, can you make it work on Template:Did you know nominations/Article name pages? —  Insertcleverphrasehere (or here)  10:40, 9 November 2018 (UTC)
 * It should now work on T:TDYK pages. Enterprisey (talk!) 08:51, 8 January 2019 (UTC)

?
Look at this, do you see wheat I see: two "(reply)" outdented on lines below the last post? Could it be caused be ? Sam Sailor 08:26, 30 November 2018 (UTC)
 * That's been happening for a bit; it's definitely caused by the &lt;small> elements. I haven't looked into it very much, but the fix probably isn't too painful. There's a bit of stuff backing up on this page that I'll get to when I start editing more frequently, around mid-December or so. Enterprisey (talk!) 22:45, 11 December 2018 (UTC)
 * Should be fixed. Enterprisey (talk!) 08:11, 10 January 2019 (UTC)

Uncaught Negative strIdx (signature not found in wikitext)
Hello,

I was trying to use this tool on Google Chrome 70.0.3538.110, when the script gave an error after pressing "reply". The script outputted this to the console: in doReply, header = (3) ["2", "Concerning the inclusion of "Related portals" section", 11] index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:367 [getSectionWikitext] endIdx negative, setting to 54275 index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:384 In sigIdxToStrIdx, sigIdx = 13 index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:444 [sigIdxToStrIdx] out of matches index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript:810 Uncaught Negative strIdx (signature not found in wikitext)

This happened when using the tool to reply to on Wikipedia_talk:Portal_guidelines.

The message I wanted to post was (this also happened when I tried not using the ~ at the end): , do you have any ideas? (I don't have any other ideas at this time) ~

Thanks, Dreamy <i style="color:#d01e1e">Jazz</i> 🎷 talk to me &#124; my contributions 12:25, 11 December 2018 (UTC)
 * I've updated the error message for this, but I'm still a bit stuck on fixing the underlying bug. Enterprisey (talk!) 21:40, 19 December 2018 (UTC)
 * I have taken another look at that page. It seems to make heavy use of labeled section transclusions, which are extremely tricky to deal with (and the script cannot deal with them at the moment.) When I have time in the future, I will try to make it work for those. Enterprisey (talk!) 08:02, 10 January 2019 (UTC)

Bug at ITN
Hey. Just tried to use this script to comment on candidates at In the news/Candidates, and it didn't work. Can't tell why. The console shows no errors relating to this script. --DannyS712 (talk) 09:19, 4 January 2019 (UTC)
 * Should be working now. Enterprisey (talk!) 07:54, 10 January 2019 (UTC)

Transclusions
I have implemented replies to comments that have been transclusions, and I've also fixed some other buggy interactions with transclusions (most notably AN, but also OPP as reported above and several other important pages). For now, the new code is up at the development version, User:Enterprisey/reply-link-dev.js. When I'm done with the other fixes I'm working on (localization and replying below hatted discussions) and some testing is done, I'll put it all in the main script. If people want to install the development version and let me know if they find any bugs, I would appreciate that immensely. (Note: You'll have to uninstall hover-edit-sections, as I haven't figured out how to maintain compatibility there yet.) Enterprisey (talk!) 08:57, 8 January 2019 (UTC)
 * And it's now all in the main script, along with a couple of other fixes. Let me know if any issues come up. Enterprisey (talk!) 23:59, 9 January 2019 (UTC)

Plus signs treated as spaces when previewing
Sorry if this is a repeat. When previewing, it seems reply-link treats  as a space, at least in internal links. E.g.  appears as C, and   appears as 123. Thanks for your hard work, &mdash; MusikAnimal  talk  20:32, 8 January 2019 (UTC)
 * Should be fixed now, I think. Enterprisey (talk!) 23:59, 9 January 2019 (UTC)

A trout for myself
For making everyone wait five seconds per edit for no reason. My sincere apologies to everyone. (Not sure how that one got past me... maybe I should sleep more. {) Enterprisey (talk!) 07:59, 10 January 2019 (UTC)

Error on transcluded pages
Trying to reply at WP:OPP, which transcludes WikiProject on open proxies/Requests results in an error, unless you're on /Requests. SQL <sup style="font-size: 5pt;color:#999">Query me! 23:10, 8 November 2018 (UTC)
 * Well, as indicated at the top, trancluded pages don't yet work. The problem is probably that the script compares HTML and Wikitext but the Wikitext only contains the transclusion but not the actual code, so the script can't find the comment. Regards So  Why  10:24, 22 November 2018 (UTC)
 * Should be fixed now. Enterprisey (talk!) 08:18, 10 January 2019 (UTC)