Jump to content

User talk:Alexis Jazz/Factotum

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Alexis Jazz (talk | contribs) at 04:49, 23 June 2022 (You messed up! (submit_timeout_button): replying to Liz: (the error you received is a catch-all fo...) [Bawl!]). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.





Feature request

User:Alexis Jazz, there are a few things that have been bugging me (but not so much that I mentioned/complained about them before):

  • There are no link/template suggestions when you type
  • When clicking on the comment cycle, it can also scroll across the width of the screen (to the right)
  • Viewing comments doesn't count as 'reading' them, for the purposes of the cycle
  • The preview takes surprisingly long to load e.g. over 5 seconds (not really fixable, but...)
  • the bullet points didn't work
  • CD gives some handy links under each section e.g.
Wikilink
Wikipedia:Categories for discussion/Log/2022 April 24#Category:Easter traditions by country
Wikilink from the same page
#Category:Easter traditions by country
Regular link
Wikipedia:Categories for discussion/Log/2022 April 24#Category:Easter traditions by country
Permanent link
Wikipedia:Categories for discussion/Log/2022 April 24 (revision 1086042091)

(the last two have been cleaned by Bawl, but were external links).  ―  Qwerfjkltalk 19:35, 3 May 2022 (UTC)[reply]

Qwerfjkl, link/template suggestions are the final red item on User:Alexis Jazz/Bawl#Feature comparison matrix. Now that you've requested it I have no choice but to look into it. Getting the suggestions isn't the hard part, but I'll have to analyze CD to see the UI side of it. Comment cycle horizontal scroll: right, I think I can fix that. Usually the issue wouldn't be noticeable as horizontal scrollbars typically aren't supposed to exist, it might indicate a MediaWiki issue as well but that depends on your device and the page in question. Viewing comments (by manually scrolling to them without clicking the cycle button) indeed doesn't mark them as read for the purposes of the button, is that what you mean? Sounds like a good idea, will look into it. Preview takes long: you have Wikipedia:AutoWikiBrowser/Typos enabled and you're using a mobile device (you mentioned Amazon Silk earlier) with limited CPU power, I suspect that's the reason. I could maybe implement an option to do the preview twice: first preview without RegExTypoFix (quick) and immediately do it again in the background with RegExTypoFix. 5 seconds after previewing the typos caught by RegExTypoFix would disappear. Or perhaps more sensible, I could add the option to skip RegExTypoFix on preview. Bullet points broken: looks like a bug, will fix. Handy links: hmmm, I have an idea I think. Alexis Jazz (talk or ping me) 06:06, 4 May 2022 (UTC)[reply]
Oops, I meant to turn off RegExTypoFix (and now the preview is fine). ―  Qwerfjkltalk 06:09, 4 May 2022 (UTC)[reply]
I just noticed this: I use the regex /([^~;\)\>])$/$1 ― / to append a dash to my comment, but Bawl adds a space after the end of the comment, before the signature, which breaks the non-breaking space (see the above comment). ―  Qwerfjkltalk 06:12, 4 May 2022 (UTC)[reply]
@Alexis Jazz, I tried Mark comments as read when you scroll them into view, and I've found two errors: trying to set properties of undefined (innerText), and the comment cycle reaches 0, instead of disappearing. ― Qwerfjkltalk 19:10, 7 May 2022 (UTC)[reply]
Qwerfjkl, I had noticed and already wrote the fix but didn't put the new version up yet. Now I have. I also added the requested link/template suggestions. CD didn't really help with my UI conundrum (CD's solution seems not very comfortable on mobile and I want Bawl to work on both desktop and mobile), but I found a way. The "insert link" form (which already existed) now makes suggestions. To stay in the flow, I added an option "Move to link insertion form when typing [ [ or { {. If you enter the form with curly brackets the search will be prepended by Template:. The "insert link" form can be exited again by entering closing brackets and the whole shebang sorts itself out. Earlier I had added the "Also enable RegExTypoFix on preview" option so you could enable RETF without an unbearably slow preview. (you can also apply RETF manually from the looking glass) And "Mark comments as read when you scroll them into view" is an option now. The scrolling issue should also be resolved, I had copied the parameters for "scroll to center" from somewhere and that included vertical centering. It's now set to the default "nearest", so it will only scroll vertically if that's required to get the element in view. Bullet points was a bug that should be fixed. I added an href to the section permalink icon, right click (or equivalent on touchscreen devices) and "copy link" to get it. This gives you a non-permalink for the section. Do you need any of the other links? My thought is that the wikilinks aren't needed as the URLs get rewritten anyway. Is any more work needed on the requests/reports (including the 7 points at the top of this page)? Alexis Jazz (talk or ping me) 19:53, 7 May 2022 (UTC)[reply]
@Alexis Jazz, thanks so much for your work on this! Regarding I added an href to the section permalink icon, right click (or equivalent on touchscreen devices) and "copy link" to get it. This gives you a non-permalink for the section, I don't seem to have an equivalent to right click. It'd be nice if a normal (full) wikilink was there as well - it helps with my CfD work, and could be useful elsewhere. The 'insert link' form works fine with [ [, but with { { input: 'tq', 'Some text', it produces {{Template:tqSome text}}, which isn't quite right. It also inserts the link/template at the end of the comment, not where the [ [ / { { was typed. These improvements cover all my feature requests (save 4., perhaps), so I suppose I'll have to think of some more. Happy editing! ― Qwerfjkltalk 21:07, 7 May 2022 (UTC)[reply]
Qwerfjkl, there must be a better way. I don't seem to have an equivalent to right click On my phone I can press and hold links (the permalink icon is a link element) to get a menu after 2 seconds or so that includes a "copy link" option. Does this not work on Amazon devices? I must admit, it has bothered me for some time that Twinkle doesn't rewrite URLs. Bawl does, but Bawl can't file an XfD. What if Bawl could file XfDs? Hmm, no, that's a crap idea, not gonna happen. What if Twinkle could rewrite URLs? YES! In the settings for Bawl, look for "CSS selector for other elements to rewrite URLs for" and insert #wpSummary,.morebits-dialog textarea. This will make Bawl rewrite URLs in the 2010 Wikitext editor edit summary and Twinkle. Cat-a-lot uses a window.prompt (whyyy??) so unfortunately this doesn't work there, I need to fix Cat-a-lot for that. You weren't supposed to "name" templates, but I figured I might as well interpret a "name" for templates, if given, as an argument so that's done now. The "Template:" was supposed to be filtered, that should work again too. It should also no longer insert at the end. Alexis Jazz (talk or ping me) 14:00, 8 May 2022 (UTC)[reply]
Does this not work on Amazon devices? Apparently not. ― Qwerfjkltalk 16:54, 8 May 2022 (UTC)[reply]
Qwerfjkl, so you can only copy a link by visiting it and copying it from the address bar? Alexis Jazz (talk or ping me) 17:45, 8 May 2022 (UTC)[reply]
@Alexis Jazz, yes. ― Qwerfjkltalk 17:50, 8 May 2022 (UTC)[reply]
Qwerfjkl, well that sucks! :-) I searched for it, but as I don't have the device I don't really know what to look for. I mostly found guides with titles like "how to install Google Play on Amazon thing", I'm guessing that might be needed to install another browser. I tested the press-and-hold on an Android and an iOS device and it worked on both, but I guess it's not a universal feature. I added an option to also generate non-permalinks. For #4 of the requests in the earlier thread, I added an option to re-purpose permalink icons in the same section to insert a link to the comment using the same as format as CD. Alexis Jazz (talk or ping me) 00:00, 9 May 2022 (UTC)[reply]
@Alexis Jazz, I'm not sure if the CSS selector for other elements to rewrite URLs for option is working. Can you provide a testcase? ― Qwerfjkltalk 18:02, 10 May 2022 (UTC)[reply]
Qwerfjkl, you have it enabled on #wpSummary,.morebits-dialog textarea so it should work on edit summaries on the 2010 wikitext editor and Twinkle textarea. Maybe you want #wpSummary,.morebits-dialog textarea,.morebits-dialog input,.ve-ui-mwSaveDialog-summary textarea to also cover single line Twinkle input fields (just fyi, Twinkle has so many options I'm not sure this covers everything) and New wikitext mode (2017 source editor) as well. Step by step: open [1]. (if you use the 2017 source editor make sure .ve-ui-mwSaveDialog-summary textarea is included in your CSS selector) Get to the summary field and paste [2] into it. (just the URL, without the brackets) Now click anywhere outside the summary field. Alexis Jazz (talk or ping me) 23:29, 10 May 2022 (UTC)[reply]
@Alexis Jazz, thanks, it works. ― Qwerfjkltalk 06:08, 11 May 2022 (UTC)[reply]
Also, I still get an error (related to my earlier comment) on line 5693/5667. ― Qwerfjkltalk 21:12, 7 May 2022 (UTC)[reply]
Qwerfjkl, I thought I solved that,can you confirm? Alexis Jazz (talk or ping me) 00:03, 9 May 2022 (UTC)[reply]
@Alexis Jazz, I tried again, (on my laptop), and now I get an error when unsubscribing:
VM1047:3737 Uncaught TypeError: Bawl.currentSubs.replace is not a function at Object.Bawl.stalkUnsubscribe (<anonymous>:3737:75) at HTMLAnchorElement.onclick (Bawl:1:6)
 ― Qwerfjkltalk 15:45, 9 May 2022 (UTC)[reply]
Qwerfjkl, fixed! Alexis Jazz (talk or ping me) 17:43, 9 May 2022 (UTC)[reply]
@Alexis Jazz, yes, I can confirm I still get the error (line 5807). ― Qwerfjkltalk 06:06, 11 May 2022 (UTC)[reply]
Qwerfjkl, I think I fixed this but forgot to reply. Can you confirm whether this issue still exists? Alexis Jazz (talk or ping me) 15:13, 22 May 2022 (UTC)[reply]

6000 lines

Congratulations on Bawl's 6000th line of codes! How you managed to remember every aspect of it, find/fix bugs and then add a lot of new features before re-looping the process remains a secret to me. NguoiDungKhongDinhDanh 20:42, 10 May 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, thank you so much! Good timing too, as I'm about to take Bawl out of "early access". I needed some time to think about what to say. A few things I find useful: as I kept the whole project in a single file I never have to wonder in which file some bug might be. I use long names for variables and the like. No shortening of "int" to "i" or "element" to "el" which improves readability for me. This increases the script size slightly which is why I wrote User:Alexis Jazz/AJSJSMangler as well. And plenty of code comments/debug messages. I use JSHint to catch obvious syntax errors. And last but not least, I got a lot of great feedback from testers! :-) Alexis Jazz (talk or ping me) 13:32, 12 May 2022 (UTC)[reply]
@Alexis Jazz: I have just tested it with my JWB and it seems that AJsJSMangler (nice pun!) can't differentiate strings from real variables. Also, did you copy-and-paste the licensing terms from Bawl again? NguoiDungKhongDinhDanh 13:57, 12 May 2022 (UTC)[reply]

SineBot's using Bawl

Special:Diff/1087763538. Qwerfjkltalk 16:34, 16 May 2022 (UTC)[reply]

Qwerfjkl, not really.. You moved the section from Wikipedia:Bots/Noticeboard to Wikipedia:Bot requests. From what I can tell the move went fine. (I forgot to add some "moved from" summary, but otherwise fine) Technically one could argue (and SineBot certainly does) that you added a new section that you didn't sign yourself to WP:Bot requests. But as the section actually was signed (not by you, but that's splitting hairs), I think SineBot should have skipped it. Slakr, what do you think? Edit: OOOOOOOOOH now I see it! Hilarious! As there is no tag for Bawl, the credit/blame/spam link is part of the summary. If you look closely you'll see SineBot's summary ends with a double quote, somewhat that will never happen with Bawl. Alexis Jazz (talk or ping me) 20:06, 16 May 2022 (UTC)[reply]

Cat-a-lot

Having tried some more, it worked okay, but it'd be nice if you could keep the above in mind. ― Qwerfjkltalk 21:23, 16 May 2022 (UTC)[reply]

Qwerfjkl, to respond to your original comment: Have you made some change to Cat-a-lot somehow, as it seems to have an edit summary field now (not prompt()). This would be fine, but as I use mobile, the pop-up keyboard makes it impossible to type onto the Cat-a-lot input box, which is attached to the bottom of the screen (especially pasting is impossible) I made an adjustment and requested the change to be merged which happened on 15 May.. This was done so the CSS selector for URL rewriting could actually target cat-a-lot's summary as a prompt() can't be targeted. (oh, btw, you will soon be able to enter a CSS selector for RegExTypoFix and your own regular expressions as well!) I'd imagine that if you were able to hit the checkbox you should be able to hit the text input. Btw, I don't think cat-a-lot was really designed with mobile in mind, though on a medium-sized tablet in landscape mode it would probably be okay. I don't have an Amazon device and from what I understand they behave different from other devices in some cases, so when that happens please just report it to we can have a look. If you experience difficulties targeting elements at the bottom of your screen, would it help if you could have cat-a-lot in a top corner instead of a bottom corner? Alexis Jazz (talk or ping me) 22:28, 16 May 2022 (UTC)[reply]
Qwerfjkl, top right: add
#cat_a_lot {bottom:unset;top:0;}
to Special:MyPage/common.css. Top left:
#cat_a_lot {bottom:unset;right:unset;top:0;left:0 !important}
Somewhat below the top:
#cat_a_lot {bottom:unset;top:3em}
Alexis Jazz (talk or ping me) 22:50, 16 May 2022 (UTC)[reply]
@Alexis Jazz, The CSS makes the Cat-a-lot box stretch to the bottom of the page. ― Qwerfjkltalk 17:28, 17 May 2022 (UTC)[reply]
Qwerfjkl, huh, odd. Not for me. Is having cat-a-lot in a top corner something you'd actually want? Otherwise I don't think this is worth pursuing. Btw, did you know cat-a-lot (when expanded) is draggable? So if it's more convenient you could drag it elsewhere as needed. Alexis Jazz (talk or ping me) 17:46, 17 May 2022 (UTC)[reply]
@Alexis Jazz, I found that out earlier today. Wonder if it'll work on mobile? ― Qwerfjkltalk 18:22, 17 May 2022 (UTC)[reply]
Qwerfjkl, now I see, it only happens when you load a long category list. Try
#cat_a_lot {bottom:unset;top:0;max-height:20em;} #cat_a_lot_category_list {max-height:10em !important;}
Alexis Jazz (talk or ping me) 17:53, 17 May 2022 (UTC)[reply]
@Alexis Jazz, By the way, what's the CSS selector for Cat-a-lot? ― Qwerfjkltalk 19:35, 17 May 2022 (UTC)[reply]
Qwerfjkl, I just added User:Alexis Jazz/Bawl#Use features from Bawl outside Bawl? for reference. Alexis Jazz (talk or ping me) 20:12, 17 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, one of us messed up (probably me)! I clicked the speech bubble and the box appeared OK. I typed some text and hit Submit. The Submit button greyed out and started gently flashing but the edit didn't happen. I've tried resetting my preferences and reinstalling: same problem. I use Firefox 100.0 (current) on Ubuntu 16.04 (outdated but should work for this). There are no obvious clues in the browser console. I use uMatrix but it's switched off for Wikipedia.

I was trying to..

Replylinkparams:

{"int":520,"type":"comment","subtype":"legacy","id":"Galobtter:22:53, 18 May 2022 (UTC):520","pageTitleInt":515,"origReplyTo":"Galobtter","origTimestamp":"22:53, 18 May 2022 (UTC)","seq":0,"sectionseq":1,"sectionTitle":"Adding own talk contribs to \"vandal\" template"}

Page: Wikipedia:Village_pump_(proposals) @ enwiki

Page loaded at: 18/05/2022, 23:32:33

Error occured at: 18/05/2022, 23:33:00 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 261

# of elements processed: 521

Element types processed: LI, P, I, DD, SPAN, SMALL, S

Additional information: Error triggered by user.

Certes (talk) 23:43, 18 May 2022 (UTC) ― [reply]

Certes, that's not what's meant to happen! As it's working for me (just reverted myself) I need to ask for more information: can't you reply to anyone anywhere or just that thread? As you are familiar with the browser console, could you try enabling debug mode? On the advanced tab in settings, check "Show expert settings", check "Enable test/debug mode" and save. Now you should get some clues in the browser console, if you could share the last 5 or so messages I'd have some clue where it gets stuck. Alexis Jazz (talk or ping me) 00:27, 19 May 2022 (UTC)[reply]
Certes, I think I see part of the issue. sectionseq is 1 for you. That means Bawl thinks this is the second thread on that page with that exact title. (if it was the third it would be 2, etc) It should be 0. I suspect it's a conflict caused by a gadget or userscript you have installed. What does
$('#mw-content-text H2')[$('#mw-content-text H2').length-1].innerHTML
look like for you? (I'm looking for the innerHTML of the section header of the thread in question, I suspect there are some gadgets there) Alexis Jazz (talk or ping me) 00:39, 19 May 2022 (UTC)[reply]
Certes, nevermind, I found it! It's User:BethNaught/hideSectionDesktop.js from User:Certes/common.js. I'll look into what exactly is happening. Of course, Bawl has a collapsible section feature, so if you enable that maybe you won't need hideSectionDesktop.js anymore. Alexis Jazz (talk or ping me) 01:02, 19 May 2022 (UTC)[reply]
Certes, I've made some changes to improve compatibility with gadgets that add fake .mw-editsections. Bawl now changes the class of the fake .mw-editsection elements to .mw-editsection-like so Bawl is less likely to get broken by such scripts. As long as the other script doesn't rely on its link having the .mw-editsection class it'll work fine, which is the case for hideSectionDesktop.js Alexis Jazz (talk or ping me) 06:38, 19 May 2022 (UTC)[reply]
Alexis Jazz, Thanks for the prompt response. If you see this then it's worked! I should have checked hideSectionDesktop.js: it doesn't play well with at least one other script, which is why I have it in an IF block. I like section hiding for DisamAssist if I have to click repeatedly on a link near the bottom of the page. If Bawl does that already then I can remove the troublesome alternative. Thanks again for all the good work. My next job is to get regexp buttons working in articles. For example, I've hacked together a GreaseMonkey script that fixes frequent mislinks like [[Meta]] → [[Meta Platforms|]] but hope to discard that soon too if I can set up buttons for them. Certes (talk) 08:26, 19 May 2022 (UTC)[reply]
Certes, good to hear! A custom insert with /\[\[[Mm]eta\]\]/[[Meta Platforms|]]/g:<<Meta>> adds a button labeled "Meta" that replaces that link. Alexis Jazz (talk or ping me) 12:00, 19 May 2022 (UTC)[reply]
@Alexis Jazz: Thanks, that worked perfectly. Bawl changed the link for me when I pressed my new Acre[IL] button, not to be confused with my Acre[BR] button for when someone thinks acre is about Acre (state). One oddity: the button I'd have expected to be called "Submit" was called "Edit this page", but it performed the submit function correctly. Certes (talk) 22:21, 19 May 2022 (UTC)[reply]
Certes, I'm glad you find it useful. :-) The button label is an odd story. It varies depending on your action. Many months ago Bawl didn't have the ability yet to edit whole pages and translations were handled differently. On 13 February 2022 both of those things changed, full page editing was added and translations for primary UI elements were imported from MediaWiki. The word "reply" made no sense when editing a full page, so that became {{int:edit}} (Edit this page). But "Publish changes" or "Edit this page" made no sense when commenting. And MediaWiki doesn't have a translation for "reply" in its core modules or any extension that would be reasonable to be a dependency for Bawl. So I used {{int:htmlform-submit}} (Submit) instead. But now I guess confusion arises because "Submit", unlike "Reply", could be used for both actions, but due to history it doesn't. I thought about it and I have to agree, there's no good reason not to simply use htmlform-submit everywhere, so I'll include that change with the next update. Alexis Jazz (talk or ping me) 05:11, 20 May 2022 (UTC)[reply]
@Alexis Jazz: Thanks, I think Submit is clearer and more consistent. "Edit this page" could be misunderstood as "start typing edits to this page" (expecting a submit/preview/cancel UI interaction later) rather than "Publish the edits I just typed". Certes (talk) 11:49, 20 May 2022 (UTC)[reply]
Certes, I hadn't thought of it that way. In hindsight it wasn't the clearest choice for a button label. Btw, I noticed this little purge confirmation dialog automation snippet in your common.js, I never understood why I was ever asked for confirmation of that. Does God kill a kitteh every time you purge? (I guess it's to do with rate limits, but still, it seems silly) Now I'm not saying you'll never have to purge again, but Bawl now automatically purges the page you're on when you just edited something transcluded. Should be handy for template documentation etc. Alexis Jazz (talk or ping me) 04:13, 22 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up! (Or maybe not, but that's pre-filled, so I'll leave it.) When I use Bawl to reply on a page which is permanently on my watchlist, it seems to set it to be temporarily on my watchlist instead. Ideally permanently watched pages would stay that way, and unwatched pages would be temporarily watched, no?

Replylinkparams:

{"int":0,"id":"newSectionForm-InputBox","type":"newsection","subtype":"InputBox","pageTitle":"User talk:Alexis Jazz/Bawl","sectionTitle":"NO-VALUE-PLEASE-IGNORE","origReplyTo":"NO-VALUE-PLEASE-IGNORE","origTimestamp":"2000-01-01T00:00:00.000Z","origReplyTo2":"NO-VALUE-PLEASE-IGNORE","preloadparams":[],"preload":"User talk:Alexis Jazz/Bawl/preloadinputboxbug","preloadtitle":"Bug report"}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 21/05/2022, 20:03:12

Error occured at: 21/05/2022, 20:06:37 UTC

My settings:

{"livePreview":true,"enableCIThatRunCmt":false,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"pingText":"{{u|PINGUSER}}, ","pingTextInSection":"{{u|PINGUSER}}, "}

Skin: vector-2022

# of .BawlLinks: 114

# of elements processed: 349

Element types processed: FORM, INPUT, SPAN, P, LI, DD, S, I

Additional information: Error triggered by user.

ezlev (user/tlk/ctrbs) 20:08, 21 May 2022 (UTC) ― [reply]

Ezlev, I definitely messed up, that shouldn't have happened. For some reason the existing expiration was defined as the current time in this case and (per default) 30 days got added to that. Maybe a leftover from a time when Bawl offered less watchlist expiry options. It should work now. Alexis Jazz (talk or ping me) 21:09, 21 May 2022 (UTC)[reply]

Bug report

Alexis Jazz, I found this issue: Sometimes I have already seen 'new' comments on a page. This only seems to happen on certain pages (e.g. Wikipedia:Village pump (technical)). A possible cause could be done sort of conflict with subscribed sections; I haven't tested this. The bug has been around for a while; it's not new. ― Qwerfjkltalk 15:36, 22 May 2022 (UTC)[reply]

Also, posting this comment is broken severly; this might be due to the outdent randomly appearing in the previous comment (perhaps due to the outdent the comment before it), or because I used the buttons at the top of the page (the input box for this comment just after the "Report a bug" button I used)/. ― Qwerfjkltalk 15:40, 22 May 2022 (UTC)[reply]
For clarification, the outdent I said was randomly appearing in the previous comment was not posted in the comment. ― Qwerfjkltalk 15:42, 22 May 2022 (UTC)[reply]
Qwerfjkl, outdent is a type of indent. When posting an indented comment, Bawl.commentTextIndent is defined. When posting a new (sub)section after that, Bawl.commentTextIndent doesn't get defined nor used to post the section, but the parse-in-place preview does recycle it. This was most visible when the indented comment contained an outdent, but it was happening with any kind of indentation. I clear Bawl.commentTextIndent now when opening the form so this won't happen again. The subscription/'new' comments issue is more difficult without reproduction steps. (also because subscriptions are probably the most complex feature in Bawl) Some questions: (1) has your subscription object already exceeded 64K? Would you be able to tell me your window.localStorage.BawlSubs.length and mw.user.options.get('userjs-BawlSubs').length? When you go over 64K, something gets trashed for the latter. That something should be old, but maybe there's something wrong and something else happens. This also happens when exceeding the maximum page subscriptions. (2) Did you ever reset your subscriptions object? Quite some changes have been made to it. Maybe the problems only appear on VPT because it's probably your oldest subscription and something is missing from it. I added a button to reset only subscriptions. If that's too drastic for you, temporarily disable "Synchronize subscriptions to account preferences" and enter
Bawl.removeVPTsubs = JSON.parse(window.localStorage.BawlSubs);
delete Bawl.removeVPTsubs['Wikipedia:Village pump (technical)'];
window.localStorage.setItem('BawlSubs',JSON.stringify(Bawl.removeVPTsubs));
to remove only all subscriptions to VPT. (3) Can you further define "seen"? Did you see them on the same device/browser? Not in another tab that was loaded after the page on which comments are incorrectly marked as new? Did you see them while viewing a diff or old revision? (4) You mean the green marking on timestamps, right? Or do you mean a notification? (5) Any pattern to what gets marked as new? Everything? Starting from a certain date? Any pattern? (6) Does it only happen sometimes or always? How often? Alexis Jazz (talk or ping me) 18:41, 22 May 2022 (UTC)[reply]
@Alexis Jazz, For (1), respectively:
19675
Extended content

{"User talk:Jimbo Wales":{"lastviewed":1651680565078},"User talk:Alexis Jazz/Bawl":{"lastviewed":1652940740826,"subs":{"You messed up!":{"id":"Alexis_Jazz:1650551955462","lastupdate":1651491350955},"You messed up! (I AM ERROR)":{"id":"Alexis_Jazz:1651549175143","lastupdate":1651557708078},"NO-VALUE-PLEASE-IGNORE":{"id":"Qwerfjkl:1651606504827","lastupdate":1651606127083},"You messed up! (open form failed)":{"id":"Qwerfjkl:1651606579643","lastupdate":1651606127083},"Feature request":{"id":"Qwerfjkl:1651644544536","lastupdate":1651644422801},"Bug report":{"id":"Alexis_Jazz:1651439310367","lastupdate":1652110891472},"You messed up! (mismatched amount of headlines (34) and section edit links (29))":{"id":"Alexis_Jazz:1651115702061","lastupdate":1652110891472},"Cat-a-lot":{"id":"Qwerfjkl:1652736181542","lastupdate":1652735927441},"You messed up! (username+timestamp Casualdejekyll?redirect=no+23:49, 18 May 2022 (UTC) not found, seq: 0)":{"id":"Qwerfjkl:1652940767355","lastupdate":1652940740826}}},"Wikipedia:Village pump (technical)":{"lastviewed":1652978194395,"subs":{"Restore ToC":{"id":"Qwerfjkl:1651506583666","lastupdate":1651506399394},"Does this template do anything?":{"id":"While attempting to figureLEGACYTIMESTAMP17:48, 2 May 2022 (UTC)","lastupdate":1651558343851},"Google translate shows login message for Wikipedia":{"id":"Alexis_Jazz:1651500062043","lastupdate":1651558343851},"Is there a Vector-2022 talk page?":{"id":"I had trouble deciding whereLEGACYTIMESTAMP14:21, 3 May 2022 (UTC)","lastupdate":1651608378922},"scriptManager + scriptInstaller":{"id":"Qwerfjkl:1652606015650","lastupdate":1652605855006},"Global vs local script mgt":{"id":"Qwerfjkl:1652719914471","lastupdate":1652719763842},"Auto-archiving an XfD log":{"id":"Qwerfjkl:1652978354402","lastupdate":1652978194395},"What's the mw.js equivalent of mw.Lua's mw.title.new(page):getContent()?":{"id":"Qwerfjkl:1652978426815","lastupdate":1652978194395}}},"Wikipedia talk:AutoWikiBrowser/Typos":{"lastviewed":1650292521812,"subs":{"savinging$3":{"id":"Qwerfjkl:1650292601764","lastupdate":1650292521812}}},"User talk:2603:7000:6106:C400:B90C:7627:3334:6EEC":{"lastviewed":1650357499354},"User talk:63.97.8.74":{"lastviewed":1650385172024},"Wikipedia talk:Ultraviolet":{"lastviewed":1652117234618,"subs":{"RedWarn on SqWiki":{"id":"Qwerfjkl:1652110853744","lastupdate":1652110730025}}},"Talk:Dale Farm":{"lastviewed":1650391825039},"Wikipedia talk:Special:UnusedCategories":{"lastviewed":1651484385794},"Wikipedia:Bots/Noticeboard":{"lastviewed":1652976117836,"subs":{"Controversy About Report Being Generated by Bot":{"id":"Qwerfjkl:1652976319330","lastupdate":1652976117836}}},"Wikipedia talk:Talk pages project":{"lastviewed":1653062587004},"Wikipedia talk:UltraViolet/Abuse Warning":{"lastviewed":1650634396769},"User talk:Qwerfjkl":{"lastviewed":1652542842130,"subs":{"Question from Johnbaxter329 on Draft:Lu Castro (01:20, 19 April 2022)":{"id":"Qwerfjkl:1650349345033","lastupdate":1650348941101},"Visible anchor removal blowing away large portions of articles":{"id":"Qwerfjkl:1650435058748","lastupdate":1650434864794},"Question from Justbizzsisko (05:46, 21 April 2022)":{"id":"Qwerfjkl:1650521088445","lastupdate":1650520982340},"Twinkle and Redirects":{"id":"Qwerfjkl:1651644300605","lastupdate":1651644144677},"Working on Wikidata statements for judges":{"id":"Qwerfjkl:1651770057833","lastupdate":1651770020340},"Short desc bot is doing great work!":{"id":"Qwerfjkl:1651817121818","lastupdate":1651816965535},"Template recursion issues":{"id":"Qwerfjkl:1652282498812","lastupdate":1652282427976},"Speedy deletion nomination of P talk:SARS-CoV-2":{"id":"Qwerfjkl:1652509773654","lastupdate":1652509370451},"Notice to admins":{"id":"Qwerfjkl:1652521971215","lastupdate":1652521890948},"Regarding a CfD outcome":{"id":"Qwerfjkl:1652542956326","lastupdate":1652542842130}}},"Template talk:United States presidential election results table row":{"lastviewed":1650645481617,"subs":{"Erros":{"id":"Qwerfjkl:1650645699861","lastupdate":1650645481617}}},"Wikipedia:Village pump (proposals)":{"lastviewed":1652206770461,"subs":{"Make portals visible in default search":{"id":"Qwerfjkl:1651606077394","lastupdate":1651605882954},"The number of words in wikipedia articles":{"id":"[[Special:Contributions/2600:6LEGACYTIMESTAMP06:26, 1 May 2022 (UTC)","lastupdate":1652111017494},"Can projects ignore manuals of style":{"id":"The question is, can aLEGACYTIMESTAMP05:47, 1 May 2022 (UTC)","lastupdate":1652111017494},"Stop page from going back to the top after going back after clicking on image?":{"id":"It's one of the moreLEGACYTIMESTAMP06:40, 3 May 2022 (UTC)","lastupdate":1652111017494},"Expand WP:Requests for undeletion to cover FOP-related restorations":{"id":"This proposal was suggestedLEGACYTIMESTAMP08:14, 26 April 2022 (UTC)","lastupdate":1652111017494}}},"Wikipedia:Bot requests":{"lastviewed":1652991000651,"subs":{"Film categories":{"id":"Qwerfjkl:1651769493017","lastupdate":1651769144430},"Removing citation needed tags with references":{"id":"Qwerfjkl:1651958394845","lastupdate":1651958346233},"Bot to preserve categories about to be deleted":{"id":"Qwerfjkl:1652041202964","lastupdate":1652041151405},"Automatic archival of Twinkle-generated logs":{"id":"Qwerfjkl:1652991043128","lastupdate":1652991000651}}},"User talk:LaundryPizza03":{"lastviewed":1650908551108},"Wikipedia:Categories for discussion/All old discussions":{"lastviewed":1651512690895},"User talk:Marcocapelle":{"lastviewed":1650995615227,"subs":{"Closing \"delete\" CFDs as a non-admin":{"id":"Hi Marcocappelle. I've beenLEGACYTIMESTAMP21:24, 22 April 2022 (UTC)","lastupdate":1650995615227}}},"Wikipedia talk:Requests for adminship/Tamzin":{"lastviewed":1650996154663},"Template talk:If IP":{"lastviewed":1651162327098},"Wikipedia talk:Shortdesc helper":{"lastviewed":1651087761024},"Wikipedia:Categories for discussion/Log/2022 April 1":{"lastviewed":1651162747527},"User talk:RubenSchade":{"lastviewed":1651174603211},"User talk:Ed6767":{"lastviewed":1651506943185},"Wikipedia:Categories for discussion/Log/2022 March 21":{"lastviewed":1652111750994},"Wikipedia talk:Did you know":{"lastviewed":1650105088359,"subs":{"It's an automatic prep set promotion tool!":{"id":"Qwerfjkl:1652718272190","lastupdate":1652718077969}}},"Wikipedia:AutoWikiBrowser/Tasks":{"lastviewed":1653218565528,"subs":{"Railroads in...":{"id":"Qwerfjkl:1650473501758","lastupdate":1650473436795},"Good Time":{"id":"Qwerfjkl:1651605441033","lastupdate":1651605396692},"Spelling error in reference in Mexican wrestler-related articles":{"id":"Qwerfjkl:1652370718908","lastupdate":1652369858585},"John Berry":{"id":"Qwerfjkl:1652371420418","lastupdate":1652369858585},"Po' Folks":{"id":"Qwerfjkl:1652994115055","lastupdate":1652994103399},"Infobox music genre colors":{"id":"Qwerfjkl:1653218627426","lastupdate":1653218565528}}},"Wikipedia talk:Manual of Style":{"lastviewed":1650139194409},"Talk:Jiang–Huai Guan-hua":{"lastviewed":1650148451460},"User talk:Alexis_Jazz/Bawl":{"lastviewed":1650177977318,"lastchecked":1650177977318,"subs":{"Preferences":{"id":"Qwerfjkl:1650178134725","lastupdate":1650177977318}}},"Wikipedia talk:WikiProject Poland":{"lastviewed":1650226268648},"Template talk:Infobox_station":{"lastviewed":1650269390165,"lastchecked":1650269390165,"subs":{"Auto short description":{"id":"Qwerfjkl:1650269894945","lastupdate":1650269390165}}},"Template talk:Visible anchor":{"lastviewed":1650278811409,"subs":{"Allow more anchors":{"id":"Qwerfjkl:1650278963185","lastupdate":1650278811409}}},"Template talk:R to diacritic":{"lastviewed":1650542782897,"subs":{}},"Wikipedia talk:WikiProject Redirect":{"lastviewed":1650486542137,"subs":{"R from school":{"id":"Qwerfjkl:1650486602496","lastupdate":1650486542137}}},"User talk:Tol":{"lastviewed":1650488723315,"subs":{"AutoCleaner":{"id":"Qwerfjkl:1650488850376","lastupdate":1650488723315}}},"Talk:Eliot Cutler":{"lastviewed":1650570017776},"Wikipedia talk:Bots/Noticeboard":{"lastviewed":1650696124611},"Wikipedia:Teahouse":{"lastviewed":1650714164834},"Template talk:R from remix":{"lastviewed":1650797778446},"Category talk:Traditional boats":{"lastviewed":1650866943968},"Wikipedia talk:Requests for adminship":{"lastviewed":1651093796525},"Talk:Charonian craters":{"lastviewed":1651178039646},"Wikipedia:Redirects for discussion/Log/2022 April 24":{"lastviewed":1651481857466},"Wikipedia:Requests for adminship/Tamzin/Bureaucrat chat":{"lastviewed":1651484624763},"Wikipedia:User scripts/Requests/Archive 6":{"lastviewed":1651486614294},"Wikipedia talk:Twinkle":{"lastviewed":1652543301496,"subs":{"Minor feature request":{"id":"Qwerfjkl:1651607670634","lastupdate":1651607614577},"Error in Twinkle menu position":{"id":"Qwerfjkl:1652520753419","lastupdate":1652520590785}}},"Wikipedia talk:Template index/User talk namespace":{"lastviewed":1651515837672},"Wikipedia talk:Bureaucrats' noticeboard":{"lastviewed":1651599230798},"Wikipedia:Bots/Requests for approval/IndentBot":{"lastviewed":1651612423761,"lastchecked":1651608191690,"subs":{"Back":{"id":"Qwerfjkl:1651608367611","lastupdate":1651608191690}}},"Wikipedia:Bots/Requests for approval/BareRefBot":{"lastviewed":1651608417022,"lastchecked":1651608417022,"subs":{"Trial 3":{"id":"Qwerfjkl:1651608516968","lastupdate":1651608417022}}},"Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 10":{"lastviewed":1651949101722,"lastchecked":1651608417022,"subs":{"Discussion":{"id":"Qwerfjkl:1651608759162","lastupdate":1651608417022}}},"Talk:Zegna":{"lastviewed":1651679003980},"User talk:Enterprisey":{"lastviewed":1651679219439},"Draft talk:Move/Ermenegildo Zegna Group":{"lastviewed":1651679539469},"Wikipedia talk:AutoEd":{"lastviewed":1651764334728},"Talk:Great Wall of China":{"lastviewed":1650706498350},"Wikipedia:Administrators' noticeboard":{"lastviewed":1650813242224},"User talk:2603:8081:506:B6B3:CC68:BBAE:1C2B:8D3F":{"lastviewed":1651039892070},"Talk:Charontian crater":{"lastviewed":1651177283884},"Wikipedia:Redirects for discussion/Log/2022 March 11":{"lastviewed":1651482234633},"Wikipedia:Requests for adminship/Tamzin":{"lastviewed":1651484565201},"Wikipedia talk:Counter-Vandalism Unit/Academy":{"lastviewed":1651486492557},"Wikipedia:Categories for discussion/Log/2022 April 24":{"lastviewed":1651611741466},"Category talk:Vegan bodybuilders":{"lastviewed":1651730699394},"Wikipedia:Categories for discussion/Log/2022 April 3":{"lastviewed":1651780608420,"subs":{"Transgender and transsexual categories":{"id":"Qwerfjkl:1651780792784","lastupdate":1651780608420}}},"Wikipedia:Categories for discussion/Log/2022 April 7":{"lastviewed":1651785286157},"Wikipedia:Categories for discussion/Log/2016 September 2":{"lastviewed":1651874754673},"Wikipedia:Categories for discussion/Log/2022 April 19":{"lastviewed":1651876997976},"User talk:Joeytje50/JWB":{"lastviewed":1651927415147,"subs":{"JWB in Santali Wikipedia":{"id":"Hi, I was testing this toolLEGACYTIMESTAMP03:50, 7 May 2022 (UTC)","lastupdate":1651927415147}}},"Wikipedia:Categories for discussion/Log/2022 April 9":{"lastviewed":1651910427799},"User talk:Alexis Jazz":{"lastviewed":1651950376376},"Wikipedia:Categories for discussion/Log/2022 April 30":{"lastviewed":1652001756615},"Wikipedia:Categories for discussion/old":{"lastviewed":1652031725324},"Wikipedia:Categories for discussion/Log/2022 April 22":{"lastviewed":1652038261628,"subs":{"Upmerged rcats":{"id":"Qwerfjkl:1652038284056","lastupdate":1652038261628}}},"Wikipedia:Categories for discussion/Log/2022 May 8":{"lastviewed":1652040094471,"subs":{"Upmerged rcats":{"id":"Qwerfjkl:1652040200770","lastupdate":1652040094471}}},"Wikipedia:WikiProject Short descriptions":{"lastviewed":1652111733021},"Wikipedia:There is a deadline":{"lastviewed":1652112743096},"Wikipedia:Pywikipedia":{"lastviewed":1652117255956},"Wikipedia:Categories for discussion":{"lastviewed":1652285600958},"Wikipedia:Categories for discussion/Log/2022 May 3":{"lastviewed":1652300615668},"Wikipedia talk:Special:SpecialPages":{"lastviewed":1652371582230},"User talk:Casualdejekyll":{"lastviewed":1652377708573},"Wikipedia:Categories for discussion/Log/2022 May 5":{"lastviewed":1652379958555},"Wikipedia:Categories for discussion/Log":{"lastviewed":1652380427800},"Wikipedia:1st (disambiguation)":{"lastviewed":1652456565130},"Template talk:Draft article":{"lastviewed":1652459811086,"subs":{"Template-protected edit request on 13 May 2022":{"id":"Qwerfjkl:1652459916414","lastupdate":1652459811086}}},"Wikipedia:Bots/Requests for approval":{"lastviewed":1652519051813},"Wikipedia:Bots/Requests for approval/ZabesBot":{"lastviewed":1652519051813,"lastchecked":1652519051813,"subs":{"Discussion":{"id":"Qwerfjkl:1652519151142","lastupdate":1652519051813}}},"User talk:AnomieBOT":{"lastviewed":1652523423754,"subs":{"Category this bot uses listed at CfD":{"id":"Qwerfjkl:1652523543594","lastupdate":1652523423754}}},"Wikipedia:Bots/Requests for approval/bitbotje":{"lastviewed":1652526069651},"Wikipedia:User scripts/List":{"lastviewed":1652543645937},"Talk:Onima Kashyap (actress)":{"lastviewed":1652603515212},"Wikipedia:Categories for discussion/Log/2022 March 23":{"lastviewed":1652603856771},"User talk:Theleekycauldron/DYK promoter":{"lastviewed":1652718340274},"Wikipedia:Administrators' noticeboard/Incidents":{"lastviewed":1652718385351,"subs":{"Incorrect use of typo-correcting script":{"id":"Qwerfjkl:1652718536065","lastupdate":1652718385351}}},"Wikipedia:Templates for discussion":{"lastviewed":1652616915330},"Wikipedia:Categories for discussion/Log/2022 April 6":{"lastviewed":1652617148786},"Wikipedia:Page mover":{"lastviewed":1652621946817},"Wikipedia:Bot activity monitor/Report":{"lastviewed":1652625739387},"Wikipedia:We are not as dumb as you think we are":{"lastviewed":1652634797701},"Wikipedia:Twenty Year Society":{"lastviewed":1652645560461},"User talk:Rich Farmbrough":{"lastviewed":1652645907106},"Wikipedia:Consensus":{"lastviewed":1652736218755},"Wikipedia:Miscellany for deletion/User:Qwerfjkl/preservedCategories":{"lastviewed":1652767926650,"subs":{"User:Qwerfjkl/preservedCategories":{"id":"Qwerfjkl:1652768285850","lastupdate":1652767926650}}},"Wikipedia:Village pump (miscellaneous)":{"lastviewed":1652806796691},"Wikipedia:Requests for permissions/Page mover":{"lastviewed":1652808382772},"Wikipedia:Categories for discussion/Log/2022 May 9":{"lastviewed":1652812599350},"Wikipedia:Ultraviolet/Preferences":{"lastviewed":1652890716857},"Template talk:Infobox musical artist":{"lastviewed":1652940203350},"Template talk:Infobox musical artist/tracking":{"lastviewed":1652940340490,"subs":{"Template:Infobox musical artist/tracking nominated for CSD, request deletion":{"id":"Qwerfjkl:1652940381270","lastupdate":1652940340490}}},"User talk:A Dutch Panda":{"lastviewed":1652976440560},"Talk:Proto-Tai language":{"lastviewed":1652978054486},"MediaWiki talk:Ipboptions":{"lastviewed":1652980258727},"Help:Template limits":{"lastviewed":1652982542641},"Wikipedia:Categories for discussion/Log/2022 May 12":{"lastviewed":1652991075767,"subs":{"People from places in Iran":{"id":"Qwerfjkl:1652991106048","lastupdate":1652991075767}}},"User talk:Fayenatic london":{"lastviewed":1652940959901},"Wikipedia:Bot policy":{"lastviewed":1653053701324},"Wikipedia:Redirect":{"lastviewed":1653059408513},"Wikipedia:Templates for discussion/Log/2022 May 20":{"lastviewed":1653059990589},"Template talk:Editnotices/Page/World Health Organization":{"lastviewed":1653062572560}}

 ― Qwerfjkltalk 20:54, 22 May 2022 (UTC)[reply]

For (2), I've just done so for the first time.
For (3), by seen I mean read (the green highlight faded). This was on the same device, not in a different tab.
For (4), I'm not entirely sure what you're referring to, perhaps 'new' comments above? If so, I do mean, as you say "the green marking on timestamps" (truth be told, I haven't seen a Bawl notification from subscriptions).
For (5), I think it's from a date.
For (6), infrequently on seemingly random pages (could be ones with old subscriptions, I've just mostly noticed it on VPT.)
A minor bug I noticed in the above comment is that the preview doesn't show the show/hide button for the collapsed box, but just shows it open. ― Qwerfjkltalk 21:15, 22 May 2022 (UTC)[reply]
Qwerfjkl, thanks. I see nothing obviously wrong in the subscriptions object. I'm going to shorten the key names though, I should be more frugal considering the storage limitations. (3) It doesn't matter for this, but the fading makes no difference. When a page is loaded you're assumed to read all the comments on it you care about. What you've read is only tracked at the page level. (4) there's an option "Notify me about new comments in the general notification area". You've actually enabled it. Never seen something that looked like an echo? Nothing in mw.user.options.get('userjs-BawlTackOnEchoGlobal')? (5) If you notice it happening again, try to estimate from approximately which date comments are marked to get an idea if it might be since some event. Also please get a copy of JSON.stringify(JSON.parse(window.localStorage.BawlSubs)[mw.config.get('wgPageName').replace(/_/g,' ')]) so I can check if the recorded dates make any sense. I'll look into the collapsed item-in-preview issue.Alexis Jazz (talk or ping me) 05:11, 23 May 2022 (UTC)[reply]
Qwerfjkl, .mw-collapsible should work in previews now. Regarding the subscriptions: please reset your subscriptions again. If Bawl doesn't load:
window.localStorage.removeItem('BawlSubs');
api.postWithEditToken( {format: 'json', action: 'options', change:['userjs-BawlSubs=']} ).then( function ( data ) {console.log(data)});
My best guess is that this is/was a synchronization issue. With synchronization enabled, subscriptions are stored both in localStorage and as a preference. (but not identically: only pages with subscriptions are synchronized to preferences due to storage limitations) When a subscribe/unsubscribe action happens, localStorage is synchronized to preferences. But when merely viewing a page it's not because changing a preference with every pageview wouldn't be very nice. Preferences are synchronized to localStorage on every pageload (because it's cheap) but this was done with a simple Object.assign. This may have resulted in a newer "lastviewed" date in localStorage to be overwritten with an older date from the last synchronization to preferences. I think. Err, we'll just have to see if it's better now. Alexis Jazz (talk or ping me) 20:10, 24 May 2022 (UTC)[reply]

Bug report

User:Alexis Jazz, I found this issue: Bawl no longer loads, giving the error:

VM204:4253 Uncaught TypeError: Cannot convert undefined or null to object
  at Function.keys (<anonymous>)
  at Object.Bawl.stalkSyncToLocalStorage (<anonymous>:4253:39)
  at <anonymous>:4306:7
  at Object.<anonymous> (<anonymous>:1:984)
  at mightThrow (load.php?lang=en&modules=ext.tmh.OgvJsSupport%2Cplayer%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=fkv6n:60:881)
  at process (load.php?lang=en&modules=ext.tmh.OgvJsSupport%2Cplayer%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=fkv6n:61:544)

Qwerfjkltalk 19:43, 24 May 2022 (UTC)[reply]

Qwerfjkl, see above, I was a bit slow to add that comment. As I knew you had recently done a reset anyway and nobody else has subscriptions enabled (that I know) I didn't write a conversion/updater this time. I've just added a little check (so Bawl would hopefully load at least) but you'll still have to reset your subscriptions. Alexis Jazz (talk or ping me) 20:32, 24 May 2022 (UTC)[reply]
@Alexis Jazz,  Done. ― Qwerfjkltalk 20:45, 24 May 2022 (UTC)[reply]

You messed up! (username+timestamp Qwerfjkl+1653576579844 not found, seq: 0)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":50,"type":"edit","subtype":"locator","id":"Qwerfjkl:1653576522844:WikipediaBWLCLNBots/Requests_for_approval/Qwerfjkl_(bot)_12","origid":"Qwerfjkl:1653576522844:WikipediaBWLCLNBots/Requests_for_approval/Qwerfjkl_(bot)_12","pageTitle":"Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 12","origReplyTo":"Qwerfjkl","origTimestamp":"1653576579844","sectionTitle":"Discussion","seq":0,"sectionseq":0,"freshcomment":true,"freshindent":1}

Page: Wikipedia:Bots/Requests_for_approval/Qwerfjkl_(bot)_12 @ enwiki

Page loaded at: 26/05/2022, 14:36:43

Error occured at: 26/05/2022, 14:50:19 UTC

My settings:

{"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"dateLinksIconAlt":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkSyncToPrefs":true,"stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 13

# of elements processed: 51

Element types processed: SPAN, LI, P, I, DD

Additional information: Username/timestamp combination not found.

Qwerfjkltalk 14:50, 26 May 2022 (UTC) ― [reply]

Qwerfjkl, good question. Based on Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 12 (history) I found the reproduction steps: post a comment, reply to the posted comment, edit the first comment, edit the first comment again. I suspect the cause is this: because performing edits is way slower (server response time) than parsing a little wikitext, Bawl shows your parsed reply or edit before the edit has actually been confirmed by the server. When the edit is confirmed the background color fades away. This greatly enhances the sense of speed, but it's more complicated than you might think. The timestamp of the parsed comment you see isn't accurate, it can deviate a few seconds from the final edit. For locators (which have millisecond precision) this is breaking as that timestamp isn't the same as the one found in the wikitext. To fix this, the "wrong" timestamp is recorded and when the edit is confirmed the true timestamp is extracted from the response and the recorded wrong timestamp is replaced with the final timestamp. It only adjusts the locator timestamp, so if you post a comment at exactly 14:59:59 the signature would say 14:59 (if parsed within a second) but after refreshing the page it'd say 15:00. (if the edit took at least a second to go through) The problem must be related to this somehow, the origTimestamp (which is searched for) from your report is 1653576579844 (16:49:39) but the ID says 1653576522844. (16:48:42) That's nearly a minute later, so where did that come from.. As a side note, Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 12 (Diff 1089954376) shouldn't have been needed. If you edit a comment to add a ping, Bawl adds a userlink to the edit summary. Alexis Jazz (talk or ping me) 23:14, 26 May 2022 (UTC)[reply]
Or it's not really that, despite the complexity. The temporary replylinkparams got overwritten with multiple replies it seems. Should be all fixed now. Alexis Jazz (talk or ping me) 01:03, 27 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
    "int": 271,
    "type": "edit",
    "subtype": "locator",
    "id": "Qwerfjkl:1653572284870:WikipediaBWLCLNBot_requests",
    "pageTitle": "Wikipedia:Bot_requests",
    "pageTitleInt": 257,
    "origReplyTo": "Qwerfjkl",
    "origTimestamp": "1653572284870",
    "seq": 0,
    "sectionTitle": "Substitute inappropriate uses of PH wikidata in article text.",
    "sectionseq": 0 
}

Page: Wikipedia:Bot_requests @ enwiki

Page loaded at: 26/05/2022, 20:30:55

Error occured at: 26/05/2022, 20:32:16 UTC

My settings:

{
    "replySecLink": true,
    "secLinks": true,
    "customSummary": true,
    "livePreview": true,
    "enableCI": false,
    "enableCIThatRun": false,
    "cI": {},
    "cIThatRun": {},
    "cIThatRunCmt": {},
    "pingText": "{{ping|PINGUSER}} ",
    "markNewCmtsSubbed": false,
    "stalkInterval": "0",
    "showRisky": true,
    "useLocator": false,
    "theStranger": true,
    "afterPost": "reload",
    "watchlist": "nochange",
    "watchlistexpiry": "indefinite",
    "ffsWHY": true
}

Skin: vector

# of .BawlLinks: 230

# of elements processed: 281

Element types processed: LI, P, SPAN, INPUT, DD, I, SMALL, S

Additional information: Error triggered by user.

According to the diff button, Bawl was about to eat Qwerfjkl's signature. Also, the "Awwww shit." message was prepended to both .BawlScrewed and #BawlEditNotice. NguoiDungKhongDinhDanh 20:37, 26 May 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, fixed. This only affected the diff, the actual edit wouldn't have eaten the signature. The Awwww shit. should only be added to one element from now on. Alexis Jazz (talk or ping me) 21:50, 26 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":187,"type":"comment","subtype":"legacy","id":"P.T.Đ:10:48, 26 May 2022 (UTC):187","pageTitleInt":183,"origReplyTo":"P.T.Đ","origTimestamp":"10:48, 26 May 2022 (UTC)","seq":0,"pageTitle":"Wikipedia:Village pump (technical)","sectionTitle":"TwinkleMobile isn't working","sectionseq":0}

Page: Wikipedia:Village_pump_(technical) @ enwiki

Page loaded at: 27/05/2022, 06:32:24

Error occured at: 27/05/2022, 06:34:25 UTC

My settings:

{"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"dateLinksIconAlt":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkSyncToPrefs":true,"stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 155

# of elements processed: 290

Element types processed: LI, P, I, INPUT, DD, SPAN, SMALL

Additional information: Error triggered by user. The 'comments not being marked as read' occured, with the earliest comment being at 26 May 2022, 11:48 , by P.T.D. (I've replied to it, so see Replylinkparams above).

Qwerfjkltalk 06:37, 27 May 2022 (UTC)[reply]

Qwerfjkl, awww. :-( So not solved. Just for diagnostic purposes, could you disable "Synchronize subscriptions to account preferences" for a while? If it would still happen with synchronization disabled my assumptions were wrong. Otherwise I just haven't been thorough enough with my last fix. Alexis Jazz (talk or ping me) 09:20, 27 May 2022 (UTC)[reply]
 Done ― Qwerfjkltalk 09:32, 27 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
    "int": 232,
    "type": "edit",
    "subtype": "legacy",
    "id": "Qwerfjkl:06:37, 27 May 2022 (UTC):232",
    "pageTitleInt": 220,
    "origReplyTo": "Qwerfjkl",
    "origTimestamp": "06:37, 27 May 2022 (UTC)",
    "seq": 0,
    "pageTitle": "User talk:Alexis Jazz/Bawl",
    "sectionTitle": "You messed up! (I AM ERROR)",
    "sectionseq": 3
}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 27/05/2022, 06:56:26

Error occured at: 27/05/2022, 06:57:18 UTC

My settings:

{
    "replySecLink": true,
    "secLinks": true,
    "customSummary": true,
    "livePreview": true,
    "enableCI": false,
    "enableCIThatRun": false,
    "cI": {},
    "cIThatRun": {},
    "cIThatRunCmt": {},
    "pingText": "{{ping|PINGUSER}} ",
    "pingTextInSection": "{{ping|PINGUSER}}, ",
    "markNewCmtsSubbed": false,
    "stalkInterval": "0",
    "showRisky": true,
    "useLocator": false,
    "theStranger": true,
    "afterPost": "reload",
    "watchlist": "nochange",
    "watchlistexpiry": "indefinite",
    "ffsWHY": true
}

Skin: vector

# of .BawlLinks: 141

# of elements processed: 233

Element types processed: FORM, INPUT, LI, SPAN, P, DD, I, SMALL

Additional information: Error triggered by user.

When clicking the reply bubble near Qwerjfkl's comment at the section right above, the form was prefilled with his signature. NguoiDungKhongDinhDanh 06:59, 27 May 2022 (UTC)[reply]

...as if I clicked the edit pencil. NguoiDungKhongDinhDanh07:00, 27 May 2022 (UTC)[reply]
Here's what happened when I replied to myself: Special:Diff/1090077800/1090077915. Also, I would like to be able to write functions for myself instead of just regexes and inserts. NguoiDungKhongDinhDanh 07:03, 27 May 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, it wasn't just the prefill, there was also a "Show changes" button when there shouldn't be one. It was completely the edit window. The way I reproduced it: after clicking a pencil the stored params for the speech balloon got overwritten with those for the pencil. Shouldn't happen anymore. Your request to write functions is interesting, essentially you're asking for a plugin functionality of some sort I think. I won't add text fields within Bawl to insert JS, that doesn't feel right, but some sort of plugin support should be doable. Can you give examples of the kind of functions you'd be interested to create so I can get a better idea of what's needed? Alexis Jazz (talk or ping me) 10:09, 27 May 2022 (UTC)[reply]
@Alexis Jazz: When reporting, I thought of an one-line JSON formatter: JSON.stringify(JSON.parse(selectedtext), null, '\t'). NguoiDungKhongDinhDanh 10:12, 27 May 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, I'm guessing User:Alexis Jazz/Bawl/Mumbo jumbo#Modules will be enough information for you to create that. Details may change on this if I need to restructure it to make more sense, but we'll see. Alexis Jazz (talk or ping me) 00:22, 28 May 2022 (UTC)[reply]
Nice! I'd really prefer if Bawl have a small coding area that also handle all the saving process, but this is good enough. Thanks a lot! NguoiDungKhongDinhDanh 04:37, 28 May 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, the issue with a coding area is that a bugged module could easily break Bawl entirely, so you couldn't edit or remove the module the same way you added it. It shouldn't be possible to actually break Bawl from within Bawl. The worst you could (or should be able to) do is hide all the links which would require altering several checkboxes, at which point you could still append #BawlEdit to a page title to force-open the full page editor. I can already see someone posting an untested/bugged module on a village pump with instructions to add it, a user who doesn't know what a common.js is following those instructions and being completely lost when Bawl no longer opens.
That being said, in theory you could write a module that manages modules.. Alexis Jazz (talk or ping me) 20:07, 28 May 2022 (UTC)[reply]
@Alexis Jazz: I actually wrote one based on that idea, just not as simple as the snippet I added to my common.js to parse JSON. NguoiDungKhongDinhDanh 20:17, 28 May 2022 (UTC)[reply]
┌─────────────────────┘
...and it has a button to reload itself. That can't prevent me, or anyone else, from breaking it if I or they wanted to do so, but better than none. NguoiDungKhongDinhDanh 20:19, 28 May 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, I haven't had time yet to take a closer look, but it seems your script holds the answer to how to load Ace (editor). I've been meaning to add that as an option, though I suspect some of Bawl's features won't work anymore with Ace loaded. Also, I've changed some names in modules for consistency. For example "processFunc" is now "processCommentFunc". Alexis Jazz (talk or ping me) 13:39, 2 June 2022 (UTC)[reply]
I stole that loading part from User:BrandonXLF/SVGEditor.js. I haven't found out any documentation about the module, so that's all it got for now. NguoiDungKhongDinhDanh 15:06, 2 June 2022 (UTC)[reply]

What does "Bites DiscussionTools" mean in the feature comparison matrix?

Conflicts? — Guarapiranga  09:25, 27 May 2022 (UTC)[reply]

Guarapiranga, yup. ConvenientDiscussions is self-declared incompatible with DiscussionTools (DT) and instructs the user to disable it. Flow uses a different PageContentModel which prevents DT (and many other things, including Bawl, CD and reply-link) from being loaded. IIRC reply-link (before my fork) assumed signature timestamps weren't followed by any HTML tag. DT adds HTML tags after the signature timestamp, so reply-link broke. Bawl and DT are capable of co-existing if you happen to need it. DT is currently the most widely used tool, so compatibility with DT can be a consideration. Even if only because perhaps you don't want to throw away your old shoes before you're sure the new ones are a good fit. Alexis Jazz (talk or ping me) 09:46, 27 May 2022 (UTC)[reply]
Thumbs up icon Great! Thanks.
Btw, I'm a new user (this is my very first reply with it). This is 'UGE! Good on you for making it.
Here's my contribution: I miss having some sort of a 'like' button to comments in talk pages. Often, I just want to acknowledge someone's reply to me, without actually adding chatter. I just want to nod. Currently, I end up thanking the user for the comment, but that's not quite the same. I'm not quite sure how best to resolve this, but you've clearly dissected and thought through the whole WP talk dynamic more than mostly everyone else here, and may be in the best position to come up with something. Guarapiranga  23:32, 27 May 2022 (UTC)[reply]
Oh, wait, I now see you already included a like button! And I see it's for a public thank; not the nod I wanted, but better than what I had anyhow (I was using Evad37's TimestampDiffs.js and Thanky.js (in fact, I see your script replaces many other scripts for me).
Here's a question: I couldn't find a reply button to your comment after submitting my previous reply. Is that an option? Sometimes, like now, I want to add another reply (rather than editing my first one). I'm still going through the plethora of options you made available, and trying to figure out what they mean. In fact, here's another contribution: some of them are quite cryptic (like the bites that started this convo). And I haven't even activated the expert settings yet! Here are a couple of the ones that weren't evident to me:
  • Add fixed-position button to cycle through new comments
  • With an open reply form, repurpose permalink generator icons in the same section to insert links to comments
Guarapiranga  00:00, 28 May 2022 (UTC)[reply]
Guarapiranga, the public thank is the closest thing we have to a return receipt, I frequently use it for that purpose as well. Within MediaWiki the only non-public way to communicate is through Special:Email, and for notifications I'm limited by what MediaWiki offers. While "thanks" are public, I doubt anybody reads the logs. (well, unless you link the logs from your user page I suppose! so for you it's different. :-) ) So while not suitable if you need confidentiality, it typically won't be noticed by anyone but the recipient. I couldn't find a reply button to your comment after submitting my previous reply. Is that an option? Specifically that, I don't think so. There are some expert settings that can cause some or all speech balloons not to be rendered, but even those won't eat speech balloons that have already been rendered. Can you take a screenshot? It sounds quite odd to me, so this could be the result of a conflicting script/gadget. The feature comparison matrix needs to be updated, parts of it are outdated. And yes, the settings can be quite daunting. Any suggestions for clarification are most welcome. I plan to elevate some more settings to "expert" to make it less daunting. I'll try to improve the description of the settings you mentioned. Alexis Jazz (talk or ping me) 00:54, 28 May 2022 (UTC)[reply]
1. Can you take a screenshot?
Will do, as it comes up. Speaking of which... Can we paste images into Bawl (and it take care of the whole WM upload process in the background)?
2. Any suggestions for clarification are most welcome.
Count on me.
3. I plan to elevate some more settings to "expert" to make it less daunting.
Good idea. I haven't even looked into the expert settings, but if there's a lot there already, you can break into 3 levels: basic, intermediate, expert.
4. I'll try to improve the description of the settings you mentioned.
Cheers. Guarapiranga  04:35, 28 May 2022 (UTC)[reply]
Here's another cryptic one (for me, at least):
  • Add snippet to edit summary
Is that the input box, the link to Bawl, or what? Guarapiranga  11:37, 28 May 2022 (UTC)[reply]
@Guarapiranga, I believe it's the start of the comment e.g. 'Hi, foo, what do you thi... [Bawl]' ― Qwerfjkltalk 21:42, 28 May 2022 (UTC)[reply]
Hmm... Don't think so, Qwerfjkl; it refers specifically to the edit summary. Guarapiranga  03:01, 29 May 2022 (UTC)[reply]
@Guarapiranga, sorry, I mean that fragment of the text would be added to the edit summary. ― Qwerfjkltalk 06:28, 29 May 2022 (UTC)[reply]
I changed it to "Automatically add a snippet of your comment to the edit summary". Alexis Jazz (talk or ping me) 06:35, 29 May 2022 (UTC)[reply]
┌─────────────────────┘
Ah! Gotcha. Guarapiranga  07:17, 29 May 2022 (UTC)[reply]

"BCL" and edit conflicts

Hi @Alexis Jazz!

  • What does "BCL" mean? I see it mentioned in the context of The Signpost :)
  • I think DiscussionTools has some limited edit conflict functionality, might be worth elaborating on the TBD

Cheers! 🐶 EpicPupper (he/him | talk) 21:07, 27 May 2022 (UTC)[reply]

EpicPupper, it means "Bawl Comment Link" and there's a demo at [3]. If you have any details on DT's edit conflict resolution I'll be happy to add it, I don't know all the details of all the things. I've been meaning to test/research more, but there are only so many hours in a day. Alexis Jazz (talk or ping me) 21:51, 27 May 2022 (UTC)[reply]
@Alexis Jazz, thanks for the demo. Could you provide some instructions on how to implement it? I'm a bit confused with the environment 😅 🐶 EpicPupper (he/him | talk) 01:46, 28 May 2022 (UTC)[reply]
EpicPupper, that would be awesome! I'll compile some steps. To make it work for everyone (including people who haven't enabled the script) the script has to be a gadget. Otherwise you'd get a wikitext editor fallback link as scripts can only be loaded by URL if they're in MediaWiki namespace. Alexis Jazz (talk or ping me) 05:51, 28 May 2022 (UTC)[reply]
EpicPupper, I'm drowning in tasks here, I didn't forget you, there's just so much to do. To be clear, is the goal to have a comment link that works for Bawl users and reloads the page with Bawl for those who don't have it running already, or is the goal to have the comment link work for Bawl users and just provide a wikitext editor fallback link? Alexis Jazz (talk or ping me) 14:08, 2 June 2022 (UTC)[reply]
@Alexis Jazz, totally fine! There is no deadline :) I would prefer a comment link that works for Bawl users and provides a wikitext editor fallback for non-Bawl users. Cheers! 🐶 EpicPupper (he/him | talk) 18:32, 2 June 2022 (UTC)[reply]

How do I enable it on VPT?

This must be a popular question, but I didn't find an answer for it. Guarapiranga  04:28, 28 May 2022 (UTC)[reply]

Guarapiranga, actually, somewhat popular indeed. One time the answer was "fix bug that breaks everything when someone posts sections encapsulated in a div". Otherwise the answer is usually "figure out which one of your other scripts is conflicting with Bawl". Does Bawl open when you visit Wikipedia:Village pump (technical)#BawlEdit? Any messages on the browser console? Alexis Jazz (talk or ping me) 05:45, 28 May 2022 (UTC)[reply]
1. Does Bawl open when you visit Wikipedia:Village pump (technical)#BawlEdit?
Yes.
2. Any messages on the browser console?
Yes:
Uncaught InternalError: too much recursion
    safeText [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:1637
    processComment [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:1885
    doPreview [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:2054
    checkIfLivePreviewShouldBeRendered [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:3161
    DelayedPreview [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:3171
    setInterval handler*Bawl.run/Bawl.openReplyForm/</Bawl.checkIfLivePreviewShouldBeRendered [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:3168
    openReplyForm [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:3176
    jQuery 8
    openReplyForm [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:3002
    run [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:6725
    <anonymous> [[:User:Alexis Jazz/Bawl-test]].js&action=raw&ctype=text/javascript:6832
index.php:1637:55

(I'm not quite sure what option translates url to wiki; I couldn't turn it off--Could Bawl perhaps not apply it to text within tags like pre, syntaxhighlight, etc.?). Guarapiranga  06:06, 28 May 2022 (UTC)[reply]

Guarapiranga, "Rewrite external URLs to internal ones where possible, clean internal links" which is an expert setting because there's generally no good reason to disable it. The protection procedure to avoid altering templates, pre, syntaxhighlight, etc can't be used because it also protects URLs. And there really is no good reason for a Wikimedia (or the youtu.be url shortener) URL to appear in tags. I haven't found a real world scenario yet where a URL was rewritten that shouldn't have been. But this doesn't seem to be the problem, it's complaining about safeText, the thing that protects pre, syntaxhighlight, templates, etc. Can you trigger the error reporter (settings, "bug?" link in the top right corner) after receiving the "too much recursion" error and file the report? Alexis Jazz (talk or ping me) 08:54, 28 May 2022 (UTC)[reply]
@Guarapiranga, this is a runaway regex (in safeText) triggered by something in Wikipedia:Village pump (technical)#How to give labels to specific objects in template? I didn't immediately notice because this doesn't happen until you post/preview. You have live preview enabled, so for you it happened right after opening the form. I'm investigating but this wouldn't have prevented you from commenting on VPT, just from editing the whole page or that section as a whole. Alexis Jazz (talk or ping me) 20:15, 28 May 2022 (UTC)[reply]
Found it! (I think). Disabling the WP:LOCO gadget fixed it (on VPT, at least). Guarapiranga  00:57, 29 May 2022 (UTC)[reply]
Humm... Here's a bad one: this reply was inserted before the end of the previous reply to the same comment. One down, two up. I hope your 6000 lines of code don't turn out to be a Hydra 😬 Guarapiranga  01:02, 29 May 2022 (UTC)[reply]
Geez! This one really came out the wrong end. It was a reply to this comment. Guarapiranga  01:09, 29 May 2022 (UTC)[reply]
Wait, now it's in the right place! Perhaps it was an post-submission interface glitch, but the edit went through correctly (and, incidentally, just as I was going to write this happened). Guarapiranga  01:27, 29 May 2022 (UTC)[reply]
Guarapiranga, aaah yes that makes sense. Bawl reads the timestamps from the HTML and searches for them in wikitext when you reply. If you have another gadget or script come in before Bawl and change up the signature timestamps there's nothing left to locate comments in wikitext. Unless, as you've noticed, the comment includes a locator which has proven to be much more resilient. This one really came out the wrong end. Exactly what appeared where? (screenshot?) Parse-in-place can sometimes glitch. The actual edit is typically fine. A hint: just look where the form opens. That's where your reply will be. If that's the wrong place, report it. (but provide as much detail as possible, preferably reproduction steps) I hope your 6000 lines of code don't turn out to be a Hydra 😬 Flow introduced a new PageContentModel to avoid many issues, which worked and also caused its demise, reply-link has a photo of a "bugs" bunny statue and only works on a few select projects, DiscussionTools has a very restricted feature set and eats resources like there's no tomorrow, and ConvenientDiscussions is CPU-hungry and 670K minified. (for comparison: Bawl is ~250K minified, reply-link probably ~45K minified but nobody knows because it doesn't compile) When it comes to tools for wikitext discussions, it seems you can only go two ways: make something with a limited scope, or build a hydra. Alexis Jazz (talk or ping me) 03:12, 29 May 2022 (UTC)[reply]

Feature suggestion: Floating TOC

Alexis Jazz, I noticed Bawl has an option to collapse all non-talk page sections by default and hide ToC. I'm quite a fan of BrandonXLF's FloatingTOC.js; so much so that I forked it (at the time his had some transparency issue, which is fixed on mine--at least for me). That's another (small) feature you might want to consider. Guarapiranga  04:48, 28 May 2022 (UTC)[reply]

Guarapiranga, that's actually less annoying than the sticky TOC the WMF peeps are implementing in Vector 2022. I'll look into it. This is one of those things I'll need to test on all skins, that always complicates things. Alexis Jazz (talk or ping me) 04:59, 28 May 2022 (UTC)[reply]
Mostly  Done, sections don't uncollapse yet when clicking a section title in the ToC. Alexis Jazz (talk or ping me) 08:25, 28 May 2022 (UTC)[reply]
That was fast, Alexis, thanks. Yeah, I was gonna say, most of Brandon's script is options mgt; the essence of it is just a couple of css changes:
position: fixed;
bottom: 10px;
overflow: auto;
... and for me:
left: 19px;
I just couldn't figure out how to put the TOC over the left panel (rather than under it) with css only (so my forking of Brandon's script was simply to append it to the body instead). Guarapiranga  10:09, 28 May 2022 (UTC)[reply]
Yeah, tried moving your floating TOC to the left with css, and ran into the same problem. I don't know how else to fix it but appending the TOC directly to body (if you want to offer the option, as BrandonXLF's FloatingTOC.js does (which, btw, is still incurring on the same transparency/layering problem when moved to the left)). Guarapiranga  03:21, 29 May 2022 (UTC)[reply]
Guarapiranga, I don't understand what you mean with "over the left panel (rather than under it)". Where exactly are you trying to put it? And Bawl already appends the floating TOC to body. I don't know what option from BrandonXLF's script you are referring to, I read your comment several times but I think there's a word missing. I tried BrandonXLF's script but it's throwing JS errors for me, so I I didn't learn much from that. Alexis Jazz (talk or ping me) 06:31, 29 May 2022 (UTC)[reply]
  • I think there's a word missing
    Yeah, that happens a lot to me 😅
  • I don't understand what you mean with "over the left panel (rather than under it)".
    I prefer the TOC on the left, so that when I open it, it covers the left panel, not the article (on legacy vector). If the TOC or the entries on the left panel are long enough--mine is a mile long! 😅--they overlap, but on Brandon's and Bawl's case the TOC looks transparent (I suppose bc it's actually behind the panel, and the panel is transparent, bc changing TOC's opacity does nothing).
  • I tried BrandonXLF's script but it's throwing JS errors for me
    Does mine do too? Guarapiranga  06:47, 29 May 2022 (UTC)[reply]
Guarapiranga, it does, probably a gadget conflict but I'm not too interested, I just wanted to know what you meant. I noticed those transparency/overlap issues when I simply moved the TOC into the corner and subsequently made Bawl append the TOC to <body>. So I don't understand why you're still having issues. Any other gadgets enabled that mess with the TOC? Does your TOC have the "BawlFloatingToC" class? Is it appended to body? Alexis Jazz (talk or ping me) 07:17, 29 May 2022 (UTC)[reply]
  • Does your TOC have the "BawlFloatingToC" class?
    It does.
  • So I don't understand why you're still having issues.
    If you simply change BawlFloatingToC css' property right: 0 to left: 0 (or 19px to align with panel text), and scroll to the top of the page, do you not see both the left panel options and the TOC over each other, as if the one on top were transparent?
  • probably a gadget conflict
    That would explain why Brandon never did anything about that with his Floating TOC.
  • Any other gadgets enabled that mess with the TOC?
    I'll have a look. Guarapiranga  00:41, 30 May 2022 (UTC)[reply]

Question: Is there a keyboard shortcut for submitting from within the InputBox?

DT uses ctrl/cmd-enter. I, for one, use it a lot. Guarapiranga  04:50, 28 May 2022 (UTC)[reply]

Guarapiranga,  DoneAlexis Jazz (talk or ping me) 08:24, 28 May 2022 (UTC)[reply]
Awesome! Thanks, Alexis. So much speedier! Guarapiranga  11:17, 28 May 2022 (UTC)[reply]
Guarapiranga, it's no longer enabled by default. I managed to accidentally post a message before I was done and there is (hopefully was) a problem with modifier keys getting "stuck" when the keyup event isn't registered. Alexis Jazz (talk or ping me) 13:59, 2 June 2022 (UTC)[reply]
That's fine, Alexis. Cheers. Guarapiranga  01:23, 4 June 2022 (UTC)[reply]

Feature request: add anchors to unanchored comments

I noticed only comments from Bawl users (who presumably have enabled this option) have a link icon at the end. Would it be possible to add that to all comments (creating anchors as needed)? CD has that, doesn't it?
As an aside to that, I'd suggest a more discreet icon, or perhaps replacing it entirely by linking the timestamp instead, as Evad37 does in his TimestampDiffs.js (though it links to the diff instead). Guarapiranga  06:37, 28 May 2022 (UTC)[reply]

Guarapiranga, if you have enabled "Permalink generator for comments" you should see the link icon after both "legacy" (as I call them) signatures and locator signatures. If you enabled "When the reply form is open, use comment link icons in the same section to insert anchored links to those comments" you should be able to insert links for both within the same section as well. (though I notice it's not working for EricPupper above so I'll need to look into that) These use the same format as CD.
If you can make a better icon (and release it into the public domain) I'll take a look at it. The current link icon is already the fifth iteration or so. It's quite hard to make a clear inline link icon. I used to link the timestamp, but that caused many problems (which might be solvable) but it wasn't intuitive in the end. Alexis Jazz (talk or ping me) 08:23, 28 May 2022 (UTC)[reply]
Here are a few options from WM's own repo: , ,
Or perhaps it's just a matter of making it a little smaller, say 1.5em:
In addition, it'd be lil' smoother to put it after the like, edit and reply icons, so they don't get carried over when clicking on it, and Bawl opens the link box. Guarapiranga  02:31, 29 May 2022 (UTC)[reply]
Guarapiranga, File:Feather-core-link.svg is fairly okay, but I'd have to include a 1K copyright notice for it, if it were PD I'd probably take it, but it isn't. It also doesn't work so well when scaled up, which could be an issue with the ever rising pixel density. And I actually remember playing around with a tilted link because going diagonal provides more pixels within the same width. It made the icons look messy. File:VisualEditor - Icon - Link.svg is way too abstract, I don't see a link in it, also, 1K copyright notice. File:Chain link icon.svg is not distinguishable from an infinity symbol, at least not at that size. And it's CC BY-SA which doesn't require a massive copyright notice, but it does require attribution "reasonable to the medium or means You are utilizing". IMHO a code comment no end user would ever see isn't all that reasonable. Maybe legally it is, maybe it isn't, but if I don't know for sure there will be very few, if any, people here who would know. Of course, I could ask Lessig, but I hate wasting his time. It would also restrict any screenshot that includes it to BY-SA. Bawl is WTFPL and if at all possible I'd like to keep it that way. Making the icon smaller may be possible, I'll have to try around a bit to see how it works out. Alexis Jazz (talk or ping me) 06:08, 29 May 2022 (UTC)[reply]
Plus, as I turn on the night mode on my laptop, I notice all three icons I suggested are fully black and disappear on a dark background. Yours doesn't, bc it's grey. I just find a tad lil too big, but that's a matter of taste, and I can fix it on my css anyway. Guarapiranga  06:18, 29 May 2022 (UTC)[reply]
Actually, as it turns out, the link icon you put below the edit box is also all black, and fully disappears on a dark background. Guarapiranga  06:53, 29 May 2022 (UTC)[reply]
Guarapiranga, dark mode gadget I presume? Try again. Alexis Jazz (talk or ping me) 09:45, 29 May 2022 (UTC)[reply]
Yeah, that's better. I actually prefer the colour palette from the dark reader extension over the gadget's (plus the keyboard shortcut). Either way, now I can see the link icon under the edit window. Cheers. Guarapiranga  00:30, 30 May 2022 (UTC)[reply]
Another icon suggestion, Alexis: the icon you have for copying the link is typically used for cutting, not copying. The icon for copying is usually like this: Guarapiranga  12:20, 31 May 2022 (UTC)[reply]
@Guarapiranga, this threw me too. ― Qwerfjkltalk 21:10, 3 June 2022 (UTC)[reply]
One more cosmetic suggestion, Alexis: the icons seem misaligned, both inline and, especially, in the tabs at the top. Adding
vertical-align:middle
to .BawlSVG fixed it for me. Guarapiranga  05:14, 2 June 2022 (UTC)[reply]
Guarapiranga, Qwerfjkl, okay all  Done now. Alexis Jazz (talk or ping me) 01:34, 10 June 2022 (UTC)[reply]
Thanks, Alexis; commented it out of my css. I kept
.toc {font-size:85%}
See if you prefer it too. Guarapiranga  02:36, 11 June 2022 (UTC)[reply]
Guarapiranga, sounds like a good use of common/global.css. I don't think a Bawl preference is required for this. Personally I don't feel strongly about 85% either way. Alexis Jazz (talk or ping me) 06:46, 11 June 2022 (UTC)[reply]

Feature request

Alexis Jazz, I'd like it if the page didn't reload when you edit a section (and save it), but just showed the updated section, as when you reply (note that any categories etc. would hopefully be updated as well.
Secondly, I don't think it's possible to reply to a bulleted subsection e.g.

=== Subsection (e.g. !vote) ===
* Yes - Foo
* No - Bar


You can only reply to Foo and Bar, not post a !vote, unless I'm missing something. ― Qwerfjkltalk 09:32, 28 May 2022 (UTC)[reply]

Thirdly, can you allow me to edit new sections (e.g. this one after it was just posted) without reloading the page? ― Qwerfjkltalk 09:35, 28 May 2022 (UTC)[reply]
Qwerfjkl, for a vote there should either be an unindented signed message at the start to reply to (which in your example there isn't) or a BCL link (which isn't implemented on enwiki yet), I tried having a "reply to section" link at some point and abandoned the idea after a while in favor of "reply to section starter" links. IIRC there were some odd cases that I just couldn't work around. Wikitext discussions take many forms. Parse-in-place for sections.. oof. I... oof. It would never leave the experimental state. First I'd have to detect what part of the HTML constitutes the section (including subsections), that should be doable. Then you have categories, something Bawl is blissfully unaware of. Then you have references which will be misnumbered and won't appear in the references section but instead below the section so those would need moving and renumbering. Got any images in your section? Media Viewer will go AWOL. "[ edit ]" (for 2010 wikitext editor, not sure how VE would handle this, I assume equally poorly) links for the section and subsections, what would be better: missing or broken? Did you add or remove a (sub)section? Now all the "[ edit ]" links in subsequent sections are invalidated. Added a (sub)section with the same title? Now all the subsequent edit section-with-Bawl icons are invalidated as well. And all the Bawl icons to reply, edit, subscribe, etc will, of course, go AWOL. For the latter I could remove all the links from the page are reinitialize, which will break everything if archiverbot just passed by while you were editing. And collapsible sections (be it the Bawl feature, any other script/gadget or what Mobile view offers) will go haywire. These are just the issues that would arise from the top of my head. Alexis Jazz (talk or ping me) 19:06, 28 May 2022 (UTC)[reply]
@Alexis Jazz, I've been.thinking about this for a bit, and it is really annoying in CfD (and probably other XfD discussions) - I just want an indent equal to the starting comment. For the in-page update User:BrandonXLF/QuickEdit.js does it somehow, so presumably it's possible (maybe?). ― Qwerfjkltalk 21:09, 3 June 2022 (UTC)[reply]
Qwerfjkl, the in-page update I'm not sure what you're referring to here. Is it possible? Anything is possible. Is it a good idea? Errrr. The indentation on CfD is frankly a bit fucked. Ffs, why is the initial message indented, and why are commenters expected to reply on the same indentation level? I actually patched up Template:XfD relist to resolve a similar XfD problem with relisted discussions. This problem has many sides. Allowing the user to mess with the indentation is not something I want to offer in Bawl by default. It could be done with a module, but I don't want it in the main source, it's asking for trouble. Having some sort of "reply to section" option is also not something I plan to offer. Wikitext isn't standardized and just adding a comment to the bottom is in no way guaranteed to be a desirable result. Adding hax for XfD is also not something I want to do, I try to avoid project-specific hax as much as possible. And since XfD is non-compliant here (to the degree there is such a thing for wikitext), I'm definitely not adding hax to enable that. This leaves only a few options:
1. Fuck it. Reply to the nominator. If others don't do the same, their loss. This is also what DiscussionTools does, so this is not Bawl behaving badly.
2. Fuck the nominator's indentation. Edit the whole page and /:'''Nominator's rationale:'''/'''Nominator's rationale:'''/g:<<Fix XfD>>
3. Convince the XfD peeps to finally bugger off with that indentation for the nominator. They could use some visual indentation that actually isn't indentation in wikitext to achieve the same visual effect. I still think it's dumb for the nominator to be indented in any way, but whatever, at least it'd be compliant.
4. Get them to add BCL's. With a BCL you could append a comment to a section. In that case it's acceptable as a BCL would only be used in places where this is appropriate. Alexis Jazz (talk or ping me) 04:33, 4 June 2022 (UTC)[reply]
@Alexis Jazz, for the 'in-page update ', I mean if the page didn't reload when you edit a section (and save it), but just showed the updated section, as when you reply. QuickEdit.js seems to get the new page wikitext, generate a preview of the new page, and overwrite it on the old one (or.something like that). ― Qwerfjkltalk 08:15, 4 June 2022 (UTC)[reply]
Qwerfjkl, okay, now I get it. Actually, that one is  Done. QuickEdit does some very interesting things. Your initial request I'd like it if the page didn't reload when you edit a section (and save it), but just showed the updated section, as when you reply isn't realistically possible due to the reasons I mentioned above. But that's not what QuickEdit does, QuickEdit always gets a parsed version of the whole page. This isn't necessarily much faster than just reloading, but it may feel faster. Some other scripts may get broken by this, that'll be beyond my control. I should probably add a option back in to get the old behavior for that. To get edit buttons for newly posted sections you'll have to change "After posting:" to "Parse comments in place". (default is "Parse comments and new sections in place") Alexis Jazz (talk or ping me) 08:49, 5 June 2022 (UTC)[reply]
@Alexis Jazz, Also, there doesn't seem to be an edit section 0 (lede) button (which is really the only reason I use the full page editing). ― Qwerfjkltalk 08:58, 5 June 2022 (UTC)[reply]
Qwerfjkl,  DoneAlexis Jazz (talk or ping me) 11:10, 5 June 2022 (UTC)[reply]
┌─────────────────────┘
@Alexis Jazz, 1) Reparsing the page seems to break the 'reply to first post' at the end of the section move to the end of the page. 2) Would it be possible to only reparse the whole page when you edit section, not when you post a comment? ― Qwerfjkltalk 08:03, 6 June 2022 (UTC)[reply]
Qwerfjkl, I noticed the first issue, but it doesn't seem to happen consistently, need to take a closer look. Reproduction steps might help. And second, that's what it should be doing. "parse comments in place" and "parse comments and sections in place" should both reparse the page when editing a full page or section. Are you saying that for you it doesn't? Alexis Jazz (talk or ping me) 08:26, 6 June 2022 (UTC)[reply]
@Alexis Jazz, never mind, I had the wrong setting. trout Self-trout ― Qwerfjkltalk 08:31, 6 June 2022 (UTC)[reply]
 Done Qwerfjkl, the piling up of "reply to section starter" icons at the bottom finally happened again for me so I could analyze it. It's probably fixed. Also I said I should probably add a option back in to get the old behavior for that. which is also done. (setting "Never re-parse the page, just reload instead") Alexis Jazz (talk or ping me) 17:29, 12 June 2022 (UTC)[reply]

You messed up! (open form failed)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":312,"type":"comment","subtype":"locator","id":"Qwerfjkl:1653730334571:User_talkBWLCLNAlexis_Jazz/Bawl","origid":"newSectionForm-InputBox","pageTitle":"User talk:Alexis Jazz/Bawl","origReplyTo":"Qwerfjkl","origTimestamp":"1653730334571","seq":0,"freshcomment":true,"freshindent":1}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 28/05/2022, 09:24:00

Error occured at: 28/05/2022, 09:32:33 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 142

# of elements processed: 312

Element types processed: FORM, INPUT, SPAN, P, LI, DD, I, SMALL

Additional information: Could not open form. Probably because I had just created a section, and not reloaded the page. Qwerfjkltalk 09:33, 28 May 2022 (UTC)[reply]

 Done Qwerfjkl, this is still fallout from the fix for the issue you reported at 14:50, 26 May 2022. The fix for that involved registering new comments in the internal administration, but I forgot to register an associated HTML element. When you try to open a form without an associated element, Bawl.appendToFirstBlockParent causes a JS error to be thrown. The not overly specific "open form failed" (recently added) was successfully triggered when no form was found open 2 seconds after trying to open one. Alexis Jazz (talk or ping me) 09:44, 29 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Now I only see the reply icons for comments posted with Bawl, even on mainspace talk pages, Alexis. Not sure what broke it, whether it was on my end or yours.

Replylinkparams:

{"int":394,"id":"heading-394","type":"heading","subtype":"edit","pageTitleInt":394,"origReplyTo":"","pageTitle":"Talk:Opinion polling for the 2022 Australian federal election","sectionTitle":"Where are those 2PP election numbers from?","sectionseq":0}

Page: Talk:Opinion_polling_for_the_2022_Australian_federal_election @ enwiki

Page loaded at: 28/05/2022, 10:22:40

Error occured at: 28/05/2022, 10:23:24 UTC

My settings:

{"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 29

# of elements processed: 398

Element types processed: LI, SPAN, P, DD, I, SMALL, S

Additional information: Error triggered by user.

Guarapiranga  10:26, 28 May 2022 (UTC) ― [reply]

Even this post is not showing the reply & like icons for me (though my and your other comments on the page are).
Also: clicking Bawl's section edit for this section strangely opens my first topic here in the edit window (I had to resort to WP's snail source editor to write this comment 😄). — Guarapiranga  10:32, 28 May 2022 (UTC)[reply]
Now I see icons on this page, but just up until this section}. I disabled a few scripts on my end, to no avail. — Guarapiranga  10:55, 28 May 2022 (UTC)[reply]
Interestingly, at WP:BPAT I see all reply & like icons, but the timestamps are not formatted (just the raw WP format). — Guarapiranga  11:29, 28 May 2022 (UTC)[reply]
Guarapiranga, I'd guess this was related to when WP:LOCO was loaded which could depend on network delays and cache. Still having any issues with that? I see the issue with the section edit opening for the wrong section, this is probably because there are many similarly named sections here. I haven't found the time to fix that yet. The cause is that section titles in the HTML can't be converted to wikitext to search for. Wouldn't be an issue if section titles were guaranteed to be nothing but plain text. As a workaround I had made the section match check more fuzzy, too fuzzy for this page. Alexis Jazz (talk or ping me) 10:20, 29 May 2022 (UTC)[reply]
I'd guess this was related to when WP:LOCO was loaded
Yes, it was. Not having this issue anymore (after disabling WP:LOCO). Guarapiranga  00:23, 30 May 2022 (UTC)[reply]
As Hemantha indicated, I too miss some of WP:LOCO options though (especially the relative timestamps). Guarapiranga  00:27, 30 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
	"int": 361,
	"id": "heading-361",
	"type": "heading",
	"subtype": "edit",
	"pageTitleInt": 361,
	"origReplyTo": "",
	"pageTitle": "User talk:Alexis Jazz/Bawl",
	"sectionTitle": "You messed up! (I AM ERROR)",
	"sectionseq": 5
}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 28/05/2022, 11:47:42

Error occured at: 28/05/2022, 11:50:48 UTC

My settings:

Skin: vector

# of .BawlLinks: 231

# of elements processed: 378

Element types processed: FORM, INPUT, LI, SPAN, P, DD, I, SMALL

Additional information: Error triggered by user.

I clicked the full-section-edit pencil of the section right above and the form was prefilled by content of #What does "Bites DiscussionTools" mean in the feature comparison matrix?. NguoiDungKhongDinhDanh 12:06, 28 May 2022 (UTC)[reply]

 Done NguoiDungKhongDinhDanh, I applied bug spray. Alexis Jazz (talk or ping me) 01:37, 31 May 2022 (UTC)[reply]

You messed up! (submit_timeout_button)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":1792,"id":"heading-1792","type":"heading","subtype":"edit","pageTitleInt":1792,"origReplyTo":"","pageTitle":"Wikipedia:Village pump (technical)","sectionTitle":"How to give labels to specific objects in template?","sectionseq":0}

Page: Wikipedia:Village_pump_(technical) @ enwiki

Page loaded at: 28/05/2022, 12:43:31

Error occured at: 28/05/2022, 12:57:27 UTC

My settings:

{"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"extendedSigDetect":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 42

# of elements processed: 2505

Element types processed: LI, SPAN, P, I, INPUT, DD, SMALL

Additional information: After attempting to submit, success was not detected after 10 seconds. Sometimes an edit takes longer, but this may indicate something went wrong.

Guarapiranga  12:58, 28 May 2022 (UTC) ― [reply]

Guarapiranga, this was probably that runaway regex from safeText that was triggered by something in that particular section. This shouldn't be happening anymore. Alexis Jazz (talk or ping me) 10:36, 29 May 2022 (UTC)[reply]

You messed up! (open form failed)

Alexis Jazz, you messed up! Or did I? Not sure what I did wrong...

Replylinkparams:

{"int":1163,"type":"comment","subtype":"locator","id":"Guarapiranga:1653786585445:User_talkBWLCLNAlexis_Jazz/Bawl","pageTitle":"User_talk:Alexis_Jazz/Bawl","pageTitleInt":1102,"origReplyTo":"Guarapiranga","origTimestamp":"1653786585445","seq":0}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 29/05/2022, 01:19:27

Error occured at: 29/05/2022, 01:20:53 UTC

My settings:

{"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"reverseSectionOrder":true,"collapsible":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"extendedSigDetect":true,"editorSwitch":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 159

# of elements processed: 1379

Element types processed: FORM, INPUT, LI, SPAN, P, DD, I, SMALL

Additional information: Could not open form.

Guarapiranga  01:21, 29 May 2022 (UTC) ― [reply]

Guarapiranga, does this issue still exist? Any messages on the browser console? You were attempting to reply to your "geez!" comment above, 6 minutes later you succeeded. Maybe something else failed previously or you were very quick: if there is an element with a purple background (which generally indicates an ongoing process or a process that halted) the form won't open by design. If you post a comment and try to open another form after the the form has closed but before the purple background of the new comment fades away, in theory you'd have a small window to trigger an error. I need to detect that situation and handle it better. But I can only speculate as to whether that's how this error was triggered in this case. Alexis Jazz (talk or ping me) 11:22, 29 May 2022 (UTC)[reply]
This one I think was triggered by the script itself; it crashed, I didn't click the bug report link. It opened that pink(?) screen by itself, and asked me to file the report. So I did. Guarapiranga  00:16, 30 May 2022 (UTC)[reply]

Bug: New section opens edit source, and empty box below edit box

Alexis: I enabled the Insert link to add a new section option, but it opens the edit source window. When I exit it, it shows the empty edit box for the new section, though.

Also--unrelated or not--I'm now seeing an empty box below the edit box (I wasn't yesterday).

Replylinkparams:

{"int":4,"id":"newSectionForm-InputBox","type":"newsection","subtype":"InputBox","pageTitle":"User talk:Alexis Jazz/Bawl","preloadparams":[],"preload":"User talk:Alexis Jazz/Bawl/preloadinputboxother","preloadtitle":"Issue"}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 29/05/2022, 03:01:59

Error occured at: 29/05/2022, 03:07:39 UTC

My settings:

{"nSecBottomLink":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"reverseSectionOrder":true,"collapsible":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"extendedSigDetect":true,"editorSwitch":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 168

# of elements processed: 1422

Element types processed: FORM, INPUT, LI, SPAN, P, DD, I, SMALL

Additional information: Error triggered by user.

Guarapiranga  03:09, 29 May 2022 (UTC) ― [reply]

Just realised that tapping </> disappears with the empty box. Then if I press it again, it continues to work switching source and visual editors. Disabling the switching option got rid of it entirely. Today I'm having other problems with Bawl though; I couldn't reply to this comment with it (I'm using WM's std source editor). — Guarapiranga  22:17, 30 May 2022 (UTC)[reply]
Guarapiranga, two unrelated problems. You enabled "Enable switching between editors" which allows you to switch between source mode and VisualLight. (Bawl's store brand WYSIWYG editor) Normally you should only see one editor, but due to an oversight you got both. I probably missed it because when debug mode is enabled this is the expected behavior. The "edit source" window was probably opening because the WMF changed something as Qwerfjkl reported a similar issue below, that should be resolved as well. Alexis Jazz (talk or ping me) 22:59, 30 May 2022 (UTC)[reply]
Cool, seems to be working now. Glad to help identifying an actual bug (not simply an idiosyncrasy on my config). Guarapiranga  04:37, 31 May 2022 (UTC)[reply]
I've noticed another wrinkle, though. Sometimes, when I click on the pen to edit something, the editor window first opens (in source mode) showing html instead of wikimarkup (e.g. <b>bold</b> instead of '''bold'''). I then switch the editor to visual and back, and it shows wikimarkup instead of html. Guarapiranga  11:04, 31 May 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up! I was trying to..

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 29/05/2022, 10:21:39

Error occured at: 29/05/2022, 10:22:44 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 192

# of elements processed: 469

Element types processed: FORM, INPUT, SPAN, P, LI, DD, I, SMALL

Additional information: Error triggered by user. The "Enable full page editing" doesn't seem to work anymore (anywhere).

Qwerfjkltalk 10:23, 29 May 2022 (UTC) ― [reply]

Qwerfjkl, it works for me. Please describe "does not work" as detailed as possible. Is there no icon to edit full pages? Is the new section icon that's usually next to it still there? Does the form not open? Does submitting fail? Any messages on the browser console? Alexis Jazz (talk or ping me) 11:36, 29 May 2022 (UTC)[reply]
@Alexis Jazz, the first one: there is no pencil icon at the top of this page, to edit it. ― Qwerfjkltalk 12:12, 29 May 2022 (UTC)[reply]
Qwerfjkl, um, that's odd.. I found an issue which only triggers when VE (or 2017 source editor) is enabled and I'm guessing was triggered by some recent change from the WMF, but I still saw the icons. I did fix that one which changed the HTML for those buttons, did by any luck anything change? Alexis Jazz (talk or ping me) 12:35, 29 May 2022 (UTC)[reply]
@Alexis Jazz, It only seems to fail on my tablet? I'm not certain about this so I'll confirm later. ― Qwerfjkltalk 18:16, 2 June 2022 (UTC)[reply]
Qwerfjkl, did you generate this error report on your tablet? Bawl stores its settings by default in localStorage, and these override any account or global preferences you set. This is by design to allow different devices to use different settings. So could full editing simply not be enabled on your tablet? You also didn't answer my other question: is the new section icon still there? That one is enabled by default and it's added using the same insertion method as the full page editing icon. If the full page editing icon is missing due to a bug the new section icon should be missing as well. Alexis Jazz (talk or ping me) 00:43, 3 June 2022 (UTC)[reply]
@Alexis Jazz, Sorry for the slow reply, I've been trying to fix a common.js error that crashes my tablet. Anyway, yes, I generated the report on my tablet, I do have full page editing enabled (it only stopped recently - maybe a week?) and the other icon is missing as well. ― Qwerfjkltalk 15:34, 3 June 2022 (UTC)[reply]
Qwerfjkl, it seems with Vector-2022 and a very narrow window (portrait mode?) the icons disappear. Could you test switching to landscape mode (if you are in portrait mode) and/or zooming out? Alexis Jazz (talk or ping me) 12:14, 10 June 2022 (UTC)[reply]
@Alexis Jazz, I can confirm it appears in landscape (as does the TOC). ― Qwerfjkltalk 22:52, 10 June 2022 (UTC)[reply]

Feature request: resolve conflict with Comments in Local Time gadget?

Bawl didn't work for me till I disabled this gadget which I had previously enabled in my preferences. I understand that the basic functionality can also be had with Bawl by the "Display signature dates in local time", but the Local time gadget also provides more options for formatting dates. Hemantha (talk) 12:15, 29 May 2022 (UTC)[reply]

Hemantha, this will require a gadget-specific hack which I'm not fond of, but due to the popularity of "Comments in Local Time" I'll do it in the next update. And only because Comments in Local Time includes the original timestamp in the title, otherwise it would be impossible. I'll also implement some of the missing features. Alexis Jazz (talk or ping me) 13:30, 29 May 2022 (UTC)[reply]
 Done Hemantha, Guarapiranga, I added CommentsInLocalTime hax two days ago and just added a relative time option. Date processing is always messy so there may be bugs. It's not exactly the same as CommentsInLocalTime. I don't think months or days are useful in "5 years, 2 months and 4 days ago", so up to 62 days you just get "n days ago", up to 2 years you just get "n months ago" and beyond that you get "n years ago". Alexis Jazz (talk or ping me) 05:11, 1 June 2022 (UTC)[reply]

You messed up! (submit_timeout_button)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":1210,"id":"heading-1210","type":"heading","subtype":"edit","pageTitleInt":1210,"origReplyTo":"","sectionTitle":"\"Tabs floating\" issue recurring","sectionseq":0}

Page: Wikipedia:Village_pump_(technical)/Archive_197 @ enwiki

Page loaded at: 29/05/2022, 12:18:37

Error occured at: 29/05/2022, 12:20:27 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 829

# of elements processed: 1244

Element types processed: LI, P, SPAN, I, DD, SMALL, S, DEL

Additional information: After attempting to submit, success was not detected after 10 seconds. Sometimes an edit takes longer, but this may indicate something went wrong. I think the content I was trying g to move hadn't fully loaded - there was just grey in the input box.

Qwerfjkltalk 12:21, 29 May 2022 (UTC)[reply]

Qwerfjkl, hmm. I only disabled Bawl.UITextInput while preloading wikitext. I'll disable the whole form so at least you won't have the illusion you can submit. But.. this is impossible. IMPOSSIBLE! You were on Wikipedia:Village pump (technical)/Archive 197, mkay. And you opened Bawl, mkay. But there is no pageTitle in your replyLinkParams! This was never going to work. But even stranger: you were editing a section on an archive page with __NOEDITSECTION__! That's impossible! You can't do that! There is no .mw-editsection! Witchcraft I tell you! Alexis Jazz (talk or ping me) 11:27, 30 May 2022 (UTC)[reply]
@Alexis Jazz, I think I have a user script that ignores NOEDITSECTION, I'll find it in a second. ― Qwerfjkltalk 16:49, 30 May 2022 (UTC)[reply]
I found User:The Voidwalker/alwaysEditSectionLink.js, but I don't think I'm actually running it. ― Qwerfjkltalk 16:53, 30 May 2022 (UTC)[reply]
Qwerfjkl, I don't think that's it either. That script actually produces edit section links that are close enough to the real thing to actually work with Bawl. I wonder what $('.mw-editsection')[1].parentElement.outerHTML is for you on that page. Alexis Jazz (talk or ping me) 22:07, 30 May 2022 (UTC)[reply]

Feature question/suggestion: Does Bawl have an option for enabling keyboard shortcuts?

E.g., ctrl/cmd-B for bold, ctrl/cmd-I for italics, etc. Guarapiranga  00:42, 30 May 2022 (UTC)[reply]

Guarapiranga, done, implemented various shortcuts from VE. Alexis Jazz (talk or ping me) 09:55, 31 May 2022 (UTC)[reply]
Cool! How about ctrl-shift-enter (as opposed to ctrl-enter) to submit minor comments? Guarapiranga  12:13, 31 May 2022 (UTC)[reply]
Guarapiranga,  DoneAlexis Jazz (talk or ping me) 06:34, 1 June 2022 (UTC)[reply]
If it's not too much to ask, could it be made to work from the summary field too? Cheers. Guarapiranga  00:03, 2 June 2022 (UTC)[reply]
Alexis, when I press ctrl-b, the highlighted text shows in the source editor window marked with markupdown (**) rather than wiki syntax ('''). Is that how you intended it? Guarapiranga  00:31, 2 June 2022 (UTC)[reply]
Guarapiranga, and italic shows up as slashes. It's the same as Markdown. The two/three single quotes from wiki syntax are ambigious in many situations, mainly because they overlap, but also because single quotes occur in running text regularly. Rhetorical question: how would you interpret '''they see me ''rollin''', they hatin''''? In writing that example I've accidentally uncovered a MediaWiki bug. I rest my case. Alexis Jazz (talk or ping me) 03:09, 2 June 2022 (UTC)[reply]
Oh, a case you have, Alexis, no doubt. But... do you really expect Bawl's users to be conversant in anything other than mw markup?
Interestingly, after bolding with ctrl-b, and switching the editor to visual and back, the bold markdown is now an html <b> tag. Guarapiranga  04:52, 2 June 2022 (UTC)[reply]
Guarapiranga, I expect nothing. You can use single quote markup as much as you want, in source mode Bawl ignores it. I see you found some cases (related to VisualLight) where it's not handled correctly, this is probably because I made the decision to drop single quote markup after VisualLight was implemented. However, after I fix this, switching between source and visual will cause single quote markup to be converted into Markdown markup. The visual editor contains HTML which gets converted to wikitext, so at that point the original syntax is lost. Frankly, wikitext should follow Bawl here - not the other way around. Single quote markup is a PITA. Alexis Jazz (talk or ping me) 05:18, 2 June 2022 (UTC)[reply]

Feature suggestion: Select+reply = quote

How about an option (or simply default functionality) that opens the reply box with a quote of the selected text (if any), in addition to the mention? Guarapiranga  00:45, 30 May 2022 (UTC)[reply]

Hi Alexis, why did you file an ANI for this? You say it was made "intentionally difficult", linking WP:Notability. What was the incident? Isn't your request for help there more suited for WP:VPT than WP:ANI?
Do you really need the template? I don't really 'get' the green font thing with {{tq}}, so I don't use it; I typically format talk quotes with double quotes or italics, however I see is the clearest in the context (I do like {{tq2}} for quoting policies and RS though). I think you can format Bawl's talk quotes however you like; you don't have to chain it to the template (or, better yet, in the vein of Bawl's fully customisable experience, you can set the default, and give us the option to change it). Guarapiranga  23:57, 1 June 2022 (UTC)[reply]
Guarapiranga, I didn't link WP:Notability, I linked d:Wikidata:Notability. That page literally says "the software intentionally makes this difficult". Technically either a template editor or an administrator could do it, but considering the impact if whoever does this has their internet explode right before they can revert themselves, some increased visibility for the request won't hurt. It's not your everyday edit request. I'm not adding this feature for you, I'm adding it because I believe editors in general may find it useful. If I don't encapsulate the quote in {{tq}} the next feature request will be "now make the quote encapsulated in tq", and that's how I'd want it anyway. You can write another regex to replace tq with whatever you prefer. /\{\{tq\|(([^\}]|\}[^\}])*)\}\}/"$1"/g seems to work. If you intentionally want to use {{tq}} you could use {{Tq}} (capitalized), {{TQ}} or {{talk quote inline}}. Alexis Jazz (talk or ping me) 03:56, 2 June 2022 (UTC)[reply]
I'm not adding this feature for you
You aren't?? 😨
I linked d:Wikidata:Notability.
Need new glasses. 😅
I'm adding it
K. Lemme know when ready to test. Guarapiranga  04:39, 2 June 2022 (UTC)[reply]
 Done Guarapiranga, module on User:Alexis Jazz/Bawl/Mumbo jumbo#Modules to change the encapsulation. (or use a regex) Not enabled by default as I expect it could confuse users. Also note that Bawl is unaware about the exact beginning and end of any given comment (I know, right?), so you could select text anywhere in #mw-content-text and it'll be used for a quote, even if it wasn't written by the user you're mentioning. Alexis Jazz (talk or ping me) 13:51, 2 June 2022 (UTC)[reply]
so you could select text anywhere in #mw-content-text and it'll be used for a quote, even if it wasn't written by the user you're mentioning.
That's a feature, not a defect. 😉 Guarapiranga  07:38, 3 June 2022 (UTC)[reply]

Reverse section order != TOC order

I'm trying out the reverse section order option--it's quite nifty. There is a little nuisance though (which I'm not sure you want to do anything about): the TOC remains in the original order. Guarapiranga  00:48, 30 May 2022 (UTC)[reply]

Guarapiranga,  DoneAlexis Jazz (talk or ping me) 09:53, 31 May 2022 (UTC)[reply]
Awesome! Thanks. Guarapiranga  10:57, 31 May 2022 (UTC)[reply]
Cool, Alexis, but now Bawl is also reversing the order of sections in non-talk WP pages (e.g. WP:RFC). Maybe it was before already, and I didn't have time to notice it. I guess you did that to accommodate WP:VP et al. Not sure how you'll be able to tell them apart though. Guarapiranga  12:11, 31 May 2022 (UTC)[reply]
 Done Guarapiranga, yeah that's rather complicated. Talk namespaces are talk namespaces, mw.config.get('wgExtraSignatureNamespaces') contains Wikipedia: and Help:, the presence of an "add new section" button is an indicator (the absence of "add new section" doesn't guarantee the page is not a talk page though) and so is the presence of locators. As section reversal happens after links have been added, I can also check for the presence of "legacy" signatures at that point, which Bawl now does. Alexis Jazz (talk or ping me) 05:23, 1 June 2022 (UTC)[reply]

You messed up! (open form failed)

Alexis Jazz, you messed up! I was trying to reply to my own comment.

Replylinkparams:

{"int":1642,"type":"comment","subtype":"legacy","id":"Guarapiranga:03:09, 29 May 2022 (UTC):1642","pageTitleInt":1626,"origReplyTo":"Guarapiranga","origTimestamp":"03:09, 29 May 2022 (UTC)","seq":0}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 30/05/2022, 20:49:15

Error occured at: 30/05/2022, 22:01:58 UTC

My settings:

{"nSecBottomLink":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"reverseSectionOrder":true,"collapsible":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{},"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"extendedSigDetect":true,"editorSwitch":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 225

# of elements processed: 1778

Element types processed: FORM, INPUT, LI, SPAN, I, P, DD, SMALL

Additional information: Could not open form.

Guarapiranga  22:03, 30 May 2022 (UTC)[reply]

Guarapiranga, possibly a gadget conflict. What does $('.mw-editsection')[32].outerHTML return on your browser console? Alexis Jazz (talk or ping me) 22:27, 30 May 2022 (UTC)[reply]
"<span class=\"mw-editsection\"><span class=\"mw-editsection-bracket\">[</span><a href=\"https://en.wikipedia.org/enwiki/w/index.php?title=User_talk:Alexis_Jazz/Bawl&amp;section=1&amp;veaction=editsource\" title=\"Edit section: Feature request\" class=\" nonimage\">edit source</a><span><span class=\"mw-editsection-divider\"> | </span><a class=\"Wikiplus-Edit-SectionBtn\" href=\"javascript:void(0)\">QuickEdit</a></span><span class=\"mw-editsection-bracket\">]</span><span id=\"bawlLink-heading-104\" class=\"BawlLinks\"><a href=\"#Feature_request\" id=\"genLink-104\"><span class=\"BawlReplyLink BawlSVG BawlSVGLinkIcon\"></span></a><a onclick=\"Bawl.openReplyForm(Bawl.replyLinkParams[104])\"></a><span><a onclick=\"Bawl.openReplyForm(Bawl.replyLinkParamsHeadingEdit[104])\"><span title=\"Edit section\" class=\"BawlReplyLink BawlSVGEditIcon BawlSVG\"></span></a></span><span><a class=\"BawlSubscribe BawlSVG BawlReplyLink BawlSVGBellIcon\" onclick=\"Bawl.stalkSubscribe(Bawl.replyLinkParams[104],'bellicon',null,event);\"></a></span></span>&nbsp;<span class=\"arxy\" style=\"display:none\"><span class=\"mw-editsection-bracket\">[</span><a data-section=\"1\" onclick=\"$(this).closest(':header').toggleClass('arxyhighlight');$(this).toggleClass('arxylink');\">remove section</a><span class=\"mw-editsection-bracket\">]</span></span></span>"
Guarapiranga  04:34, 31 May 2022 (UTC)[reply]

Feature suggestion: Comment thanks counter

No idea how computationally intensive this would be, but it'd be cool to see a counter of how many people thanked someone for their comment. Guarapiranga  04:41, 31 May 2022 (UTC)[reply]

Guarapiranga, not possible AFAIK. See [4], what was thanked for doesn't appear to be public. Alexis Jazz (talk or ping me) 09:53, 31 May 2022 (UTC)[reply]
I'm baffled. How does Bawl know which comments I've already thanked, showing a red heart, from one session to another then? Guarapiranga  10:59, 31 May 2022 (UTC)[reply]
Guarapiranga, simple. It's sorcery. Actually, take a look at JSON.parse(window.localStorage.BawlThanks), after thanking 500 comments it'll start to develop amnesia. To elaborate, technically it's maybe possible, but the counter would only reflect thanks that were given by Bawl users, there would probably be performance and/or accuracy issues and it would not be trivial to put together. So I don't plan to pursue this. Alexis Jazz (talk or ping me) 04:12, 1 June 2022 (UTC)[reply]

You messed up! (nosuchsection)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":294,"id":"heading-294","type":"heading","subtype":"edit","pageTitleInt":294,"origReplyTo":"","pageTitle":"Wikipedia talk:Correct typos in one click","sectionTitle":"Airing (air circulation)","sectionseq":0}

Page: Wikipedia_talk:Correct_typos_in_one_click @ enwiki

Page loaded at: 31/05/2022, 08:17:03

Error occured at: 31/05/2022, 08:18:40 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 212

# of elements processed: 299

Element types processed: LI, INPUT, P, SPAN, DD, I, SMALL, S

Additional information: API: "There is no section 27." I removed the section in the edit, so that's probably the problem.

Qwerfjkltalk 08:19, 31 May 2022 (UTC)[reply]

Qwerfjkl, your attempted removal wasn't the problem, the problem was Wikipedia talk:Correct typos in one click#Erroneous snippet inclusion which has 2 section headers that aren't section headers because they are in pre-tags. So instead of editing section 25, it became 27. Now I count the section number on a safed version of the wikitext so this issue should be resolved. In theory some problems could still arise if such false section headers would have titles that exactly match the title of the section you are trying to edit. That would be harder to fix as I can't extract the section text from a safed version. Well, I could, but I couldn't easily unsafe that so it would be littered with placeholders. Alexis Jazz (talk or ping me) 10:40, 31 May 2022 (UTC)[reply]
 Done I was wrong about being unable to extract from the safed version. The solution was to insert markers for the start and end of the section in the safed version instead of extracting the section right away. Unsafe it and extract the section using the markers. Maybe I make it sound easy. Alexis Jazz (talk or ping me) 17:15, 12 June 2022 (UTC)[reply]

Question: Can I change the source editor font to monospaced?

I don't remember seeing that option... — Guarapiranga  14:52, 31 May 2022 (UTC)[reply]

 Done Guarapiranga, ctrl+alt+m. Alexis Jazz (talk or ping me) 06:34, 1 June 2022 (UTC)[reply]
Awesome. Is there a way to make it default? Cheers. Guarapiranga  06:37, 1 June 2022 (UTC)[reply]
Guarapiranga, "Use monospace font in editing window by default" on the editing tab. Maybe you need to wait for me to implement the settings filter you requested below to be able to find it. Alexis Jazz (talk or ping me) 07:15, 1 June 2022 (UTC)[reply]
Found it! 😄
Cheers. — Guarapiranga  07:33, 1 June 2022 (UTC)[reply]
Tbc, I didn't request it below. I requested it above 😉 Guarapiranga  07:34, 1 June 2022 (UTC)[reply]
My bad, indeed you did! Alexis Jazz (talk or ping me) 12:12, 2 June 2022 (UTC)[reply]

Feature request: Options search field

You really went for the "fully customisable" experience, Alexis; so much so that I've quite often found myself fumbling through all the options to find the one I had seen (Which tab was it on again?). The fact that some of them simply disappear (rather than displayed as unavailable, "greyed out") when a 'parent' option is disabled (even if it's not a requirement, e.g. sticky TOC vs collapsible sections) only adds to the confusion. How about then including a search field for the options menu, do that users can quickly locate the options they need? — Guarapiranga  15:03, 31 May 2022 (UTC)[reply]

How about adding an option for that? ― Qwerfjkltalk 18:39, 31 May 2022 (UTC)[reply]
😄 Guarapiranga  22:03, 31 May 2022 (UTC)[reply]
Tbc, what I had in mind by a 'search field' is more like a css filter, not an HTML POST. — Guarapiranga  06:42, 1 June 2022 (UTC)[reply]
Guarapiranga,  DoneAlexis Jazz (talk or ping me) 12:13, 2 June 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
	"int": 675,
	"type": "comment",
	"subtype": "legacy",
	"id": "Guarapiranga:06:42, 1 June 2022 (UTC):675",
	"pageTitleInt": 669,
	"origReplyTo": "Guarapiranga",
	"origTimestamp": "06:42, 1 June 2022 (UTC)",
	"seq": 0,
	"pageTitle": "User talk:Alexis Jazz/Bawl",
	"sectionTitle": "Feature request: Options search field",
	"sectionseq": 0 
}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 01/06/2022, 23:54:27

Error occured at: 01/06/2022, 23:54:44 UTC

My settings:

{
	"replySecLink": true,
	"secLinks": true,
	"editFullSection": true,
	"customSummary": true,
	"livePreview": true,
	"enableCI": false,
	"enableCIThatRun": false,
	"enableCIThatRunCmt": false,
	"cI": {},
	"cIThatRun": {},
	"cIThatRunCmt": {},
	"monospace": true,
	"pingText": "{{ping|PINGUSER}} ",
	"pingTextInSection": "{{ping|PINGUSER}}, ",
	"markNewCmtsSubbed": false,
	"stalkInterval": "0",
	"showRisky": true,
	"useLocator": false,
	"theStranger": true,
	"afterPost": "reload",
	"watchlist": "nochange",
	"watchlistexpiry": "indefinite",
	"ffsWHY": true
}

Skin: vector

# of .BawlLinks: 415

# of elements processed: 676

Element types processed: FORM, INPUT, LI, I, SPAN, P, DD, SMALL

Additional information: Error triggered by user.

Replacing <syntaxhighlight>...</syntaxhighlight> with {{#tag:syntaxhighlight}} is not really a good idea. See how Bawl messed up my comment: WP:US/R. NguoiDungKhongDinhDanh 23:59, 1 June 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, please don't say that. You have scripting experience, you know how much time went into this. The only problem here, which I had already noticed in another comment but didn't get around to fixing yet, is one excess {{truenewline}}. Alexis Jazz (talk or ping me) 00:55, 2 June 2022 (UTC)[reply]
I'm not complaining, so I'm sorry if I sounded that harsh. Just asking, how do you find out how many colons to add right before the first letter? NguoiDungKhongDinhDanh 05:09, 2 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, first get the wikitext. Find the comment (signature) you're replying to. Obtain its indentation. Check the indentation of the lines that follow one by one. If a line that follows has an indentation level that is equal to or lower than the indentation level of the comment you're replying to, break and use not this but the previously checked line. Get the indentation level of this line and repeat the last character as not every discussion uses colons. (this explanation is massively oversimplified) Alexis Jazz (talk or ping me) 05:33, 2 June 2022 (UTC)[reply]
@Alexis Jazz: If you managed to find out how many, why can't /\n/g be replaced with \n<indent level>? NguoiDungKhongDinhDanh 12:44, 2 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, where? I'm not following. I assume you're talking about something that you think could be optimized? Alexis Jazz (talk or ping me) 13:22, 2 June 2022 (UTC)[reply]
@Alexis Jazz: Currently, you are replacing line breaks with <br>; however, why don't just replace them with itself plus the indent level you already have, then exclude those in <pre>...</pre>, <nowiki>...</nowiki> and <syntaxhighlight>...</syntaxhighlight>?
For instance, everything until this very word looks like this to Bawl:
"{{ping|Alexis Jazz}} Currently, you are replacing line breaks with {{tag|br|o}}; however, why don't just replace them with itself plus the indent level you already have, <em>then</em> exclude those in {{tag|pre}}, {{tag|nowiki}} and {{tag|syntaxhighlight}}?\nFor instance, everything until this very '''word'''"
See that '\n' over there, right before For instance? Replace it with '::::{{ping|Alexis Jazz}} If you managed to find out <em>how many</em>, why can't <syntaxhighlight lang="ragel" inline>/\n/g be replaced with \n<indent level>? NguoiDungKhongDinhDanh 12:44, 2 June 2022 (UTC)[reply]
By the way, this comment was somehow duplicated. I did not change anything in my preferences, nor is there anything in the console. NguoiDungKhongDinhDanh 14:59, 2 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, duplication, that's very odd. I'll look into that. You said "over there, right before For instance? Replace it with.." followed by a syntaxhighlight. Any chance you remember what you put in there?
however, why don't just replace them with itself plus the indent level you already have My new go-to answer: WP:SOFIXIT. You've ordered one Pandora's box so here you have it:
if ( typeof window.BawlModules == 'undefined' ) { window.BawlModules=[]; }
window.BawlModules.push({'load':['beforeLinkLoad','beforeEdit'],'beforeLinkLoadFunc':function(){Bawl.convertToOneLineCmt = function(a){return a}},'beforeEditFunc':function(){Bawl.postCommentParams.text = Bawl.postCommentParams.text.replace(/\n/g,'\n'+Bawl.commentTextIndent)}});
Just beware that everything will break, your method will just fail in discussions that use asterisk or hashtag indentation, excluding pre/syntaxhighlight/anything from indentation will screw over screenreaders, you won't be able to edit any part of your comment beyond the last line, extracting your comment from wikitext will be real fun if parts of it have no indentation and.. yes, why don't I just replace them with itself plus the indent level you already have? Alexis Jazz (talk or ping me) 02:15, 3 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, sorry if my fuse is a little shorter than it should be. I need to take a break more often. The initial problem was caused by a bad regex. It was only triggered when you had multiple syntaxhighlight tags in one comment which is why I never caught it myself. That should be fixed. I'm unsure about the duplication issue, maybe I accidentally fixed that too, but I'll need reproduction steps for that and I don't know what your original input was. Alexis Jazz (talk or ping me) 12:42, 3 June 2022 (UTC)[reply]
┌─────────────────────┘
IIRC it was:
{{ping|DemonDays64}} You can do that with CSS:\n<syntaxhighlight lang="css">\n#pt-userpage {\n    display: none;\n}\n</syntaxhighlight>\n...or with JS:\n<syntaxhighlight lang="js">\n$('#pt-userpage').remove();\n</syntaxhighlight>\nYou probably know what to do with these.
NguoiDungKhongDinhDanh 14:35, 3 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, I meant what resulted in the duplication. Alexis Jazz (talk or ping me) 15:50, 3 June 2022 (UTC)[reply]
@Alexis Jazz: Here you are, once more: You can do that with CSS:
1. pt-userpage {
    display: none;
}

...or with JS:
$('#pt-userpage').remove();

You probably know what to do with these. NguoiDungKhongDinhDanh 16:38, 3 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, I meant what resulted in Diff 1091155049. Alexis Jazz (talk or ping me) 23:53, 3 June 2022 (UTC)[reply]
Oh, that one. It seems to be a glitch as I never encountered it before, nor has it happened again since. NguoiDungKhongDinhDanh 00:04, 4 June 2022 (UTC)[reply]
@Alexis Jazz: According to the edit summary that Bawl added, I'm pretty sure that I did not clicked the edit one. NguoiDungKhongDinhDanh 08:30, 4 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, according to the edit summary of User talk:Alexis Jazz/Bawl (Diff 1091386448), you did. Alexis Jazz (talk or ping me) 08:33, 4 June 2022 (UTC)[reply]
Huh. So messy of me. May be I need some sleep to get myself back on the ground. NguoiDungKhongDinhDanh 08:35, 4 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, there was a bug a while back that caused the wrong form to open, though that did preload the comment in question so you'd generally notice that. I was worried that bug returned in some form. I added an option "Put speech balloon on form background when commenting and marker when editing a comment" that could help to differentiate between commenting and editing forms. Alexis Jazz (talk or ping me) 09:22, 7 June 2022 (UTC)[reply]
┌─────────────────────┘
@Alexis Jazz: Doesn't this option overlapse with "custom background"? NguoiDungKhongDinhDanh 09:27, 7 June 2022 (UTC)[reply]

Feature request: Auto-mentions on a first name basis

This is very low priority... I love the auto-mention, but I'd love it even more if I could customise it. As you may have noticed it, I like addressing people by their first name, when they provide one (whether the 1st word in their username is really their first name is beside the point). So, every time I talk to you, Alexis, I add Alexis after the pipe in [[User:Alexis Jazz|]]. It'd be cool if I could customise the mention label with a lil regex (User:([^ ]+)) to pick up the first name (it's easier to erase it back to the simple pipe trick if I want the full name, than to type it out every time if I don't). Guarapiranga  00:45, 2 June 2022 (UTC)[reply]

Guarapiranga, "Enable custom regular expressions that are applied to comments only" on the "Editing" tab in settings, add /\[\[User:([^ ]*)( [^\|]*)\|\]\]/[[User:$1$2|$1]]/g. Applies on preview and submit. Combine this with /\[\[User:([^ ]*)( [^\|]*)\| \]\]/[[User:$1$2|$1$2]]/g to enter the whole name by replacing the first name with a space. Alexis Jazz (talk or ping me) 01:21, 2 June 2022 (UTC)[reply]
Awesome, Alexis! Worked like a charm. To those who prefer the other way around--default to full name, space for first name only, I guess one only really needs one regex: /\[\[User:([^ ]*)( [^\|]*)\| \]\]/[[User:$1$2|$1]]/gGuarapiranga  04:40, 2 June 2022 (UTC)[reply]

You messed up! (open form failed)

Error log

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:
{"int":2384,"type":"comment","subtype":"locator","id":"Alexis_Jazz:1654139394297:User_talkBWLCLNAlexis_Jazz/Bawl","pageTitle":"User_talk:Alexis_Jazz/Bawl","pageTitleInt":2317,"origReplyTo":"Alexis_Jazz","origTimestamp":"1654139394297","seq":0}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 02/06/2022, 04:41:36

Error occured at: 02/06/2022, 04:45:40 UTC

My settings:
{"nSecBottomLink":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"reverseSectionOrder":true,"collapsible":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTime":true,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"UIfontSize":"0.875em","customSummary":true,"livePreview":true,"AWBtypos":true,"cI":{},"cIThatRun":{},"cIThatRunCmt":{"0":"%2F%5C%5B%5C%5BUser%3A(%5B%5E%20%5D*)(%20%5B%5E%5C%7C%5D*)%5C%7C%5C%5D%5C%5D%2F%5B%5BUser%3A%241%242%7C%241%5D%5D%2Fg","1":"%2F%5C%5B%5C%5BUser%3A(%5B%5E%20%5D*)(%20%5B%5E%5C%7C%5D*)%5C%7C%20%5C%5D%5C%5D%2F%5B%5BUser%3A%241%242%7C%241%242%5D%5D%2Fg"},"monospace":true,"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"extendedSigDetect":true,"watchlistexpiry":"indefinite","editorSwitch":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 300

# of elements processed: 2988

Element types processed: FORM, INPUT, LI, SPAN, I, P, DD, SMALL

Additional information: Could not open form.

Guarapiranga  04:47, 2 June 2022 (UTC)[reply]

Feature request: Auto-mention when adding new section on a user's talk page

Nuff said. Guarapiranga  04:55, 2 June 2022 (UTC)[reply]

Guarapiranga, I'll write a module that does this, at least it'll make for an interesting module example. It's pointless though. The recipient is already getting a notification because of the talk page message.
'nuff said. Alexis Jazz (talk or ping me) 05:43, 2 June 2022 (UTC)[reply]
Bawl takes addons?! Crafty!
Yeah, ok. I thought it was an oversight, not a deliberate choice. Well, FWIW, even if redundant, it's still nice to say people's name when talking to them... Alexis. Guarapiranga  05:47, 2 June 2022 (UTC)[reply]
Especially when initiating conversation. Guarapiranga  05:48, 2 June 2022 (UTC)[reply]
Guarapiranga, see User:Alexis Jazz/Bawl/Mumbo jumbo#Modules. I realized that on user talk subpages you actually have a good point as you don't get notified about those, so I'll make sure to add that to auto-mention. Alexis Jazz (talk or ping me) 13:27, 2 June 2022 (UTC)[reply]

I'm just as happy opening a msg form just to then click the settings icon, but since Bawl has so many features that go beyond the msg box (e.g. collapsible sections, timestamps, etc.), that you may want to consider adding another link somewhere else (More menu, Tools left panel, or even a cog icon next to the New section one). Guarapiranga  05:54, 2 June 2022 (UTC)[reply]

 Done Guarapiranga, added fake tab to Special:Preferences. Alexis Jazz (talk or ping me) 08:09, 7 June 2022 (UTC)[reply]
A fake Preferences tab! I didn't see that coming. Thanks! Guarapiranga  22:22, 7 June 2022 (UTC)[reply]
Oh, wait, where is it? I don't see it. The tabs I see are:
Guarapiranga, oh damn it. :-( No scripts or gadgets can ever be loaded on Special:Preferences it seems. :-/ Dark mode doesn't work there either. Well that was a waste of time.. Alexis Jazz (talk or ping me) 02:53, 8 June 2022 (UTC)[reply]
Guarapiranga, scrapped the fake tab. If I can't have it on Special:Preferences which was a reasonable place for it, so be it. I dislike litter, settings are not something that should have a dedicated link on every single page. For reference, mw.util.addPortletLink can be used for this kind of thing, but I'd rather not. Alexis Jazz (talk or ping me) 05:56, 8 June 2022 (UTC)[reply]

Bug report - I dont even know

Alexis Jazz: During a conversation at Module talk:Excerpt, I noticed that the person who I was talking to who was using Bawl! kept accidentally replacing the previous section with a duplicate of the current section (???). I'm assuming this is the result of Bawl!, as I dont see how else this would've happened. Any ideas as to what the hell happened there? (Example diff). Aidan9382 (talk) 10:03, 4 June 2022 (UTC)[reply]

Aidan9382, Bawl selected the wrong section number. Must be a bug, I recently made some changes to that, I'll look into it. You'd be surprised how difficult it is to obtain a section number. Alexis Jazz (talk or ping me) 10:15, 4 June 2022 (UTC)[reply]
 Done, see Module talk:Excerpt (Diff 1091456363) for details. Alexis Jazz (talk or ping me) 13:01, 4 June 2022 (UTC)[reply]

New sections in "Bawl!"

@Alexis Jazz:, Whenever I want to start a new section it just opens up an editing area at the bottom of rather than bringing me to a separate new section editing page. I can see why this is beneficial but there are no ways to circumvent this.

It might be wise that there's an option that if you click twice (2x) on the text balloon above that it will do it in the traditional "New section" way. --Donald Trung (talk) 08:30, 4 June 2022 (UTC)[reply]

Donald Trung, Imma move this section if you don't mind..
This is part bug and part DiscussionTools (DT) being crappy. The bug part is that I only checked if you have DT's "new topic" option enabled when I should have also checked if you have DT's beta features enabled which "new topic" is a part of. If you didn't have the beta feature enabled but did have the "new topic" option selected, which you actually can't see or change when the DT's beta features are disabled, Bawl assumed DT's "new topic" feature was active when in fact, it was not. This was probably the case for you.
The DT being crappy part is that when DT's "new topic" feature actually is active, it will perform a hostile takeover of pages with the URL parameters action=edit&section=new. Instead of an edit window, you are suddenly viewing the page and DT appends its "new topic" form. In this event, the "new section" wikitext editor is not available. Maybe there's a hidden feature for it, but there's certainly no obvious way. This is why Bawl didn't offer a way to open the traditional "new section" page: because it believed DT's "new topic" feature was active, and when DT's "new topic" feature is active the traditional "new section" page is inaccessible.
It should be better now. Alexis Jazz (talk or ping me) 10:07, 4 June 2022 (UTC)[reply]
Alexis Jazz, Ah, that explains a lot. I really hope that this new feature won't completely replace the old one. It's like with the MediaSearch on the Wikimedia Commons, while adding a lot of improvements, basically broke most of the search function and made in impossible to make new pages through redlinks in the search feature. It's like in that case it was so focused on content consumption that they forgot about content creation. In this case they forgot how handy it could be to actually have a separate window and that wasn't even option by holding the button / right-clicking the button. There's an inherent disconnect between the people who make these features and the majority of the people that use them. But thanks for fixing it, it made starting new topics on long pages a lot easier. --Donald Trung (talk) 06:54, 6 June 2022 (UTC)[reply]
Donald Trung, indeed. I poked around a bit, figured they wouldn't do the hostile takeover when there's a preload set as DT -predictably- doesn't support those. And this is indeed true. So as long as they don't add support for that, the wikitext editor is accessible. Bawl detects this situation (DT beta+new topic enabled, Bawl's "hide DT" setting enabled and the URL matching the expected pattern) and appends preloadparams (that do nothing as there's no preload page set) to force the wikitext editor to open on long-press/middle-click/etc on Bawl's "new section" icon. Alexis Jazz (talk or ping me) 10:06, 6 June 2022 (UTC)[reply]
Donald Trung, but these events actually inspired me to do a little takeover of my own. But this one is non-hostile: Bawl loads automatically on section=new (but not if you get there through a Bawl bug report or by long-pressing Bawl's new section icon). But unlike DT you can always just press cancel to get the regular editor. Alexis Jazz (talk or ping me) 12:29, 6 June 2022 (UTC)[reply]

You messed up! (submit_timeout_button)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":311,"type":"comment","subtype":"legacy","id":"Marcocapelle:06:42, 19 May 2022 (UTC):311","pageTitleInt":303,"origReplyTo":"Marcocapelle","origTimestamp":"06:42, 19 May 2022 (UTC)","seq":0,"pageTitle":"Wikipedia:Categories for discussion/Log/2022 May 12","sectionTitle":"Category:Weak interaction","sectionseq":0}

Page: Wikipedia:Categories_for_discussion/Log/2022_May_12 @ enwiki

Page loaded at: 04/06/2022, 17:27:47

Error occured at: 04/06/2022, 17:29:18 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg","2":"%2F%5C%2F%5C%2F%2F''%2Fg","3":"%2F%5C*%5C*%2F'''%2Fg"},"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"theStranger":true,"killswitch":false,"watchlistexpiry":"+7 days","saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 297

# of elements processed: 346

Element types processed: SPAN, DD, I, SMALL, LI, P, S

Additional information: After attempting to submit, success was not detected after 10 seconds. Sometimes an edit takes longer, but this may indicate something went wrong. Might be because I attempted a module. Qwerfjkltalk 17:30, 4 June 2022 (UTC)[reply]

Well, I modified the module.and now it just doesn't work:
window.BawlModules.push({'load':['beforeLinkLoad','beforeEdit'],'beforeLinkLoadFunc':function(){Bawl.fixIndent = function(a){return a}},'beforeEditFunc':function(){if(Bawl.commentTextIndent=='**'){Bawl.commentTextIndex='*'}}});
 ― Qwerfjkltalk 21:25, 4 June 2022 (UTC)[reply]
By the way, Bawl changed some ** and / / in that code snippet, and again here, which is a.minor bug (I used <!---> to break up the text).
Off-topic, is there be some way to insert a 'paste' button, or more generally, tie functions to buttons? ― Qwerfjkltalk 21:33, 4 June 2022 (UTC)[reply]
Qwerfjkl, By the way, Bawl changed some ** and / / in that code snippet, and again here, which is a.minor bug Uh oh! Wait, what's this? "2":"/\\/\\//''/g","3":\"/\\*\\*/'''/g" *hands one trout to Qwerfjkl* (plus a trout Self-trout because there's a bug here as well)
is there be some way to insert a 'paste' button, or more generally, tie functions to buttons? By "button" do you mean a UI button (like a custom insert) or a keyboard button? Actually I guess for both the answer is "a module". Your module can't work I think. It appears to be based on the SOFIXIT example module above which overwrites Bawl's convertToOneLineCmt function, which is a terrible idea btw. You create an unused "fixIndent" function instead. Before the actual edit takes place, you set commentTextIndex if the indentation consists of two asterisks. I've never heard of commentTextIndex so that wouldn't do anything either. On User:Qwerfjkl/common.js (Diff 1091497381) you tried to perform a .replace on commentTextIndex, but commentTextIndex is undefined so that threw a JS error, halting the script. *hands over another trout* I hope you like fish. :-) Alexis Jazz (talk or ping me) 01:51, 5 June 2022 (UTC)[reply]
@Alexis Jazz, this is why I don't write code on a tablet trout Self-trout. ― Qwerfjkltalk 08:59, 5 June 2022 (UTC)[reply]

Bug report

Alexis, I found this issue: When typing a msg in the middle of the text, the cursor keeps jumping to the end of it. I reckon it's just after regex.
Also, there's this nuisance that when breaking the text with ↵ Enter to open a new line, the newline keeps getting replaced out (as part of the same regex I reckon). Guarapiranga  21:04, 5 June 2022 (UTC)[reply]

Guarapiranga, I'm not sure I can solve this properly. Sure, technically anything can be solved, but am I willing to through the trouble? Here's the issue: VisualLight is clever but influenceable. Live preview is a little problem child. I dislike the concept of live previews in general: they are not very responsive by design due to network delays, I find them distracting and they require a disproportional amount of resources, having the whole message parsed dozens of times for a single comment. That's mostly a strain for the WMF servers to handle, but that doesn't mean I don't care at all. Also, on battery-powered devices, the constant stream of traffic could prevent the network interface from entering some standby state as you type, thus draining your battery. I implemented it anyway because some people love it, but I don't use it myself. When you put the clever but influenceable VisualLight in a room together with live preview, they start tearing down the walls. It's my fault, I probably shouldn't have allowed you to configure it that way to begin with. The solution I implemented here is to simply disable live preview when VisualLight is active.
Some further technical insight (stop reading whenever you get bored): preview (live or otherwise) sends wikitext to the server to be parsed. Wikitext is kept in the source field. (Bawl.UITextInput) To make a preview happen with VisualLight enabled, the visual field is synced to the source field first which involves transforming HTML to wikitext. (Bawl.syncToSource) Complicated enough. Any change to source field will trigger the source field to get synced to the visual field. (Bawl.syncToVisual) Various operations (for example inserts and AWB RegExTypoFix) are applied to the source field only and VisualLight counts on the synchronization. This generally resets the cursor (caret) position, which isn't a problem because the field loses focus when you press "preview" or "submit" anyway. But not with live preview. With live preview, you'd expect to keep focus. In source mode that's doable because nothing has to be synced and there is only one node. In visual mode, you have an anchor node, a focus node, an offset in both and to complicate matters further the nodes are destroyed when you sync to visual. Probably the primary reason for your issue is that in visual mode a newline results in the creation of an empty div. (though this might vary depending on the browser) After syncing back and forth, this div becomes a break instead and it seems browsers don't quite deal with this as expected if no text follows the break. Alexis Jazz (talk or ping me) 07:27, 6 June 2022 (UTC)[reply]
But I'm using source editing... Guarapiranga  10:58, 6 June 2022 (UTC)[reply]
Guarapiranga, so this didn't happen always but only when a regular expression was applied. Please try to be as descriptive as possible when filing a bug report and state literally and exactly under what conditions something happens. Anyway,  Done. Alexis Jazz (talk or ping me) 06:30, 8 June 2022 (UTC)[reply]
That's what I tried to do. Anyway, thanks. Guarapiranga  07:20, 8 June 2022 (UTC)[reply]
Guarapiranga, I'm sorry, you found many issues and that's really really good, but it makes me wonder if this will ever leave the development stage. Every time I thought I was nearly done another issue arises. It's frustrating and it makes me grumpy. I should have just read the report better and not make assumptions about when something happens. Alexis Jazz (talk or ping me) 07:30, 8 June 2022 (UTC)[reply]
You're being too hard on yourself, Alexis. I'm still pretty excited about Bawl; otherwise I wouldn't be chipping in with the testing, reports and suggestions. To me, those are wrinkles we're ironing out. Guarapiranga  09:31, 8 June 2022 (UTC)[reply]

You messed up! (open form failed)

Alexis Jazz, you messed up! I was trying to reply to a comment.

Replylinkparams:

{"int":239,"type":"comment","subtype":"legacy","id":"RandomCanadian:01:15, 6 June 2022 (UTC):239","pageTitleInt":119,"origReplyTo":"RandomCanadian","origTimestamp":"01:15, 6 June 2022 (UTC)","seq":0,"pageTitle":"Wikipedia:Templates for discussion/Log/2022 June 4","sectionTitle":"Template:Results of the 2022 Australian federal election (House of Representatives)","sectionseq":0}

Page: Wikipedia:Templates_for_discussion/Log/2022_June_4 @ enwiki

Page loaded at: 06/06/2022, 02:54:05

Error occured at: 06/06/2022, 02:58:50 UTC

My settings:

{"nSecBottomLink":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"reverseSectionOrder":true,"collapsible":true,"autoCollapse":true,"collapArticleDefaultFloatingToC":true,"dateLinksLocalTimeRelative":true,"dateLinksLocalTimeAbsolute":false,"dateLinksLocalTimeWeekday":true,"tosNag":false,"pingDropDown":true,"wrongUI":true,"customSummary":true,"livePreview":true,"quoteSelect":true,"AWBtypos":true,"cI":{},"cIThatRun":{"0":"%2F%5C%5B%5C%5BU%3A%2F%5B%5BUser%3A%2Fg","1":"%2F%5C%5B%5C%5BUser%3A%5Cs*(.%5B%5EA-Z%20%5D*)(%5BA-Z%20%5D%5B%5E%5C%7C%5D*)%5C%7C%20%5C%5D%5C%5D%2F%5B%5BUser%3A%241%242%7C%241%5D%5D%2Fg"},"cIThatRunCmt":{"0":"%2F%20class%3D%22%22%2F%2Fg"},"monospace":true,"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkSyncToPrefs":true,"stalkTackOnEcho":true,"stalkInterval":"2","showRisky":true,"submitShortcut":true,"extendedSigDetect":true,"watchlistexpiry":"indefinite","editorSwitch":true,"saveTo":"globalprefs"}

Skin: vector

# of .BawlLinks: 28

# of elements processed: 271

Element types processed: H1, LI, SPAN, P, DD, I

Additional information: Could not open form.

Guarapiranga  02:59, 6 June 2022 (UTC)[reply]

Guarapiranga, can't reproduce it. Can you? Alexis Jazz (talk or ping me) 10:20, 8 June 2022 (UTC)[reply]
It happens off-and-on, sort of randomly, Alexis. I'm not yet sure what are the circumstances (which in my case are further compounded by far too many scripts and extensions). Guarapiranga  22:18, 8 June 2022 (UTC)[reply]
Guarapiranga, if it's really random, as in, the very same action (like "load page X, click speech bubble Y") not consistently resulting in breakage I would guess it's a script/gadget and the error only happening with a certain load order. (which depends on network delays) If it happens again, please look at the browser console in case there's a JS error there. If the script load order is the issue, you could try wrapping the loading line for Bawl in your common.js in a delay of a few seconds so Bawl would load last, or wrap everything else in a delay to ensure Bawl loads first. That might help to narrow it down. I did add a check recently in Bawl.appendToFirstBlockParent that could cause a JS error because it tried to getComputedStyle an undefined under certain circumstances, so if it doesn't happen anymore maybe that was it. Alexis Jazz (talk or ping me) 05:46, 9 June 2022 (UTC)[reply]

You messed up! (username+timestamp Alexis_Jazz+1654337241140 not found, seq: 0)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":848,"type":"comment","subtype":"locator","id":"Alexis_Jazz:1654337241140:User_talkBWLCLNDonald_Trung","pageTitle":"User_talk:Donald_Trung","pageTitleInt":842,"origReplyTo":"Alexis_Jazz","origTimestamp":"1654337241140","seq":0,"sectionTitle":"New sections in \"Bawl!\"","sectionseq":0}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 06/06/2022, 06:48:06

Error occured at: 06/06/2022, 06:53:33 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 259

# of elements processed: 886

Element types processed: H1, FORM, INPUT, LI, I, SPAN, P, DD, SMALL, DEL

Additional information: Username/timestamp combination not found.

I was literally writing the previous edit when it didn't allow me to click "publish", really odd.

--Donald Trung (talk) 06:53, 6 June 2022 (UTC)[reply]

 Done Donald Trung, page title in locator wasn't adjusted for an added comment while moving the section. Alexis Jazz (talk or ping me) 09:17, 6 June 2022 (UTC)[reply]

Bug report: No signature on edit preview

Since reply preview shows the signature, I was confused as to whether Bawl would erase it. Guarapiranga  02:59, 8 June 2022 (UTC)[reply]

Guarapiranga, that's not a bug as you are only editing the comment contents, but  Done anyway. Alexis Jazz (talk or ping me) 07:01, 8 June 2022 (UTC)[reply]

You messed up! (insertion point RegExp no match)

Alexis Jazz, you messed up! I was trying to...

Replylinkparams:

{"int":2509,"type":"comment","subtype":"legacy","id":"Modernist:23:51, 8 June 2022 (UTC):2509","pageTitleInt":2506,"origReplyTo":"Modernist","origTimestamp":"23:51, 8 June 2022 (UTC)","seq":0,"pageTitle":"User talk:Modernist","sectionTitle":"Revert on British terms on Rococo","sectionseq":0}

Page: User_talk:Modernist @ enwiki

Page loaded at: 08/06/2022, 23:52:19

Error occured at: 08/06/2022, 23:53:01 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 473

# of elements processed: 2510

Element types processed: H1, P, I, LI, SPAN, DD, SMALL, INPUT

Additional information: Insertion point not found.

AdrianHObradors (talk) 23:54, 8 June 2022 (UTC)[reply]

I was just replying using the blue bubble. (I'm loving bawl by the way). My reply was "I see, that explains it. Thanks Modernist" Edit: Error still continues, I had to reply using "edit source". AdrianHObradors (talk) 23:55, 8 June 2022 (UTC)[reply]
AdrianHObradors, thank you for the praise. :-) I can reproduce the issue. (this is always good news) Bawl determines section numbers on its own (because section numbers change if archiverbot passes by while you are reading) and this is where the error is. Bawl determined the section number as 294 when it is in fact 295 and it extracted the text for section 292 instead of 295. That's probably two bugs, I suspect one of them is something that was already on my radar as a theoretical issue. (a slight difference in how the section number is determined and how section text is extracted) It's a very long page and it probably contains one or more unclosed tags or code examples that somehow confuse Bawl. I'm looking into this. Alexis Jazz (talk or ping me) 06:08, 9 June 2022 (UTC)[reply]
Alexis Jazz, glad to hear! And what can I say, if instead of commenting I get a kitty, that is a win in my book :) AdrianHObradors (talk) 10:06, 9 June 2022 (UTC)[reply]
Sorry, seems I am not able to reproduce it! :( AdrianHObradors (talk) 10:06, 9 June 2022 (UTC)[reply]
 Done AdrianHObradors, that was more complicated than anticipated but I think it works now. Problems were caused by two threads: User talk:Modernist#Belated best wishes for a happy 2018 because there was an assumption in Bawl that any line starting with an equal sign would be a section header. Generally that's true and BoringHistoryGuy clearly inserted those equal signs in error, but it's not a section. The other issue was the one that was already on my radar, User talk:Modernist#Leonardo da Vinci contains a bunch of section titles in pre tags. Both issues should be resolved now. Alexis Jazz (talk or ping me) 22:40, 9 June 2022 (UTC)[reply]
Alexis Jazz, woah, that was fast! I wasn't expecting such a quick fix! Thank you so much and you are amazing! AdrianHObradors (talk) 08:49, 10 June 2022 (UTC)[reply]

Bug report: Bawl doesn't get tables

When I include a table in my reply, Bawl doesn't quite get it, replacing newlines with <br>, and once I fix it with another editor, if I attempt to edit it with Bawl, it doesn't include the table as part of the reply (even with a Bawl-tagged signature at the end of the comment). Guarapiranga  06:27, 9 June 2022 (UTC)[reply]

This may be related: editing my comment here shows only the signature; the list in the msg seems to break Bawl's understanding of where the comment begins. Guarapiranga  06:53, 9 June 2022 (UTC)[reply]
Guarapiranga, not a bug. This is a feature request. DiscussionTools doesn't support this either and I doubt anything does. When you try to post a table with DT, this happens. And when you replied to that with DT, the result was a heaping pile of dung. This was a Phabricator task which is a prime example of WMF excellence: they patched the buggy behavior and... BAZINGA! They didn't fix anything, they just detect the condition and serve an error message. An error message without a kitty. But this is understandable, obviously this is the best that's technically achievable, there is absolutely no way that scratch that Bawl doesn't care about your broken tables.
With colon indentation the table itself can be fixed relatively easily with {{Truenewline}} but alas this doesn't work with asterisk indentation so it's useless. It would only confuse users when tables work with one indentation type but not the other. Currently the solution for this is "use HTML". (or BBCode) The only way I see to support wikitables is by full conversion to HTML and back. That is, unless there's a way to make wikitables on a single line with asterisk indentation work. But wikitable syntax is HELL. Procrastination is a wonderful thing.
You have manually altered your comment and added line breaks. You can't expect Bawl to still detect your whole comment. One comment, one line - that's a rule and it shall not be broken. I ripped multiline comment support out of Bawl at an early stage and I didn't regret that decision for a second since. Just edit the whole section if you need to edit multiline comments. Alexis Jazz (talk or ping me) 01:05, 10 June 2022 (UTC)[reply]
You have manually altered your comment and added line breaks. You can't expect Bawl to still detect your whole comment.
Don't you anchor the beginning and end of comments by their signatures? Why care about linefeeds (if you don't mind me asking)? — Guarapiranga  05:34, 13 June 2022 (UTC)[reply]
Guarapiranga, the end? Yes. The beginning? No. Should I? Meh, maybe. Don't need it that badly and it might confuse non-Bawl users who read the source. More important than that, I really really really really don't want to get involved with multiline indentation. There's not enough Tylenol in the world to deal with that. And when you edit a comment, it's not as straightforward as just dumping the wikitext in Bawl.UITextInput. (but for section editing, it is!!) Ideally what you originally entered comes right back. There's still work on that front, but with multiline I'd have to start asking questions about indentation. Include the indentation in the edit window? Hell no. Store the indentation elsewhere and re-insert it later? Errr, what do I do with newly added lines in that case?
One comment, one line. Alexis Jazz (talk or ping me) 18:13, 13 June 2022 (UTC)[reply]
Yeah, FWIW, one thing I don't really like about Bawl is this translation from wikitext to html, Alexis. I know they render the same, but as a wiki editor, whenever I want to reedit my comment (on any other editor), I end up rewriting it back to wikitext, so I can 'see' through the code. I understand you need this for some of the processing (bc of ambiguities in wikitext, etc.), but perhaps you could translate it back to wikitext when publishing the comment (since html is, presumably, unambiguous). Guarapiranga  01:21, 14 June 2022 (UTC)[reply]
Guarapiranga, the only way this could possibly happen, ever, at all, is if I took away the ability to edit comments. And even if I did that, there would be some other complications. The real question is why you feel the need to edit your comment using a different editor instead of just editing the comment. If there's a reason other than force of habit perhaps that could be worked on.
And if you can do better, just fork it. It's WTFPL. Doesn't get more free than that. I even wrote an example module that screws up comments. Alexis Jazz (talk or ping me) 10:56, 14 June 2022 (UTC)[reply]
My work on tables has revealed all kinds of problems with multiline indentation. Pretty sure I read somewhere MediaWiki has a special exception for tables indented with colons. I definitely have no plans to support multiline indentation in any form, this project is complicated enough already. Alexis Jazz (talk or ping me) 10:24, 18 June 2022 (UTC)[reply]
Guarapiranga, many hours of swearing later this is  Done. Mostly. Probably. Some syntax may not work, but various examples from Help:Table seemed okay. For some reason MediaWiki thinks ! Row header A !! Cell B !! Cell C and ! Row header A || Cell B || Cell C are the exact same thing, acting as if the table cells in the latter are table headers. Bawl disagrees. I'm going to consider that a MediaWiki bug and call it a day. Alexis Jazz (talk or ping me) 10:33, 18 June 2022 (UTC)[reply]

You messed up! (submit_timeout_button)

Alexis Jazz, you messed up! I was trying to.. hahaha I got an error again, on... this page! I was answering to you saying "Alexis Jazz, glad to hear! And what can I say, if instead of commenting I get a kitty, that is a win in my book :)". I like the kitty. Don't know if it is the same bug, but I will upload it again, I suppouse you have more control over this page and more test cases are always good

Replylinkparams:

{"int":982,"type":"comment","subtype":"locator","id":"Alexis_Jazz:1654754913817:User_talkBWLCLNAlexis_Jazz/Bawl","pageTitle":"User_talk:Alexis_Jazz/Bawl","pageTitleInt":966,"origReplyTo":"Alexis_Jazz","origTimestamp":"1654754913817","seq":0,"sectionTitle":"You messed up! (insertion point RegExp no match)","sectionseq":0}

Page: User_talk:Alexis_Jazz/Bawl @ enwiki

Page loaded at: 09/06/2022, 08:51:12

Error occured at: 09/06/2022, 08:53:03 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 291

# of elements processed: 988

Element types processed: H1, FORM, INPUT, LI, I, SPAN, P, DD, SMALL, DEL, S

Additional information: After attempting to submit, success was not detected after 10 seconds. Sometimes an edit takes longer, but this may indicate something went wrong.

AdrianHObradors (talk) 08:54, 9 June 2022 (UTC)[reply]

AdrianHObradors, this one I can't reproduce. Is it reproducible for you? If it is, could you open the browser console and look for any warnings or errors showing up when you submit? Everything in the report seems fine, so a JS error that caused the script to halt seems most likely. Alexis Jazz (talk or ping me) 10:05, 9 June 2022 (UTC)[reply]
Alexis Jazz, Seems not. Perhaps bawl has achieved hyper intelligence and knew that I said I liked that cat and just wanted to show it to me again? If will save the errors from the console if something goes wrong again! AdrianHObradors (talk) 10:08, 9 June 2022 (UTC)[reply]

You've been keeping secrets from us

Bawl beta has got to be the best-kept secret on Wikipedia. I'm so happy I stumbled upon this. I don't remember the last time I installed a new piece of software, and just going through the settings was like Christmas morning: Oh my god, just what I always wanted: reverse section order! And typo fixes? Permalink comments?! And autocollapse?! You can even edit comments after posting them, with diff preview!! Gonna change my wiki-life. Thank you for making this!! Levivich 16:37, 9 June 2022 (UTC)[reply]

Levivich, thank you so much. I haven't advertised it too much because I'm still fixing bugs. I'm also still working on a handful of additional features. And with modules Christmas never has to end. Alexis Jazz (talk or ping me) 23:23, 9 June 2022 (UTC)[reply]

Bug report

Alexis Jazz, I found this issue:

You copied that from QFN without even modifying the id? Not to mention that placing an event listener to swap ids is an absolute stupid solution for this problem. NguoiDungKhongDinhDanh 01:11, 10 June 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, that code isn't used anywhere yet and barely works. I was working on that when Adrian reported an issue I wanted to fix right away. Normally I wouldn't publish code in that state, put I didn't want to create some separate branch or risk accidentally breaking everything by removing the unfinished code. I copied parts from QFN to see which parts are actually needed, when it works I strip away what isn't needed. I'm a bit puzzled on how I'm supposed to synchronize ace editor with the textarea. (both ways) Clicking the button to enable/disable the ace editor works but shouldn't be needed. There will be some credit in the code comments, but it's simply unfinished. Alexis Jazz (talk or ping me) 01:30, 10 June 2022 (UTC)[reply]

Bug report

Alexis Jazz, I found this issue: Bawl incorrectly changes the following wikitext (with HTML entities to stop it breaking:

*<code>&#60;source&gt;</code> → <code>&#60;syntaxhighlight lang=""&gt;</code>
*<code>&#60;/source&gt;</code> → <code>&#60;/syntaxhighlight&gt;</code>
*<code>&#60;source</code> → <code>&#60;syntaxhighlight</code>
(task 10). Can an interface admin run the replacements on the remaining pages, mostly userspace .js and .css pages?


 ― Qwerfjkltalk 22:46, 10 June 2022 (UTC)[reply]

What was the expected result and what happened instead? Alexis Jazz (talk or ping me) 23:18, 10 June 2022 (UTC)[reply]
@Alexis Jazz, you'll be able to tell if you replace the HTML entities with real characters, but fragments of a {{#tag:syntaxhighlight...}} appeared in the preview. ― Qwerfjkltalk 07:16, 11 June 2022 (UTC)[reply]
Qwerfjkl, I don't understand what was the expected result and what happened instead. I don't see it. All I see, which may or may not be related at all, is that putting nowiki tags within syntaxhighlight on purpose results in the nowiki tags getting parsed when they shouldn't as syntaxhighlight is expected to prevent that. Alexis Jazz (talk or ping me) 09:56, 11 June 2022 (UTC)[reply]
@Alexis Jazz, here's what I get if I post the abive:
  • <source>
    </code>
    *<code></source></code> → <code>
    
  • <source<syntaxhighlight(task 10). Can an interface admin run the replacements on the remaining pages, mostly userspace .js and .css pages?
 ― Qwerfjkltalk 10:02, 11 June 2022 (UTC)[reply]
Qwerfjkl, you have an opening syntaxhighlight tag and a closing syntaxhighlight tag, on different lines, so they get processed. Putting the second line first actually makes it work. So does replacing the first < of the syntaxhighlight on the first line with &lt;.
There are several tags with a nowiki effect, nowiki, syntaxhighlight, pre, maybe I forget some. When you nest a complete set of one of those in the other across multiple lines (because within the same line that #tag conversion isn't triggered), bad things happen. Fixing this would require some level of understanding of which tags have the deepest nesting level. Which sounds like quite a bit of work for an edge case which can be worked around. If someone writes a detailed description of how to do it, or better yet, a patch with the same license as Bawl, I could look into that. Alexis Jazz (talk or ping me) 10:38, 11 June 2022 (UTC)[reply]
Qwerfjkl, for this particular case (code-nowiki tags containing something), here's a regular expression to add to your "custom regular expressions that are applied to comments only":
/(<code><nowiki>)(([^<\n]|<(?!\/nowiki>))*)<(?!\/nowiki><\/code>)(([^<]|<(?!\/nowiki><\/code>))*)(<\/nowiki><\/code>)/$1$2&lt;$4$6/g
This might help with some of the edge cases. Alexis Jazz (talk or ping me) 11:08, 11 June 2022 (UTC)[reply]
That code-nowiki specific replacement is now part of vanilla Bawl as I expect it to do more good than bad. Alexis Jazz (talk or ping me) 17:34, 12 June 2022 (UTC)[reply]

Bug report

Alexis Jazz, I found this issue:
The 2010 wikitext editor doesn't work when editing full section. Also, live preview doesn't work when adding new section.
Aside from that, this is definitely a wonderful feature that no other discussion tool have. Updating Bawl using Bawl itself seems easier than ever? NguoiDungKhongDinhDanh 16:04, 12 June 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, thank you. Can you do the I am error thing so I can see your settings? (rather crucial in this case) Can you better describe "doesn't work"? Not there, malfunctioning, error, loads but doesn't submit, etc? Full section editing and live preview for new sections work for me.
There's still a limitation regarding custom inserts: I can't get the range direction from CodeEditor. I know the focus offset from .codeEditor-status-line and the range is also in there, but it doesn't say if the anchor is before or after the focus, so the range could be two things. Do you maybe know how to get the range direction? And for CodeMirror it's worse, I don't even have the focus for that atm. Alexis Jazz (talk or ping me) 16:58, 12 June 2022 (UTC)[reply]
@Alexis Jazz: I tried to do something similar, then I realize normal guidelines for Ace users are just unsuitable for us Wikimedians. As for my preferences, here they are:
Extended content

{
	"int": 1063,
	"type": "comment",
	"subtype": "locator",
	"id": "Alexis_Jazz:1655053096921:User_talkBWLCLNAlexis_Jazz/Bawl",
	"pageTitle": "User_talk:Alexis_Jazz/Bawl",
	"pageTitleInt": 1060,
	"origReplyTo": "Alexis_Jazz",
	"origTimestamp": "1655053096921",
	"seq": 0,
	"sectionTitle": "Bug report",
	"sectionseq": 5
}

{
	"replySecLink": true,
	"secLinks": true,
	"editFullSection": true,
	"customSummary": true,
	"bgicon": true,
	"livePreview": true,
	"enableCI": false,
	"enableCIThatRun": false,
	"enableCIThatRunCmt": false,
	"cI": {},
	"cIThatRun": {},
	"cIThatRunCmt": {},
	"monospace": true,
	"pingText": "{{ping|PINGUSER}} ",
	"pingTextInSection": "{{ping|PINGUSER}}, ",
	"markNewCmtsSubbed": false,
	"stalkInterval": "0",
	"showRisky": true,
	"useLocator": false,
	"theStranger": true,
	"afterPost": "reload",
	"watchlist": "nochange",
	"watchlistexpiry": "indefinite",
	"2010wikitextDefault": true,
	"2010codeMirror": true,
	"ffsWHY": true
}


NguoiDungKhongDinhDanh 17:05, 12 June 2022 (UTC)[reply]

 Done NguoiDungKhongDinhDanh, in some cases the right editor wasn't selected. I've improved this. Live preview wasn't working with CodeMirror, it should work now. Alexis Jazz (talk or ping me) 23:14, 13 June 2022 (UTC)[reply]
@Alexis Jazz: Live preview does work, but where is CodeMirror now? It is not loaded at all. NguoiDungKhongDinhDanh 23:17, 13 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, I dunno, it works for me. When you have an issue that isn't easily reproducible more information is always needed. Just do the "I am error" thing on the form where CodeMirror isn't loading. When you say "not loaded at all" do you mean it's not active or is there literally no $('#mw-editbutton-codemirror')[0]? Alexis Jazz (talk or ping me) 23:50, 13 June 2022 (UTC)[reply]
@Alexis Jazz: I literally mean that. My preferences remain the same. NguoiDungKhongDinhDanh 23:53, 13 June 2022 (UTC)[reply]
The 2010 wikitext editor is also not loaded. I'm now using the light-weight good ol' editor of Bawl. Nothing to see in my console. NguoiDungKhongDinhDanh 23:55, 13 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, VERY important distinction. As you didn't change your preferences, it's probably working as intended. You are presumably talking about commenting (I made the error reporter so I wouldn't have to guess these things, but if you won't use it..) and you didn't change the default editor for commenting (the dropdown) and you also didn't enable "Enable switching between editors" so you couldn't have tried to activate the 2010 wikitext editor with a button either. Alexis Jazz (talk or ping me) 00:07, 14 June 2022 (UTC)[reply]

You messed up! (no_response)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"id":"newSectionForm-Talk%3AEmblem_of_Vietnam","type":"newsection","pageTitle":"Talk:Emblem_of_Vietnam","redirect":true}

Page: Talk:Emblem_of_Vietnam @ enwiki

Page loaded at: 12/06/2022, 16:33:38

Error occured at: 12/06/2022, 16:33:43 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 0

# of elements processed: -1

Element types processed: none

Additional information: Received no response from API. Is your internet plugged in?

Just a regular "New section", then it told me "Awwww shit.".

Donald Trung (talk) 17:54, 12 June 2022 (UTC)[reply]

Alexis, may we have wikicoded links in addition to URLs when tapping the link icon to copy a section or comment link? I know your solution for this is to regex it out in Bawl, but sometimes we need the wikicode for some other input (and it's a pain to decode the hex uri). — Guarapiranga  05:30, 13 June 2022 (UTC)[reply]

Guarapiranga, for what other input? User:Alexis Jazz/Bawl#Use features from Bawl outside Bawl? is supposed to handle this. Alexis Jazz (talk or ping me) 07:26, 13 June 2022 (UTC)[reply]
  • Guarapiranga, for what other input?
    I use Bawl interchangeably with WikiPlus and WM's own editors.
  • User:Alexis Jazz/Bawl#Use features from Bawl outside Bawl? is supposed to handle this.
    I couldn't make heads and tails of this. I see the css options, but haven't quite deciphered them either.
Guarapiranga  01:09, 14 June 2022 (UTC)[reply]
The comment by Guarapiranga above has a missing-end-tag/stripped-tag lint. NguoiDungKhongDinhDanh 01:28, 14 June 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
	"int": 1088,
	"type": "comment",
	"subtype": "locator",
	"id": "Alexis_Jazz:1655165244699:User_talkBWLCLNAlexis_Jazz/Bawl",
	"pageTitle": "User_talk:Alexis_Jazz/Bawl",
	"pageTitleInt": 1072,
	"origReplyTo": "Alexis_Jazz",
	"origTimestamp": "1655165244699",
	"seq": 0,
	"sectionTitle": "Bug report",
	"sectionseq": 5
}

Page: User talk:Alexis Jazz/Bawl

Active editor: source

Page loaded at: 14/06/2022, 00:07:58

Error occured at: 14/06/2022, 00:09:09 UTC

My settings:

{
	"replySecLink": true,
	"secLinks": true,
	"editFullSection": true,
	"customSummary": true,
	"bgicon": true,
	"livePreview": true,
	"enableCI": false,
	"enableCIThatRun": false,
	"enableCIThatRunCmt": false,
	"cI": {},
	"cIThatRun": {},
	"cIThatRunCmt": {},
	"monospace": true,
	"pingText": "{{ping|PINGUSER}} ",
	"pingTextInSection": "{{ping|PINGUSER}}, ",
	"markNewCmtsSubbed": false,
	"stalkInterval": "0",
	"showRisky": true,
	"useLocator": false,
	"theStranger": true,
	"afterPost": "reload",
	"watchlist": "nochange",
	"watchlistexpiry": "indefinite",
	"editorSwitch": true,
	"editorSwitchSkip2010": false,
	"editorSwitchSkipvisual": true,
	"2010wikitextDefault": true,
	"2010codeMirror": true,
	"ffsWHY": true
}

Skin: vector

# of .BawlLinks: 717

# of elements processed: 1107

Element types processed: H1, FORM, INPUT, LI, I, SPAN, P, DD, SMALL, DEL, S

Additional information: Error triggered by user.

Here you are. I enabled the editor switching feature and yet nothing happened. NguoiDungKhongDinhDanh 00:11, 14 June 2022 (UTC)[reply]

NguoiDungKhongDinhDanh, what happens when you press the "</>" editor switch button? Alexis Jazz (talk or ping me) 00:31, 14 June 2022 (UTC)[reply]
@Alexis Jazz: Nothing, until now! NguoiDungKhongDinhDanh 00:32, 14 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, so it's fixed? I just fixed a bug that caused an unexpected editor switch on preview, maybe that helped your issue too. Alexis Jazz (talk or ping me) 00:44, 14 June 2022 (UTC)[reply]
@Alexis Jazz: It is. Where is the "make 2010 wikitext editor default" option? NguoiDungKhongDinhDanh 00:47, 14 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, for comments? "Default editor for comments and new sections:" dropdown. That's a dropdown because there are three options. Alexis Jazz (talk or ping me) 09:30, 14 June 2022 (UTC)[reply]

@Alexis Jazz: After doing so I'm now seeing two editors at the same time. Is this intended? NguoiDungKhongDinhDanh 20:54, 14 June 2022 (UTC)[reply]

Edit section works fine with one single 2010 wikitext editor. NguoiDungKhongDinhDanh 20:55, 14 June 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, that's a bug, and it should be fixed now. Alexis Jazz (talk or ping me) 11:23, 15 June 2022 (UTC)[reply]
Thanks! NguoiDungKhongDinhDanh 11:36, 15 June 2022 (UTC)[reply]

Feature request: auto-escape text for regex config fields

This is a nice to have: I'm having a bit of trouble writing the regex'es in Bawl's config (bc perhaps the syntax is not exactly the same as WM's regex). Could the regex fields auto-escape the characters that it needs escaping when pasting text there? (Not sure you can differentiate pasting from typing though.) Guarapiranga  01:26, 14 June 2022 (UTC)[reply]

Bug report - saved HTML not wikitext

Alexis Jazz, I found this issue: in Special:Diff/1093031478, the input was wikitext but it saved as HTML. Levivich 04:12, 14 June 2022 (UTC)[reply]

Levivich, I don't see a problem here. Newlines are converted to <br/> (which works on every project, local templates like {{break}} are too unpredictable) and bullet points were converted to ul+li tags. Bawl has a rule: one comment, one line. This rule made my life so much easier, being able to rely on any Bawl comment consisting of exactly one line and not having to worry about indentation across multiple lines. I ripped the support for multiline indented comments out of Bawl at an early stage as I knew it would be a nightmare to maintain. When you edit your comment using Bawl, it'll show just the way you entered it. Well, more or less, not all tags are reconstructed atm but generally it will. Alexis Jazz (talk or ping me) 10:08, 14 June 2022 (UTC)[reply]
OK thanks. Levivich 17:57, 14 June 2022 (UTC)[reply]

Bug report - replying to comment ending in a list with an intervening comment

In Special:Diff/1093141125, I was replying to a comment that ended in a list (:#) that already had another reply to it (::). Bawl started my reply with :## instead of ::, and placed my reply above the other reply instead of below it. I'm guessing Bawl didn't recognize that the :: reply was a reply to the :# and not a new comment? Levivich 20:43, 14 June 2022 (UTC)[reply]

Levivich, erm, that's a bit complicated, but Bawl did what it was designed to do. Whether that was the right call, well.. Wikitext is messy. Unlike DiscussionTools, Bawl recognizes # as a form of indentation. (most typically used on some votes) Whether replies to votes in a numbered list should be numbered as well is a matter of style, Bawl just duplicates the last indentation character. Thryduulf's comment effectively ended with :# indentation. If Thryduulf had added another line, putting at least their signature on a new line with : indentation, it would have worked as expected. (I think that would look more clear as well) If Thryduulf had used Bawl it wouldn't have been an issue either as the whole comment would have existed on a single line. If Barkeep49 had used ::: for indentation (which would be required visually to create an offset from Thryduulf's numbered list) it would have also worked as expected. (your comment would have had ::: indentation and be placed below Barkeep49's comment in that case)
I'll probably add an option to turn all indentation to colons if it's more than 1 character and ends in # and enable that by default, but that would still place your comment above Barkeep49's comment. IMHO that's the best way to handle this though, hashtags should be counted as indentation. Alexis Jazz (talk or ping me) 12:21, 15 June 2022 (UTC)[reply]
Yeah I used discussion tools to reply to Thryduulf and that's what happened. Best, Barkeep49 (talk) 13:30, 15 June 2022 (UTC)[reply]
Levivich, double hashtag indentation is now avoided by default. Getting the indentation level right should be fixed in DT. Barkeep49, I see. I also noticed now that Thryduulf used DT as well. I'd argue DT just shouldn't have handled things like this: either your comment should have had an extra colon to create the visual offset (though for screen readers that's actually worse) or (probably better) Thryduulf's signature should have been forced onto a new line, not appended to a list item. I created a Phabricator ticket for this: phab:T310739. I don't expect much to come from it, but I did my part. Alexis Jazz (talk or ping me) 19:13, 15 June 2022 (UTC)[reply]
Thanks, AJ! Levivich 19:15, 15 June 2022 (UTC)[reply]

Some help with modules

This isn't worth pinging you about, but neither of the two modules I attempted work (oh well). If you have time, could you take a look? Thanks.

if ( typeof window.BawlModules == 'undefined' ) { window.BawlModules=[]; }
window.BawlModules.push({'load':['openForm'],'buttonLabel':'Paste','buttonFunc':function(){document.execCommand("paste");}});

window.BawlModules.push({'load':['beforeLinkLoad','beforeEdit'],'beforeLinkLoadFunc':function(){if(Bawl.commentTextIndent=='**'){Bawl.commentTextIndent='*'};}});

 ― Qwerfjkltalk 21:05, 14 June 2022 (UTC)[reply]

Qwerfjkl, first module should have "afterOpenForm" instead of "openForm" (I changed this for consistency some time ago) and presumably you want Bawl.UITextInput.focus(); before your paste command. Still doesn't work me but that's a security thing I think. I doubt it would ever be a good idea to give websites access to your clipboard. w3schools says execCommand is deprecated.
For the second one beforeLinkLoadFunc should be beforeEditFunc and beforeLinkLoad is not needed. You should also check mw.config.get('wgPageName') to make sure it doesn't activate outside CfD, which is presumably what you need it for. Alexis Jazz (talk or ping me) 19:35, 15 June 2022 (UTC)[reply]
Qwerfjkl, actually instead of changing commentTextIndent you probably need
Bawl.postCommentParams.text = Bawl.postCommentParams.text.replace(/^\*\*/,'*');
or something. There is no module load point between the definition and final use of commentTextIndent. Alexis Jazz (talk or ping me) 19:46, 15 June 2022 (UTC)[reply]
@Alexis Jazz, I got it to sort of work (needs the multiline flag), and I'll fix it up a bit later, but... in one edit it changed the comment (by me) which also had ** indentation (though this might be my fault), and in both it didn't update the preview. ― Qwerfjkltalk 21:11, 15 June 2022 (UTC)[reply]

Feature request. Ctrl + Enter to submit comments

Alexis Jazz, I'd like to be able to use Ctrl + Enter to Submit comments, instead of having to click the button. I did a quick search through the settings and didn't find it, so excuse me if it is already there! Thanks Alexis! AdrianHObradors (talk) 00:53, 17 June 2022 (UTC)[reply]

AdrianHObradors, was already requested and implemented. Settings, advanced, "Enable keyboard shortcuts", "Use ctrl+enter to submit form, ctrl+shift+enter to mark edit as minor and submit form". Alexis Jazz (talk or ping me) 01:19, 17 June 2022 (UTC)[reply]
Alexis Jazz, ohhhhh! Thanks Alexis! I'm submitting this comment using Ctrl+Enter :) AdrianHObradors (talk) 06:35, 17 June 2022 (UTC)[reply]

Bug report

Alexis Jazz, I found this issue: see Special:PageHistory/Wikipedia:Village pump (technical); the moving failed, leading to just the section being removed. It might be better to add it to the target first. ― Qwerfjkltalk 19:29, 19 June 2022 (UTC)[reply]

Qwerfjkl,  Done. Though I don't understand why that move would fail. If there had been a kitty I assume you would have submitted the error report. Maybe there was a JS error, but I can't think of a reason for one to occur at that specific point. (there wasn't much code between the section removal and section addition) Sure, you entered the wrong target (you presumably intended to move to Wikipedia talk:AutoWikiBrowser, not Wikipedia:AutoWikiBrowser) but the move should have been completed anyway. Unless you realized your error after pressing submit and panic-closed your browser or something. Alexis Jazz (talk or ping me) 12:03, 20 June 2022 (UTC)[reply]
@Alexis Jazz, there was a kitty, but I didn't submit an error report (I've been having a few 'false errors' with timeouts). I didn't do anything like closing the page. ― Qwerfjkltalk 13:10, 20 June 2022 (UTC)[reply]
Qwerfjkl, that particular kitty, was that a timeout kitty too? Alexis Jazz (talk or ping me) 18:02, 20 June 2022 (UTC)[reply]
@Alexis Jazz, probably. ― Qwerfjkltalk 18:19, 20 June 2022 (UTC)[reply]

You messed up! (username+timestamp THTB_lol'nt+11:16, 20 June 2022 (UTC) not found, seq: 0)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":800,"type":"comment","subtype":"legacy","id":"THTB_lol'nt:11:16, 20 June 2022 (UTC):800","pageTitleInt":799,"origReplyTo":"THTB_lol'nt","origTimestamp":"11:16, 20 June 2022 (UTC)","seq":0,"pageTitle":"User talk:Qwerfjkl","sectionTitle":"Question from THTB lol'nt (11:16, 20 June 2022)","sectionseq":0}

Page: [5]

Active editor: source

Page loaded at: 20/06/2022, 13:07:47

Error occured at: 20/06/2022, 13:08:06 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg"},"monospace":true,"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"shortcuts":false,"theStranger":true,"killswitch":false,"watchlistexpiry":"+7 days","editorSwitch":true,"saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 200

# of elements processed: 801

Element types processed: H1, TD, SPAN, DD, LI, P, SMALL, I, INPUT

Additional information: Username/timestamp combination not found.

Qwerfjkltalk 13:08, 20 June 2022 (UTC)[reply]

Qwerfjkl, within their signature, THTB lol'nt used an HTML entity for the apostrophe that's in their username. This is generally undesirable and one of the many reasons why creating any tool to participate in wikitext discussions is widely considered madness: there are no standards. Alexis Jazz (talk or ping me) 17:05, 20 June 2022 (UTC)[reply]
@Alexis Jazz, I thought that might be the problem. (There's a userspace essay somewhere about only non-wikimarkup signatures should be allowed.) Qwerfjkltalk 18:18, 20 June 2022 (UTC)[reply]
Qwerfjkl, in the next update this particular one and some similar things will be caught, but it will still be possible to break it. It's quite rare luckily. The problem isn't that there is some markup (like colors etc), the problem is that technically Bawl is right: that username+timestamp combination does not exist in the wikitext. Alexis Jazz (talk or ping me) 19:39, 20 June 2022 (UTC)[reply]
Qwerfjkl,  DoneAlexis Jazz (talk or ping me) 23:08, 21 June 2022 (UTC)[reply]

You messed up! (missingtitle)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"int":0,"id":"editLede-Boy_Alone","type":"heading","subtype":"edit","section":0,"sectionTitle":"","pageTitle":"Boy_Alone"}

Page: [6]

Active editor: source

Page loaded at: 21/06/2022, 06:09:55

Error occured at: 21/06/2022, 06:10:15 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg"},"monospace":true,"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"shortcuts":false,"theStranger":true,"killswitch":false,"watchlistexpiry":"+7 days","editorSwitch":true,"saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 0

# of elements processed: 1

Element types processed: H1

Additional information: API: "The page you specified doesn't exist." Bawl doesn't let me create new pages, apparently.

Qwerfjkltalk 06:11, 21 June 2022 (UTC)[reply]

Qwerfjkl, kinda more like MediaWiki doesn't allow you to edit the lede of nonexistent pages. It'll work after the next update of Bawl. (already fixed locally) Alexis Jazz (talk or ping me) 06:37, 21 June 2022 (UTC)[reply]
Qwerfjkl,  DoneAlexis Jazz (talk or ping me) 23:08, 21 June 2022 (UTC)[reply]

You messed up! (I AM ERROR)

Alexis Jazz, you messed up!

Replylinkparams:

{
	"id": "editFullPage-Module:JSON",
	"type": "editFullPage",
	"pageTitle": "Module:JSON"
}

Page: [7]

Active editor: source

Page loaded at: 21/06/2022, 22:24:26

Error occured at: 21/06/2022, 22:25:00 UTC

My settings:

{
	"replySecLink": true,
	"secLinks": true,
	"editFullSection": true,
	"customSummary": true,
	"bgicon": true,
	"livePreview": true,
	"enableCI": false,
	"enableCIThatRun": false,
	"enableCIThatRunCmt": false,
	"cI": {},
	"cIThatRun": {},
	"cIThatRunCmt": {},
	"monospace": true,
	"pingText": "{{ping|PINGUSER}} ",
	"pingTextInSection": "{{ping|PINGUSER}}, ",
	"markNewCmtsSubbed": false,
	"stalkInterval": "0",
	"showRisky": true,
	"useLocator": false,
	"theStranger": true,
	"afterPost": "reload",
	"watchlist": "nochange",
	"watchlistexpiry": "indefinite",
	"editor": "2010wikitext",
	"editorSwitch": true,
	"editorSwitchSkip2010": false,
	"editorSwitchSkipvisual": true,
	"2010wikitextDefault": true,
	"2010codeMirror": true,
	"ffsWHY": true 
}

Skin: vector

# of .BawlLinks: 0

# of elements processed: 1

Element types processed: H1

Additional information: Ace's language was set to "text" when editing the module. It should have been "Lua". NguoiDungKhongDinhDanh 22:47, 21 June 2022 (UTC)[reply]

NguoiDungKhongDinhDanh,  DoneAlexis Jazz (talk or ping me) 23:05, 21 June 2022 (UTC)[reply]

You messed up! (open form failed)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

n/a

Page: [8]

Active editor: undefined

Page loaded at: 22/06/2022, 20:48:02

Error occured at: 22/06/2022, 20:48:05 UTC

My settings:

{"replySecLink":true,"hideArchived":false,"editFullPage":true,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"collapsible":true,"dateLinksLocalTime":true,"cureDTBlueStreak":false,"tosNag":false,"pingDropDown":true,"customSummary":true,"cI":{"0":"%3Csyntaxhighlight%20lang%3D%22BAWLCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","1":"%3Ccode%3E%3Cnowiki%3EBAWLCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","2":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cdn%7D%7D%3A%3C%3Cdone%3E%3E","3":"%7B%7Bsubst%3AUser%3ATol%2FR%7Csup%7D%7D%3A%3C%3Csupport%3E%3E","4":"%7B%7Bsubst%3AUser%3ATol%2FR%7Cnd%7D%7D%3A%3C%3Cnot%20done%3E%3E","5":"%7B%7Bsubst%3AUser%3ATol%2FR%7Copp%7D%7D%3A%3C%3Coppose%3E%3E","6":"%7B%7Blnc%7CQwerfjkl%20(bot)%7CBAWLCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3C%3Clnc%3E%3E","7":"%3Csyntaxhighlight%20lang%3D%22%22%3EBAWLCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E"},"cIThatRun":{"0":"%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"},"cIThatRunCmt":{"0":"%2F(%5B%5E~%3B%5C)%5C%3E%5D)%24%2F%241%26nbsp%3B%26%238213%3B%26nbsp%3B%2F","1":"%2F%26nbsp%3B%26%238213%3B%26nbsp%3B(%5B%5E%24%5D)%2F%241%2Fg"},"monospace":true,"pingText":"@[[User:PINGUSER|]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddCycleBtn":true,"markNewCmtsBorder":true,"stalkMarkReadScroll":true,"showRisky":true,"shortcuts":false,"theStranger":true,"killswitch":false,"watchlistexpiry":"+7 days","editorSwitch":true,"saveTo":"accountprefs"}

Skin: vector-2022

# of .BawlLinks: 1

# of elements processed: 2

Element types processed: H1, SPAN

Additional information: Could not open form.

Qwerfjkltalk 20:49, 22 June 2022 (UTC)[reply]

Qwerfjkl, no replylinkparams? How..? What did you try to open? Edit lede (in #firstHeading), edit full page (in toolbar), something else? Reproducible for you? Any errors on the browser console? Alexis Jazz (talk or ping me) 22:03, 22 June 2022 (UTC)[reply]

You messed up! (submit_timeout_button)

Alexis Jazz, you messed up! I was trying to..

Replylinkparams:

{"id":"newSectionForm-Wikipedia%3ASockpuppet_investigations%2FYassaarr","type":"newsection","pageTitle":"Wikipedia:Sockpuppet_investigations/Yassaarr"}

Page: [9]

Active editor: source

Page loaded at: 23/06/2022, 02:38:50

Error occured at: 23/06/2022, 02:39:14 UTC

My settings:

""

Skin: vector

# of .BawlLinks: 0

# of elements processed: 10

Element types processed: H1, LI, I, P

Additional information: After attempting to submit, success was not detected after 10 seconds. Sometimes an edit takes longer, but this may indicate something went wrong.

Liz Read! Talk! 02:41, 23 June 2022 (UTC)[reply]

I'm not sure what this report is supposed to look like or why you are receiving the error message. I tried opening an SPI report, which I've done before with no problems and it won't go through or give me any indication what the problem is. I've tried this three times, from scratch in case I inputed the information incorrectly. What's going on here? Liz Read! Talk! 02:44, 23 June 2022 (UTC)[reply]
I figured it out. I'm not sure why Bawl is involved with me filing an SPI report, I haven't seen any benefit to it and this just messed things up. Bawl prevented the report from being submitted because I didn't add a "Subject line". I didn't even notice that field was there. So, I added a meaningless subject title, submitted the report and then deleted the extraneous subject title. That field shouldn't be required in order to leave a report at SPI which already has a format that you submit information in. I can see this feature being somewhat useful for talk page posts but this wasn't on a talk page. Liz Read! Talk! 04:33, 23 June 2022 (UTC)[reply]
Liz, the error you received is a catch-all for unpredicted failure states, that's why it doesn't tell you what the problem is. And the problem was, in this case, a very silly bug. I was rather puzzled initially, but eventually figured out you must have omitted the section title. This stops the edit from going through (by design, also shakes the title field and changes its color temporarily), and logically, yes, that means the edit didn't succeed.. But that shouldn't trigger an error as it's expected. I fixed this. I also focus the title field now and its color doesn't fade away until something is entered. Posting a new section without a section title was impossible until now. As it's indeed actually useful when substituting a template that provides a header it's now possible by simply pressing "submit" again with a still-empty title.
As for why Bawl is involved with filing SPI reports: it isn't, well, not specifically. By default, Bawl takes over various "new section" forms. The trigger for that was actually DiscussionTools which (when its new topic feature is enabled) does the same thing, except more aggressively. (section=new becomes inaccessible without hacks, which Bawl implements to circumvent DT blocking access to section=new. I know, right?) Sooner or later they'll enable that new topic feature by default, so I have little choice: I don't want to instruct users to disable DT (I don't want to ask a single question when opening Bawl, I consider that bad design), I don't want to disable DT behind the user's back, so all that's left is to do the same thing. Unlike DT, this behavior can be fine-tuned in Bawl's settings. Alexis Jazz (talk or ping me) 04:49, 23 June 2022 (UTC)[reply]