User talk:Alexis Jazz/Factotum/Archives/2022

{{Archive|1=User talk:Alexis Jazz/Factotum}}

Bawl

You can bawl at the creator here. — Preceding unsigned comment added by Alexis Jazz (talkcontribs) 21:35, 5 January 2022 (UTC)

:{{re|Alexis Jazz}} Waaah, you didn't sign! I suppose Bawl will do that for you. On a constructive note, I'd love to have the option to auto-add {{tl|re}}.   — Jeff G. ツ 00:25, 6 January 2022 (UTC)

::{{u|Jeff G.}}, way ahead of you. Currently Bawl auto-adds {{tl|u}} (for enwiki, for other wikis the fallback is Example) but I suppose I could make it customizable anyway. — Alexis Jazz (talk or ping me) 02:46, 6 January 2022 (UTC)

:::There's a test version at User:Alexis Jazz/Bawl-test.js, I'm using it to write this message. — Alexis Jazz (talk or ping me) 03:12, 6 January 2022 (UTC)

::{{u|Jeff G.}}, it's customizable now. Let me know if you use or test Bawl anywhere so I can search your contributions for any anomalies. I fully understand if you'd rather wait until it has been tested more thoroughly. — Alexis Jazz (talk or ping me) 19:08, 6 January 2022 (UTC)

Hmmm...

Not sure why but your script seems to only work on this page. 1989 (talk) 03:09, 8 January 2022 (UTC)

:...and it's gone. 1989 (talk) 03:09, 8 January 2022 (UTC)

:{{u|1989}}, I moved some pages around and forgot to update the loader. Stupid mistake, should be fixed now. Sorry. Reply-link and DiscussionTools took years to develop, Bawl was created in about a month. It'd be weird if nothing went wrong. It's already good (when I'm not moving pages around like an idiot), but I call it early access for a reason. That being said, I'm using it right now, reply-link was unfixable and DiscussionTools.. well, also unfixable. — Alexis Jazz (talk or ping me) 18:44, 8 January 2022 (UTC)

:: That was not what was the cause. For some reason, when the section header was added, the icon next to the signature stopped showing up. I checked to see if it's conflicting with other scripts I have, it isn't. 1989 (talk) 19:00, 8 January 2022 (UTC)

:::{{u|1989}}, on which page? This page? Now still? What do you mean with "when the section header was added"? — Alexis Jazz (talk or ping me) 19:36, 8 January 2022 (UTC)

:::: Yep. == Hmmm... == 1989 (talk) 19:42, 8 January 2022 (UTC)

:::::{{u|1989}}, can you open the settings? I've just added the version after "Bawl! 📢". If you don't see the version, you need to refresh your browser cache. (do a hard refresh on [https://en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Bawl-test.js&action=raw&ctype=text/javascript]) If you see the version but still have the issue, can you enable debug mode in the settings, open the browser console, refresh the page and copy/paste the last few messages? — Alexis Jazz (talk or ping me) 19:52, 8 January 2022 (UTC)

::::::{{u|Alexis Jazz}}, there's no need for that. I found the culprit. Under Appearances in the Gadget section, there's a toggle for "Add an [edit] link for the lead section of a page" that's causing it. 1989 (talk) 20:02, 8 January 2022 (UTC)

:::::::{{u|1989}}, thanks, I doubt I would have figured that out myself as that gadget isn't enabled by default. I fixed it, having "Add an [edit] link for the lead section of a page" enabled no longer crashes Bawl. — Alexis Jazz (talk or ping me) 20:32, 8 January 2022 (UTC)

::::::::No problem, by the way, the "save publicly to common.js" button doesn't work. 1989 (talk) 21:09, 8 January 2022 (UTC)

:::::::::{{u|1989}}, I haven't implemented that bit yet. Should have probably hidden the button instead of disabling it. Settings must be saved to a cookie for now. — Alexis Jazz (talk or ping me) 22:48, 8 January 2022 (UTC)

::::::::::By the way, after saving it took me to User talk:Alexis Jazz/User talk:Alexis Jazz/Bawl. 1989 (talk) 03:42, 9 January 2022 (UTC)

:::::::::::I did make changes to that but I think it works again. Or kind of. You regularly post multiple comments within the same minute and this triggers some new bugs. (comments are identified by section + previous username + username + timestamp but that's not unique when you post in rapid succession on the same indentation level) Welp. I have to think about how to fix this. — Alexis Jazz (talk or ping me) 04:04, 9 January 2022 (UTC)

=Unclutter gadget compatibility=

{{re|Alexis Jazz}} Any chance this script could be compatible with User:Kephir/gadgets/unclutter? If you go on any other page besides this, your script will not work. 1989 (talk) 03:42, 9 January 2022 (UTC)

:{{u|1989}}, I see, I can probably fix that. For a quick fix, if you load unclutter with a delay it's fine. (var LoadUnclutter = setInterval(function () { clearInterval(LoadUnclutter); importStylesheet('User:Kephir/gadgets/unclutter.css'); importScript('User:Kephir/gadgets/unclutter.js'); }, 500); Btw {{u|Kephir}}: I got a notification of some unreachable code after a return statement, probably nothing major. It also doesn't seem to do everything it's advertised to be capable of (anymore?): the {{tl|Calm}} notice was still visible when I tried it on Talk:Roald Dahl and Talk:Austrian School. — Alexis Jazz (talk or ping me) 12:44, 9 January 2022 (UTC)

::{{re|Alexis Jazz}} Do you have a code version that works globally? 1989 (talk) 14:21, 9 January 2022 (UTC)

:::{{u|1989}}, what do you mean? If you're asking about projects besides enwiki, Bawl isn't designed for enwiki specifically. Unlike reply-link (which flat out refuses to load on any project it doesn't recognize) you should be able to load Bawl on any project. It benefits from per-wiki configuration though and you could run into unexpected behavior on wikis that are very different from enwiki. In particular right to left wikis are untested and wikis with a timezone other than UTC won't work. (requires a per-wiki config, feel free to request) You can add mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Bawl.js&action=raw&ctype=text/javascript'); to m:Special:MyPage/global.js to load Bawl globally. — Alexis Jazz (talk or ping me) 15:43, 9 January 2022 (UTC)

::::{{re|Alexis Jazz}} I meant the Unclutter code you provided. 1989 (talk) 16:30, 9 January 2022 (UTC)

:::::{{u|1989}}, that's just a basic delay. Try running var Delayed = setInterval(function () { clearInterval(Delayed); window.alert('did I make you wait?') }, 2000); from the browser console or insert it into the