User talk:Alexis Jazz/Factotum: Difference between revisions
Alexis Jazz (talk | contribs) →"BCL" and edit conflicts: replying to EpicPupper: (I'm drowning in tasks here, I didn't for...) [Bawl!] |
→You messed up! (I AM ERROR): replying to Alexis Jazz: (Alexis Jazz Currently, you are replacing...) [Bawl!] |
||
Line 883: | Line 883: | ||
::::{{ping|Alexis Jazz}} If you managed to find out <em>how many</em>, why can't <syntaxhighlight lang="ragel" inline>/\n/g</syntaxhighlight> be replaced with <syntaxhighlight lang="js" inline>\n<indent level></syntaxhighlight>? [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 12:44, 2 June 2022 (UTC) |
::::{{ping|Alexis Jazz}} If you managed to find out <em>how many</em>, why can't <syntaxhighlight lang="ragel" inline>/\n/g</syntaxhighlight> be replaced with <syntaxhighlight lang="js" inline>\n<indent level></syntaxhighlight>? [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 12:44, 2 June 2022 (UTC) |
||
:::::[[User:NguoiDungKhongDinhDanh|NguoiDungKhongDinhDanh]], where? I'm not following. I assume you're talking about something that you think could be optimized? <span id="Alexis_Jazz:1654176157720:User_talkBWLCLNAlexis_Jazz/Bawl" class="BawlCmt">— <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 13:22, 2 June 2022 (UTC)</span> |
:::::[[User:NguoiDungKhongDinhDanh|NguoiDungKhongDinhDanh]], where? I'm not following. I assume you're talking about something that you think could be optimized? <span id="Alexis_Jazz:1654176157720:User_talkBWLCLNAlexis_Jazz/Bawl" class="BawlCmt">— <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 13:22, 2 June 2022 (UTC)</span> |
||
::::::{{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}}?<br/>For instance, everything until this very '''word''' looks like this to Bawl:<br/><syntaxhighlight lang="js" inline>"{{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'''"</syntaxhighlight><br/>See that <syntaxhighlight lang="js" inline>'\n'</syntaxhighlight> over there, right before {{tq|For instance}}? Replace it with <syntaxhighlight lang="js" inline>'::::{{ping|Alexis Jazz}} If you managed to find out <em>how many</em>, why can't <syntaxhighlight lang="ragel" inline>/\n/g</syntaxhighlight> be replaced with <syntaxhighlight lang="js" inline>\n<indent level></syntaxhighlight>? [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 12:44, 2 June 2022 (UTC) |
|||
:::::[[User:NguoiDungKhongDinhDanh|NguoiDungKhongDinhDanh]], where? I'm not following. I assume you're talking about something that you think could be optimized? <span id="Alexis_Jazz:1654176157720:User_talkBWLCLNAlexis_Jazz/Bawl" class="BawlCmt">— <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 13:22, 2 June 2022 (UTC)</span>' + indentlevel</syntaxhighlight> (e.g. <code>\n:::</code>, <code>\n*::#</code> etc.). At the same time, be sure to <em>preserve</em> the line breaks inside the special tags mentioned above.<br/>That being said, a comment that originally looks like this:<br/>{{#tag:syntaxhighlight|'Foo bar.\n{{lessthan}}syntaxhighlight>#foobar .foobar {\n\twhite-space: pre;\n}\n{{lessthan}}/syntaxhighlight>\nLorem ipsum\ndolor sit amet'|lang=js|inline=1}}<br/>will eventually looks like this:<br/>{{#tag:syntaxhighlight|'Foo bar.\n:::{{lessthan}}syntaxhighlight>#foobar .foobar {\n\twhite-space: pre;\n}\n{{lessthan}}/syntaxhighlight>\n:::Lorem ipsum\n:::dolor sit amet'|lang=js|inline=1}}<br/> [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 14:56, 2 June 2022 (UTC) |
|||
== Feature request: Auto-mentions on a first name basis == |
== Feature request: Auto-mentions on a first name basis == |
Revision as of 14:56, 2 June 2022
If you encounter an issue that doesn't trigger the error reporter, open the settings window and look for the "bug?" link in the bottom-right to trigger it manually. This will create a report with essential data for debugging. |
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)
- 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)
- Oops, I meant to turn off RegExTypoFix (and now the preview is fine). ― Qwerfjkltalk 06:09, 4 May 2022 (UTC)
- 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)
- @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)
- 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)
- @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)- 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)Does this not work on Amazon devices?
Apparently not. ― Qwerfjkltalk 16:54, 8 May 2022 (UTC)- 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)
- @Alexis Jazz, yes. ― Qwerfjkltalk 17:50, 8 May 2022 (UTC)
- 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)
- @Alexis Jazz, yes. ― Qwerfjkltalk 17:50, 8 May 2022 (UTC)
- 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)
- @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)
- 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)- @Alexis Jazz, thanks, it works. ― Qwerfjkltalk 06:08, 11 May 2022 (UTC)
- Qwerfjkl, you have it enabled on
- Qwerfjkl, there must be a better way.
- Also, I still get an error (related to my earlier comment) on line 5693/5667. ― Qwerfjkltalk 21:12, 7 May 2022 (UTC)
- Qwerfjkl, I thought I solved that,can you confirm? — Alexis Jazz (talk or ping me) 00:03, 9 May 2022 (UTC)
- @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)- Qwerfjkl, fixed! — Alexis Jazz (talk or ping me) 17:43, 9 May 2022 (UTC)
- @Alexis Jazz, yes, I can confirm I still get the error (line 5807). ― Qwerfjkltalk 06:06, 11 May 2022 (UTC)
- 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)
- @Alexis Jazz, I tried again, (on my laptop), and now I get an error when unsubscribing:
- Qwerfjkl, I thought I solved that,can you confirm? — Alexis Jazz (talk or ping me) 00:03, 9 May 2022 (UTC)
- @Alexis Jazz, thanks so much for your work on this! Regarding
- 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)
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)
- 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)
- @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)
SineBot's using Bawl
Special:Diff/1087763538. Qwerfjkltalk 16:34, 16 May 2022 (UTC)
- 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)
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)
- 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
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)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) - Qwerfjkl, top right: add to Special:MyPage/common.css. Top left:
#cat_a_lot {bottom:unset;top:0;}
Somewhat below the top:#cat_a_lot {bottom:unset;right:unset;top:0;left:0 !important}
— Alexis Jazz (talk or ping me) 22:50, 16 May 2022 (UTC)#cat_a_lot {bottom:unset;top:3em}
- @Alexis Jazz, The CSS makes the Cat-a-lot box stretch to the bottom of the page. ― Qwerfjkltalk 17:28, 17 May 2022 (UTC)
- 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)
- @Alexis Jazz, I found that out earlier today. Wonder if it'll work on mobile? ― Qwerfjkltalk 18:22, 17 May 2022 (UTC)
- Qwerfjkl, now I see, it only happens when you load a long category list. Try — Alexis Jazz (talk or ping me) 17:53, 17 May 2022 (UTC)
#cat_a_lot {bottom:unset;top:0;max-height:20em;} #cat_a_lot_category_list {max-height:10em !important;}
- @Alexis Jazz, By the way, what's the CSS selector for Cat-a-lot? ― Qwerfjkltalk 19:35, 17 May 2022 (UTC)
- 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)
- @Alexis Jazz, By the way, what's the CSS selector for Cat-a-lot? ― Qwerfjkltalk 19:35, 17 May 2022 (UTC)
- 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)
- @Alexis Jazz, The CSS makes the Cat-a-lot box stretch to the bottom of the page. ― Qwerfjkltalk 17:28, 17 May 2022 (UTC)
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) ―
- 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)
- 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 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)
$('#mw-content-text H2')[$('#mw-content-text H2').length-1].innerHTML
- 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)
- 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)
- 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)
- 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)- @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)
- 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)- @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)
- 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)
- @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)
- 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
- @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)
- Certes, good to hear! A custom insert with
- 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)
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) ―
- 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)
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)
- 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)
- 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)
- For clarification, the outdent I said was
- 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
andmw.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 enterto 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)Bawl.removeVPTsubs = JSON.parse(window.localStorage.BawlSubs); delete Bawl.removeVPTsubs['Wikipedia:Village pump (technical)']; window.localStorage.setItem('BawlSubs',JSON.stringify(Bawl.removeVPTsubs));
- @Alexis Jazz, For (1), respectively:
19675
- @Alexis Jazz, For (1), respectively:
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)
- 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)- 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 ofJSON.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) - Qwerfjkl, .mw-collapsible should work in previews now. Regarding the subscriptions: please reset your subscriptions again. If Bawl doesn't load: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)
window.localStorage.removeItem('BawlSubs'); api.postWithEditToken( {format: 'json', action: 'options', change:['userjs-BawlSubs=']} ).then( function ( data ) {console.log(data)});
- 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
- For (2), I've just done so for the first time.
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)
- 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)
- @Alexis Jazz, Done. ― Qwerfjkltalk 20:45, 24 May 2022 (UTC)
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) ―
- 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)
- 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)
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)
- 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)
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)
- 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)
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)
- ...as if I clicked the edit pencil. NguoiDungKhongDinhDanh07:00, 27 May 2022 (UTC)
- 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)
- 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)
- @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)- 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)
- 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)
- 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)- @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)
- 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.
- 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)
- 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)
- @Alexis Jazz: When reporting, I thought of an one-line JSON formatter:
- 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)
- 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)
- ┌─────────────────────┘
...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)- 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)
What does "Bites DiscussionTools" mean in the feature comparison matrix?
Conflicts? — Guarapiranga ☎ 09:25, 27 May 2022 (UTC)
- 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)
- 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) - 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)
- 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)- 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)- Here's another cryptic one (for me, at least):
- Add snippet to edit summary
- @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)
- Hmm... Don't think so, Qwerfjkl; it refers specifically to the edit summary. — Guarapiranga ☎ 03:01, 29 May 2022 (UTC)
- @Guarapiranga, sorry, I mean that fragment of the text would be added to the edit summary. ― Qwerfjkltalk 06:28, 29 May 2022 (UTC)
- 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)
- Hmm... Don't think so, Qwerfjkl; it refers specifically to the edit summary. — Guarapiranga ☎ 03:01, 29 May 2022 (UTC)
- Here's another cryptic one (for me, at least):
- 1. Can you take a screenshot?
- 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.
- Great! Thanks.
- ┌─────────────────────┘
Ah! Gotcha. — Guarapiranga ☎ 07:17, 29 May 2022 (UTC)
"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)
- 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)
- @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)
- 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)
- 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)
- @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)
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)
- 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)
- 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
- 1. Does Bawl open when you visit Wikipedia:Village pump (technical)#BawlEdit?
(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)
- 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)
- @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)
- Found it! (I think). Disabling the WP:LOCO gadget fixed it (on VPT, at least). — Guarapiranga ☎ 00:57, 29 May 2022 (UTC)
- 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)
- Geez! This one really came out the wrong end. It was a reply to this comment. — Guarapiranga ☎ 01:09, 29 May 2022 (UTC)
- 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)
- Geez! This one really came out the wrong end. It was a reply to this comment. — Guarapiranga ☎ 01:09, 29 May 2022 (UTC)
- 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)
- 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)
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)
- 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)
- 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)
- 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:... and for me:
position: fixed; bottom: 10px; overflow: auto;
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)left: 19px;
- 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)- 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)- 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)
- 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)- 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' propertyright: 0
toleft: 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)
- Does your TOC have the "BawlFloatingToC" class?
- I think there's a word missing
- 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
- 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
- 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:
- 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)
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)
- Guarapiranga, Done— Alexis Jazz (talk or ping me) 08:24, 28 May 2022 (UTC)
- Awesome! Thanks, Alexis. So much speedier! — Guarapiranga ☎ 11:17, 28 May 2022 (UTC)
- 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)
- Awesome! Thanks, Alexis. So much speedier! — Guarapiranga ☎ 11:17, 28 May 2022 (UTC)
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)
- 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)- 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)- 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)
- 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)
- 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)
- Guarapiranga, dark mode gadget I presume? Try again. — Alexis Jazz (talk or ping me) 09:45, 29 May 2022 (UTC)
- 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)
- Guarapiranga, dark mode gadget I presume? Try again. — Alexis Jazz (talk or ping me) 09:45, 29 May 2022 (UTC)
- 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)
- 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)
- One more cosmetic suggestion, Alexis: the icons seem misaligned, both inline and, especially, in the tabs at the top. Adding to .BawlSVG fixed it for me. — Guarapiranga ☎ 05:14, 2 June 2022 (UTC)
vertical-align:middle
- 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)
- 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)
- Here are a few options from WM's own repo: , ,
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)
- 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)
- 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)
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)
- 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)
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) ―
- 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)
- 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)
- 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)
- 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)
- 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)- As Hemantha indicated, I too miss some of WP:LOCO options though (especially the relative timestamps). — Guarapiranga ☎ 00:27, 30 May 2022 (UTC)
- I'd guess this was related to when WP:LOCO was loaded
- 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)
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)
- Done NguoiDungKhongDinhDanh, I applied bug spray. — Alexis Jazz (talk or ping me) 01:37, 31 May 2022 (UTC)
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) ―
- 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)
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) ―
- 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)
- 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)
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) ―
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
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) ―
- 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)
- @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)
- 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)
- @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)
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)
- 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)
- 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)
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)
- 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)
- @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)
- I found User:The Voidwalker/alwaysEditSectionLink.js, but I don't think I'm actually running it. ― Qwerfjkltalk 16:53, 30 May 2022 (UTC)
- 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)
- 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
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)
- Guarapiranga, done, implemented various shortcuts from VE. — Alexis Jazz (talk or ping me) 09:55, 31 May 2022 (UTC)
- Cool! How about ctrl-shift-enter (as opposed to ctrl-enter) to submit minor comments? — Guarapiranga ☎ 12:13, 31 May 2022 (UTC)
- Guarapiranga, Done— Alexis Jazz (talk or ping me) 06:34, 1 June 2022 (UTC)
- 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)
- Guarapiranga, Done— Alexis Jazz (talk or ping me) 06:34, 1 June 2022 (UTC)
- Alexis, when I press ctrl-b, the highlighted text shows in the source editor window marked with mark
updown (**
) rather than wiki syntax ('''
). Is that how you intended it? — Guarapiranga ☎ 00:31, 2 June 2022 (UTC)- 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)
- 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)- 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)
- 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?
- 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)
- Cool! How about ctrl-shift-enter (as opposed to ctrl-enter) to submit minor comments? — Guarapiranga ☎ 12:13, 31 May 2022 (UTC)
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)
- 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)- 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)- 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)
- I'm not adding this feature for you
- 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.
- 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)
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)
- Guarapiranga, Done— Alexis Jazz (talk or ping me) 09:53, 31 May 2022 (UTC)
- Awesome! Thanks. — Guarapiranga ☎ 10:57, 31 May 2022 (UTC)
- 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)
- 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)
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)
- 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)
- — Guarapiranga ☎ 04:34, 31 May 2022 (UTC)
"<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&section=1&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> <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>"
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)
- 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)
- 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)
- 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)
- Guarapiranga, simple. It's sorcery. Actually, take a look at
- 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)
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)
- 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)
Question: Can I change the source editor font to monospaced?
I don't remember seeing that option... — Guarapiranga ☎ 14:52, 31 May 2022 (UTC)
- Done Guarapiranga, ctrl+alt+m. — Alexis Jazz (talk or ping me) 06:34, 1 June 2022 (UTC)
- Awesome. Is there a way to make it default? Cheers. — Guarapiranga ☎ 06:37, 1 June 2022 (UTC)
- 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)
- Found it! 😄
- Cheers. — Guarapiranga ☎ 07:33, 1 June 2022 (UTC)
- Tbc, I didn't request it below. I requested it above 😉 — Guarapiranga ☎ 07:34, 1 June 2022 (UTC)
- My bad, indeed you did! — Alexis Jazz (talk or ping me) 12:12, 2 June 2022 (UTC)
- 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)
- Awesome. Is there a way to make it default? Cheers. — Guarapiranga ☎ 06:37, 1 June 2022 (UTC)
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)
- How about adding an option for that? ― Qwerfjkltalk 18:39, 31 May 2022 (UTC)
- 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)
- Guarapiranga, Done— Alexis Jazz (talk or ping me) 12:13, 2 June 2022 (UTC)
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)
- 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)
- 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)
- 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)
- @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)- 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)
- @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 beforeFor 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)
- @Alexis Jazz: Currently, you are replacing line breaks with
- 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)' + indentlevel</syntaxhighlight> (e.g.
\n:::
,\n*::#
etc.). At the same time, be sure to preserve the line breaks inside the special tags mentioned above.
That being said, a comment that originally looks like this:'Foo bar.\n<syntaxhighlight>#foobar .foobar {\n\twhite-space: pre;\n}\n</syntaxhighlight>\nLorem ipsum\ndolor sit amet'
will eventually looks like this:'Foo bar.\n:::<syntaxhighlight>#foobar .foobar {\n\twhite-space: pre;\n}\n</syntaxhighlight>\n:::Lorem ipsum\n:::dolor sit amet'
NguoiDungKhongDinhDanh 14:56, 2 June 2022 (UTC)
- 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)
- @Alexis Jazz: If you managed to find out how many, why can't
- 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)
- 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)
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)
- 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)- 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]]/g
— Guarapiranga ☎ 04:40, 2 June 2022 (UTC)
- 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:
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. |
Feature request: Auto-mention when adding new section on a user's talk page
Nuff said. — Guarapiranga ☎ 04:55, 2 June 2022 (UTC)
- 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)- 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)- Especially when initiating conversation. — Guarapiranga ☎ 05:48, 2 June 2022 (UTC)
- Bawl takes addons?! Crafty!
- 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)
Feature suggestion: Add a Bawl's settings link somewhere else in addition to the bottom of the msg form
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)