User talk:Jack who built the house/Convenient Discussions/Archives/2021

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Put on watchlist by defult

the fact you can watch a topic is really advanced, you can't normally do so without this tool but if theres something I think you should change is the fact that by defult, as soon as you comment the page will be added to your watchlist immidietly, it's sometimes annoying that if you forget to disable it with advanced options your watchlist can get full of pages you didn't want to follow... you should do that only if I want to follow the page I will mark that... Omer abcd (talk) 09:33, 4 January 2021 (UTC)

@Omer abcd, hm, it may be interesting idea! :) @Jack who built the house, on a note :) Iniquity (talk) 19:31, 8 January 2021 (UTC)
@Omer abcd I currently think that adding a page that you commented on to the watchlist is a preferred behavior, as generally if you comment somewhere, you are interested in checking out the response. Obviously it's not a universal case, but pretty much general. So currently I don't think it should be changed. Jack who built the house (talk) 06:55, 9 January 2021 (UTC)

"Desktop messeges are on" even when off

I set desktop notifications to not happpen, but still, whenever I enter a talk page the CD tells me to allow them or to set it off, but it's off anyways... Omer abcd (talk) 06:25, 11 January 2021 (UTC)

@Omer abcd Thanks, will be fixed in the next release. Jack who built the house (talk) 07:35, 11 January 2021 (UTC)

Ответ не на ту реплику

@Jack who built the house Давно хотел написать, но вот нажегся в очередной раз. На своем не самом широком мониторе я вижу обсуждения примерно вот так. В итоге я регулярно вместо ответа на нужную реплику отвечаю на реплику уровнем выше. А чтобы потом подвинуть, приходится открывать на редактирование код раздела. Всплывающий блок со ссылками в правой части находится просто вне поля зрения в тот момент, когда я собираюсь ответить. --Kaganer (talk) 08:07, 29 January 2021 (UTC)

@Kaganer: Заменил текст кнопки на «Ответить в раздел», надеюсь, это уменьшит число кликов по инерции. Jack who built the house (talk) 06:59, 8 February 2021 (UTC)
Спасибо. Посмотрим... --Kaganer (talk) 11:02, 8 February 2021 (UTC)

Moving GitHub project to wikimedia-gadgets

Would you be interested in migrating your GitHub repository to the unofficial Wikimedia gadget GitHub at https://github.com/wikimedia-gadgets? Ed6767 (talk) 12:01, 2 March 2021 (UTC)

@JWBTH: I've sent you an invitation to the github org. Of course you are welcome to move the repo over there if you wish. SD0001 (talk) 13:30, 3 March 2021 (UTC)
Pinging @Jack who built the house — Yours, Berrely • TalkContribs 11:55, 4 March 2021 (UTC)
@Ed6767, @SD0001: thanks for the invitation, but I'm not sure. What is the benefit other than different categorization? Jack who built the house (talk) 04:27, 6 March 2021 (UTC)
There's no benefit really. It's just a way of building a community. Also, if you were to go inactive, others would be able to push updates - for instance when a breaking change occurs in MediaWiki. SD0001 (talk) 19:53, 8 March 2021 (UTC)

Can't expand hidden sections

I started using this tool on English wikipedia. On a talk page with a collapsed section, as soon as my mouse gets near the show/hide command, the tool's Thank-Edit-Reply screen pops up over it. Is there a way for it to recognize show/hide bars and maybe appear below them or something? Schazjmd (talk) 01:40, 6 March 2021 (UTC)

@Schazjmd: Can you specify the page where this appears? I perhaps should disable detecting comments inside of collapsed section headers in the configuration. In any case, you can remove the comment menu by making a right-click or long click on it. Jack who built the house (talk) 04:23, 6 March 2021 (UTC)
@Jack who built the house: the 2d (single line) hidden section here. On the hidden section with multiple lines, the pop-up appears at the bottom so that "show" is still available there. However, the right-click and long click remedies work to vanish the pop-up, I just didn't discover them intuitively, thanks! Schazjmd (talk) 14:42, 6 March 2021 (UTC)
Oh, the header even has no classes on it. Perhaps I should allow making arbitrary selectors to filter out <th> elements in this case, since there is a low of legacy codebase that uses plain style attributes instead of TemplateStyles or global CSS. Jack who built the house (talk) 15:19, 6 March 2021 (UTC)

Add section feature doesn't work on certain pages

On en:Wikipedia talk:WikiProject Sweep, adding a new section isn't working. The form appears distorted to the right of the page rather than at the bottom. Best, SD0001 (talk) 04:02, 25 March 2021 (UTC)

Thanks for the report. That's a rare (I hope) page issue which I fixed. Jack who built the house (talk) 23:17, 25 March 2021 (UTC)

On archive pages, none of the CD buttons appear in the header. While I suppose there's good reason to hide most of those buttons, the "#" button for generating links is applicable and I think would be useful. Best, SD0001 (talk) 15:58, 26 March 2021 (UTC)

Section not found

When a non-existent section is loaded, on enwiki we have the gadget en:User:SD0001/find-archived-section that automatically searches the archives and comes up with the link to the archived section. In CD, the dialog offering to search in the archives is less useful as it requires an extra page load and extra click. Maybe incorporate the feature of that gadget into CD? Yes it isn't guaranteed to find the correct archived section (due to possibility of multiple archived sections with the same name) but it works 95% of the time. If not, maybe have an opt-out for the "section not found" dialog for those of us who prefer to use the enwiki gadget? SD0001 (talk) 16:55, 26 March 2021 (UTC)

@SD0001: Wow, that works cool!
> Maybe incorporate the feature of that gadget into CD?
It seems like a good idea. I'm not sure about the design (should CD replicate your script's behavior and place the note at the top? should a dialog pop up, like CD currently does? what should the script suggest if more than one section is found in the archives?), but the idea to save a click by searching for the archived section in advance seems promising.
Would you like to contribute to the script? The script's behavior when the section is not found is defined in this function, it is called from here. You can write with English strings, I'll internationalize afterwards. Or I can do everything myself crediting you for the idea.
> maybe have an opt-out for the "section not found" dialog for those of us who prefer to use the enwiki gadget
I guess it won't clutter the code much if I just check for !mw.user.options.get('gadget-find-archived-section') in my code. Although that probably won't be needed if the scripts end up doing the same thing. Jack who built the house (talk) 20:07, 27 March 2021 (UTC)
I'm hard-pressed for time so go for it. If more than one section is found in the archives, what find-archived-section does is to suggest the most recent one (use srsort=create_timestamp_desc), as that would be the one users are usually looking for. Personally I'm not a fan of modals and would prefer a smallish panel at the top of the page - though a panel does mean the content of the page jumps downwards post loading to make space for the panel - which is undesirable but would be negligible if the panel is thin enough. SD0001 (talk) 16:09, 28 March 2021 (UTC)

Fails on enwiki BRFA main page

The script fails on en:Wikipedia:Bots/Requests for approval, maybe because this page contains transclusions of pages with discussions? Sorry for opening so many new sections :) SD0001 (talk) 17:00, 26 March 2021 (UTC)

Appears to have been fixed with recent script updates. SD0001 (talk) 18:08, 31 March 2021 (UTC)
Yep. The cause was wrong handling of some types of forms created by ‎<inputbox>...‎</inputbox> by the script which it uses to extract "Add topic" buttons.
> Sorry for opening so many new sections :)
No reason to be sorry, your bug reports/suggestions are nothing but welcome. Jack who built the house (talk) 20:32, 31 March 2021 (UTC)
Also failing on en:WP:MFD. In pageNav.js line 185, this.$currentSection is undefined. SD0001 (talk) 12:23, 7 April 2021 (UTC)

Метки

При попытке сохранения правки в русской Википедии через этот скрипт происходит ошибка, сообщающая, что у меня нет прав ставить метки моим правкам.

217.117.125.88 13:27, 12 April 2021 (UTC)

Исправим. Jack who built the house (talk) 00:35, 13 April 2021 (UTC)
    1. Скажите, пожалуйста, когда?
    2. Кстати, почему для пинга не используется этот шаблон в русской Википедии и других вики, где он есть?
217.117.125.83 18:13, 19 August 2021 (UTC)
  1. Это уже было исправлено, но после очередного изменения (как раз таки исправляющего другие ошибки для анрегов) перестало работать, пардон. В следующей версии будет исправлено, надеюсь, в ближайшую неделю.
  2. Поэтому.
Jack who built the house (talk) 19:35, 23 August 2021 (UTC)

Кнопки и ссылки

Столкнулся с тем, что есть ссылка, но её невохможно нажать, потомучто при наведении мыши появляется кнопка, закрывающая её.

217.117.125.88 12:44, 21 April 2021 (UTC)

Длинное нажатие или правыц щелчок. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 12:46, 21 April 2021 (UTC)
По меню, да. Jack who built the house (talk) 20:07, 23 April 2021 (UTC)

Якоря

Отказывается расшифровывать якоря через точку.

217.117.125.88 12:44, 21 April 2021 (UTC)

А где они хоть присутствуют ещё? Я не уверен, что целесообразно их поддерживать ради совсем единичных случаев. Jack who built the house (talk) 20:07, 23 April 2021 (UTC)
I think the IP user is referring to the "Section not found" dialog. There's some code in find-archived-section to handle dot-decoded anchors. SD0001 (talk) 12:54, 27 April 2021 (UTC)
> I think the IP user is referring to the "Section not found" dialog
Yeah, I understood. Actually, CD supported them some time ago, but I removed the code thinking it's not much useful and because the code for it is long and ugly.
> There's some code in find-archived-section to handle dot-decoded anchors.
That's not enough I'm afraid. You will have to escape IP addresses, many of which contain strings that are interpreted as dot syntax sequences, then restore them. Besides IP addresses, there can be other strings that look like the dot syntax, but aren't, so the narrower the regexp is the better. See w:ru:Участник:Jack who built the house/proceedToArchive.js. Jack who built the house (talk) 13:10, 27 April 2021 (UTC)
Yes what find-archived section does is to search the archives for both the raw anchor and the dot-decoded anchor. So the only cases it fails to find a section is when an anchor contains both dot-encoding and IP addresses (or other string looking like the dot syntax) – because in such cases both the raw and dot-decoded anchors are wrong. But I would say that's an extreme edge case. So by searching for both, I think we get essentially 99+% accuracy without having to do any complicated escapes/restores! SD0001 (talk) 13:26, 27 April 2021 (UTC)
That could be a reasonable trade-off. Jack who built the house (talk) 13:30, 27 April 2021 (UTC)

Ошибка API: badtags. / The tag "convenient-discussions" is not allowed to be manually applied.

@Jack who built the house - у меня этот инструмент подключен глобально. В какой-то момент (недавно) он перестал работать в русских Викиновостях, выдавая при попытке сохранения ошибку "Страница не была отредактирована. Ошибка API: badtags. / The tag "convenient-discussions" is not allowed to be manually applied." Я почитал про то, что (теперь) нужно делать какой-то файл конфигурации и куда-то его загружать. Но не понял примерно ничего. Что нужно сделать, чтобы я мог пользоваться этим скриптом во всех проектах Викимедиа, никого этим специально не напрягая? --Kaganer (talk) 11:55, 26 April 2021 (UTC)

@Kaganer: У тебя в Викиновостях подключена рувиковская версия: n:Участник:Kaganer/common.js, она и пытается добавить тег, которого нет в Викиновостях. Убери её.
> (теперь) нужно делать какой-то файл конфигурации и куда-то его загружать
Нет, конечно, в базовом варианте всё должно работать без дополнительных действий со стороны пользователя. Файл конфигурации — только чтобы оптимизировать всякие детали. Jack who built the house (talk) 12:27, 26 April 2021 (UTC)
Спасибо! Видимо, тестировал что-то с отключением/включением скриптов, и в конце включил лишнее, не приходя в сознание. Убрал совсем оттуда. --Kaganer (talk) 22:47, 26 April 2021 (UTC)
Коли ты обратился, давай сразу вопрос задам. Ты некоторое время назад жаловался на фиолетовый фон собственных сообщений. Сейчас по умолчанию фона нет, есть только полоса слева от сообщений. Если её включить, она так же будет раздражать или будет ненужной тебе, или так окей? Я пытаюсь понять, нужно ли оставлять настройку, чтобы убрать помечание собственных сообщений (чем меньше настроек, тем меньше головной боли разработчику). Jack who built the house (talk) 12:37, 26 April 2021 (UTC)
У меня полоса по умолчанию включилась сама, когда перешли на этот стиль. Да, стало лучше - не раздражает. Спасибо! --Kaganer (talk) 22:38, 26 April 2021 (UTC)
@Kaganer: Ну, полоса должна была включиться для новых сообщений, а подсветка собственных у тебя вроде была отключена, так что, если она включилась сама, это странно 🤔 Но если не раздражает, я, пожалуй, уберу настройку. Jack who built the house (talk) 08:52, 27 April 2021 (UTC)
Да, я помню как отключал. Сейчас вижу, что настройка глобально включена. --Kaganer (talk) 01:10, 28 April 2021 (UTC)

This is a very niche case, so entirely okay if not supported. But if there's some script that attaches a "?useskin=..." or "?uselang=..." or other such query params to every link on the page, then CD thinks the parameter is part of the username, so fails to find comment in wikitext. See screenshot. Maybe have the username parser ignore query params in links? SD0001 (talk) 13:00, 27 April 2021 (UTC)

Thanks, I'll look into it. As part of optimization, the signature parser currently doesn't parse URLs by all the proper rules. Jack who built the house (talk) 13:25, 27 April 2021 (UTC)
I can't tell from the screenshot: does the link also get the external class? In the coming version, I specifically ignore links with such a class when looking for the author name. Jack who built the house (talk) 13:26, 27 April 2021 (UTC)
Nope, just the query param is added. BTW the culprit is the horribly hacky w:en:User:SD0001/skin-pref.js. SD0001 (talk) 13:33, 27 April 2021 (UTC)
Actually, the issue with w:en:User:BrandonXLF/NoRedirect.js discussed off-wiki is pretty similar, I think. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 16:26, 27 April 2021 (UTC)

NS_ERROR_FILE_CORRUPTED:

I'm seeing around 600+ errors a day on Russian Wikipedia (mostly from a single IP using Firefox) "NS_ERROR_FILE_CORRUPTED:"

Stack trace is

at U https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript:2:234062 at createLayers https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript:2:473076 at configureLayers https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript:2:476505 at highlightHovered https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript:2:477282

this happens when localStorage is exhausted and can be fixed by either wrapping localStorage.setItem in a try/catch block, or by using mw.storage.set.

Can you take a look? thank you in advance! Jon Robson, WMF 15:06, 24 May 2021 (UTC)

Thanks, I'll look into this. Yes, I was going to move to mw.storage.set. Though the script won't be updated for some time. Jack who built the house (talk) 20:35, 1 June 2021 (UTC)
@Jon (WMF): OMG, OMG. Can I ask you not to edit an extermely complex script used by hundreds of users to fix a error for a single user? Users started to report errors, and I couldn't even debug it because your edit broke source maps.
Here:
            try {
                const t = localStorage.getItem("convenientDiscussions-" + e);
            } catch (e) {
                mw.log.error('Failed to save to localStorage');
                return {};
            }
you've left the t variable alone in a block scope, and references to it further in the function became broken. All comment drafts that were saved in the local storage were lost for users who visited talk pages in the last 28 hours, along with some other (luckily, not that important) data. Please, again, don't edit the script without being absolutely sure what you're doing. Jack who built the house (talk) 20:09, 2 June 2021 (UTC)
@Jon (WMF): I mean, I really appreciate your job of fixing user scripts and making script authors know about errors and am grateful for it as someone whom this helps a lot, but man, this one was completely unnecessary. Jack who built the house (talk) 20:13, 2 June 2021 (UTC)
Also, please ping when doing such reports and especially edits; I'm not visiting Commons watchlist too often, let alone this JS file's talk page. Jack who built the house (talk) 20:33, 2 June 2021 (UTC)
And one more thing—this script is actively developed, and the development takes place in a repository from where it is deployed here automatically. I wouldn't even have noticed your changes, they would have just been erased with the next release of the script. Jack who built the house (talk) 00:33, 3 June 2021 (UTC)
Apologies. Lesson learned. Is a ping on User talk:Jack who built the house the best place to reach you in future or is there a different wiki or code repository that I should use instead? The reason I acted was that it was beginning to impact multiple IP addresses so this was not just one user and > 500 errors in quite significant noise in our logs.
Given the code is minified, could I suggest adding a line to the top alongside
/*! For reporting bugs please ping me directly on [[User talk:Jack who built the house]], expect reply within 14 days.\nFor license information please see https://commons.wikimedia.org/wiki/User:Jack_who_built_the_house/convenientDiscussions.js.LICENSE.js */
about reporting bugs? It's been helpful for other scripts.
Thanks for addressing the issue and thanks for your work. I will endeavor not touch this page in future. Jon Robson, WMF 01:10, 3 June 2021 (UTC)
A ping from anywhere is good enough, as is stated in the Feedback section, or a task at Phabricator can be created with tag "Convenient Discussions".
> could I suggest adding a line to the top alongside
I'll link the script's page from there, thanks.
> this was not just one user
Thank for informing, I'll fix it in the next few days. Quite puzzling where this error comes from, from googling it seems to be some Firefox's quirk. Jack who built the house (talk) 01:45, 3 June 2021 (UTC)

CD being jumpy

Hi Jack who built the house, I'd like to start by saying Convinient Discussions is possibly my favourite script, ever, and I cannot thank you enough for removing the pain of manually formatting replies and navigating talk nightmares.
I did noticed, that for some reason, on the English Wikipedia's Teahouse page, when scrolling to the bottom, CD causes the page to become extremely jumpy, and I'm struggling to figure out why. For some reason, this only happens on the Teahouse. Any help would be greatly appreciated. — Berrely • TC 17:51, 5 July 2021 (UTC)

On a related note, CD kind of seems to jump when clicking a "thank" or "link" button for a message, especially on longer pages. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 17:53, 5 July 2021 (UTC)
Hi @Berrely, thanks for the feedback! Can you describe in more detail what is happening on the Teahouse page? I opened the page, and if just scrolling to the bottom, there were no jumps. I can guess though that you might have experienced jumps after CD had marked comments as new. This had added items to the table of contents, and due to its position on the right of the page, CD hadn't handled this situation correctly and had scrolled to a wrong position. I have addressed this issue in the new version which will be released soon.
This is only a guess though, the explanation may be different, so provide the details please. Jack who built the house (talk) 19:24, 5 July 2021 (UTC)
I'll try to get a recording later, but it basically just starts going mad and quickly scrolling up and down when I hover over any comment, even after I've read all the comments. — Berrely • TC 05:49, 6 July 2021 (UTC)
@Berrely: Hm, that would be harder to explain, since there shouldn't be any scrolling after hovering a comment ever. What is your browser, by the way?
I should also note that currently the Teahouse page is quite broken; this image is actually placed way higher in the document, but due to a placement of two right-aligned elements (the table of contents and the archives) one after each other it falls through to the position of the archives block. So theoretically this could be a culprit of the problems with CD too, since it is sensitive to floating (i.e. left- or right-aligned) elements on the page in a way. Jack who built the house (talk) 17:32, 6 July 2021 (UTC)
@Jack who built the house, here is a video of the issue. As you can see, it only occurs on the Teahouse. It only started in the last fe days, CD was working fine before. Here's my user string: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0. I'm on Firefox 90.0b12.
If this can't be solved, it's fine, it's just that the Teahouse was probably the place I used CD the most :( — Berrely • TC 17:50, 6 July 2021 (UTC)
@Berrely: Thanks for the demonstration. My current guess is that either some other user script, not CD, is the culprit, or CD is affected somehow by that user script's behavior. Can you try disabling other user scripts (or even gadgets) and look if the problem goes away? Jack who built the house (talk) 17:57, 6 July 2021 (UTC)

"Reply" missing

@Jack who built the house The "reply" link seems to be missing at w:User talk:Σ/Testing facility/Archiver for me. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 20:13, 7 July 2021 (UTC)

Feature request(s)

  • The To Top, TOC links don't work very well on mobile.
  • The pinging would look nicer as @[[User:Example|Example]].
  • Some sort of implementation of en:User:Anomie/unsignedhelper would be nice, though probably infeasible.

Qwerfjkl (talk) 14:04, 28 July 2021 (UTC)

Pinging Jack who built the house. Qwerfjkl (talk) 14:05, 28 July 2021 (UTC)

Hi, thanks for the feedback.
The pinging would look nicer as @[[User:Example|Example]]
What differs now? Jack who built the house (talk) 14:18, 28 July 2021 (UTC)
@Qwerfjkl. Jack who built the house (talk) 14:18, 28 July 2021 (UTC)
@Jack who built the house I meant [[User:Example|]] Qwerfjkl (talk) 15:15, 28 July 2021 (UTC)
This gets substituted automatically, so I wouldn't see the point. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 15:17, 28 July 2021 (UTC)
Not sure about omitting @ as well: see en:Wikipedia:Village pump (technical)/Archive 188#202103042314_Steve_M. Jack who built the house (talk) 15:20, 28 July 2021 (UTC)

Скрипт глючит

Скрипт показывает, окошко с сообщением об ошибке в коносли и не загружается, а в консоли написано
TypeError: e is null
.

217.117.125.83 08:32, 2 August 2021 (UTC)

Понятия не имею, каким чудом скрипт вообще работает для незарегистрированных пользователей (такое его использование не подразумевалось), но, так как исправить эту ошибку было несложно, я это сделал. Jack who built the house (talk) 15:38, 7 August 2021 (UTC)
@Jack who built the house Консоль → mw.loader.load("...")? 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 21:24, 7 August 2021 (UTC)
Как его запустить-то, понятно :-) Jack who built the house (talk) 21:25, 7 August 2021 (UTC)
А что, на меню ответа как-то влияет учётная запись? 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 19:52, 8 August 2021 (UTC)
Учётная запись не влияет на большинство компонентов скрипта, но как минимум в отсутствии логина мы не можем взять имя текущего участника из mw.config.get('wgUserName'). Чтобы получить IP, надо делать запрос к API, что в данный момент в скрипте не реализовано. Мы не можем сохранить настройки и сделать другие вещи; сколько их — с ходу не скажу. Jack who built the house (talk) 20:56, 8 August 2021 (UTC)

Кнопка "Зачеркнутый текст" в режиме редактирования

@Jack who built the house: Давно собирался написать, что странно работают кнопки доп. инструментов в панели редактирования. В ру-вики кнопка "Зачеркнуть" вместо того, чтобы взять выделенный текст в теги, вставляет в начало абзаца код
<s>Зачёркнутый текст</s> (как будто ничего выделено не было).
Здесь, на Викискладе, так же себя ведут кнопки "Блок кода" и "Подчеркнуть" (в ру-вики они сейчас работают корректно). Win10, Яндекс-браузер. --Kaganer (talk) 20:51, 3 August 2021 (UTC)

@Kaganer: (Пинг не работает при редактировании сообщения.) Очень странно. Я у себя такого не наблюдаю. Не понимаю, откуда берётся разница между разделами, разве что какими-нибудь гаджетами раздела или личным common.js что-то перезаписывается. И в принципе у всех кнопок механизм добавления текста одинаковый. По идее, если одна вставляет код вместо оборачивания выделенного текста, то должны и остальные.
Теоретически какой-нибудь скрипт может сбрасывать выделение. Хм, на самом деле я недавно обнаруживал похожий баг, и он был связан с недавним обновлением страниц диффов в MediaWiki. Вы случайно не на странице диффа пытаетесь отвечать? Jack who built the house (talk) 15:35, 7 August 2021 (UTC)
@Jack who built the house: нет, конечно. --Kaganer (talk) 16:08, 8 August 2021 (UTC)

Bug?

I get this error on talk pages:

toc.js:338 Uncaught (in promise) TypeError: Cannot read property '$link' of null
    at <anonymous>:7:401000
    at Map.forEach (<anonymous>)
    at Object.addNewComments (<anonymous>:7:400850)
    at <anonymous>:7:512138
    at Generator.next (<anonymous>)
    at n (<anonymous>:7:10791)
    at r (<anonymous>:7:11005)

This may be due to the error discussed at en:WT:RW -Qwerfjkl (talk) 14:34, 8 August 2021 (UTC)

@Qwerfjkl: Thanks for the report. Can you specify where? Or everywhere? In what circumstances? Do you have any user scripts that modify the table of contents? Jack who built the house (talk) 19:09, 8 August 2021 (UTC)
@Jack who built the house: I don’t believe I have any scripts that modify the ToC. This seems not to have happened again (it’s been replaced by another, already-known error that stops me from viewing my comments after they have been posted). Qwerfjkl (talk) 07:10, 9 August 2021 (UTC)
@Qwerfjkl: Is it an error in CD? Jack who built the house (talk) 15:15, 9 August 2021 (UTC)
I will confirm this when RedWarn gets fixed if ever... Qwerfjkl (talk) 22:24, 12 August 2021 (UTC)

Outdents

@Jack who built the house This alters nutrients - see en:Help talk:Archiving (plain and simple)#substing. As a side note {{Outdent}} would be a nice featurew. Qwerfjkl (talk) 18:09, 16 August 2021 (UTC)

@Qwerfjkl: > This alters nutrients
Sorry, what does that mean? The script currently supports parsing outdent templates, but doesn't support adding yet. Jack who built the house (talk) 21:37, 16 August 2021 (UTC)
@Jack who built the house Oops, that was my autocorrect. I meant to say that they outdent template displayed different outdents when using CD and when not (at least forme). Qwerfjkl (talk) 07:03, 17 August 2021 (UTC)
@Qwerfjkl: Do you mean that the line is not wide enough to visually reach the comment before the outdented reply? Jack who built the house (talk) 08:00, 17 August 2021 (UTC)
@Jack who built the house Yes, it's one or two outdents short. Qwerfjkl (talk) 08:28, 17 August 2021 (UTC)
I'll look into it. Jack who built the house (talk) 09:58, 17 August 2021 (UTC)
@Qwerfjkl A specific example might be helpful. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 11:25, 17 August 2021 (UTC)
@1234qwer1234qwer4 I gave one (This alters nutrients [sic] - see en:Help talk:Archiving (plain and simple)#substing). Qwerfjkl (talk) 14:58, 17 August 2021 (UTC)
Ah, sorry, didn't notice for some reason. Looks like that's just because the indentation levels are placed further apart by CD. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 17:49, 17 August 2021 (UTC)
Yeah, right. Probably will just look for the element with width and multiply by a factor of 1.25. Jack who built the house (talk) 11:11, 18 August 2021 (UTC)

Minor problem

@Jack who built the house When clicking on a preload form, CD creates a new post instead. This leads to issues with <noinclude />. For example, on en:WT:REDWARN, clicking on the feature request creates a comment with this content: The <noinclude /> tag prevents the signature from substituting. {{subst:void|

Hello, and thank you for taking the time to request a feature from the RedWarn team!

For us to help you in the best way possible, we need your request to be defined, absolute, and clear. We unfortunately can't read minds, so you need to help us understand what you want. These might help you in deciding what to add to your message: - (+50 points) What exactly do you want from RedWarn - (+30 points) Where you expect to find this feature - (+10 points) A clear example of how this feature would be used - (+10 points) An example of how this feature has been implemented before.

The points are figurative, but they define how important each of those criteria are. You don't have to include all of those: just what you think is important to convey the idea of what you want from us.

We aim to respond within a few minutes, but can last up to hours or more. We're all volunteers as well, so we unfortunately can't be available all the time.

This message will disappear when you submit your bug report, so don't worry about having to remove it!

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

                        WRITE YOUR MESSAGE BELOW THE ARROWS                        

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓}} Please write your message here. ~~<noinclude/>~~ Qwerfjkl (talk) 19:27, 25 August 2021 (UTC)

Feature request

Can CD support notifications instead going to the watchlist, as reply tool shortly will (see en: Wikipedia:Village pump (technical)#dtenable testing)^ ? Qwerfjkl (talk) 20:15, 30 August 2021 (UTC)

@Qwerfjkl: Yep, notifications via the standard notifications interface will be supported soon. Jack who built the house (talk) 22:08, 30 August 2021 (UTC)
@Jack who built the house: Any idea when this will be added? (For now I've just enabled the beta feature for section subscription without the rest of the discussion tools.) Qwerfjkl (talk) 20:04, 4 January 2022 (UTC)
@Qwerfjkl: Sorry, I had to switch to another task in wikis. Most of the work has been done. I'm targeting for February now. Jack who built the house (talk) 02:07, 5 January 2022 (UTC)
Thanks. Qwerfjkl (talk) 07:18, 5 January 2022 (UTC)

Structure of comments

Hi, this comment seems not to be formatted properly. Can this be fixed? Qwerfjkl (talk) 18:04, 18 September 2021 (UTC)

IIRC that's the same thing that happens when <pre></pre> tags are used. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 18:47, 18 September 2021 (UTC)
@1234qwer1234qwer4: Not anymore. Jack who built the house (talk) 21:40, 22 September 2021 (UTC)
@Qwerfjkl: Since the new version that is just out, CD automatically fixes "indentation holes", i.e. comment parts formatted as the one you mentioned:
::: Comment start.
<blockquote>Some quote in an "indentation hole".</blockquote>
::: Comment end. [signature]
You can check the result. Jack who built the house (talk) 21:30, 22 September 2021 (UTC)

Comments in local time

Can you update this? CD automatically used local time so the other script can simply be removed. (The documentation need a to be updated as well.) Qwerfjkl (talk) 12:20, 19 September 2021 (UTC)

@Qwerfjkl: Oh, thanks, forgot about this notification. Will do. Jack who built the house (talk) 20:03, 22 September 2021 (UTC)

CD что-то не работает

Коллега Jack who built the house, день добрый! У меня со вчерашнего дня что-то перестали работать Удобные дискуссии - при заходе на страницы полностью пропали функции отображения новопоявившихся сообщений... Может Вы подскажете, с чем может быть связано... --Uchastnik1 (talk) 10:15, 23 September 2021 (UTC)

+1. Думал, это было связано с моим старым Файерфоксом, так как в свежем Эдже всё-таки работало. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 13:59, 23 September 2021 (UTC)
Да, я тоже сейчас по ряду причин сижу на компе со старым браузером и старой ОСью, но вот ещё вчера (и до этого) отлично работало... --Uchastnik1 (talk) 14:19, 23 September 2021 (UTC)
@Uchastnik1, @1234qwer1234qwer4: В консоли что-то типа SyntaxError: missing ( before catch? Сейчас исправлю, зря понадеялся на Babel. (Пожалуйста, всегда смотрите в консоль — F12 → Console, туда пишутся все ошибки.) Jack who built the house (talk) 18:23, 23 September 2021 (UTC)
Хм, у меня в консоли вообще ничего, связанного с CD. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 18:27, 23 September 2021 (UTC)
Ну вот такое есть, вроде: "This page is using the deprecated ResourceLoader module "jquery.ui". Please use OOUI instead." (в остальном пока так же) --Uchastnik1 (talk) 20:39, 23 September 2021 (UTC)
@Uchastnik1, @1234qwer1234qwer4: Исправил ошибку, на которую указал выше. Излечилось? Jack who built the house (talk) 22:05, 23 September 2021 (UTC)
Спасибо, у меня тоже заработало. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 12:12, 25 September 2021 (UTC)

Архивы

В польской Википедии (но иногда встречал и в русской) используется несколько необычная система архивации: на страницы тема удаляется, а в архив вместо реплик добавляется ссылка на тему на странице в последней версии перед архивацией. В связи с этим CD не находит тем в архиве.

217.117.125.83 17:08, 22 October 2021 (UTC)

Интересно. Не знаю, что тогда делать, отключить поиск в архиве, наверное, как-нибудь. Jack who built the house (talk) 23:56, 28 October 2021 (UTC)

"Couldn't process page" error on w:Template talk:EB1911 poster

CD does seem to still somewhat work on the page, but the highlighting of the comments when hovering over them flickers and disappears after a short while, and buttons such as "Reply" take a few tries to click.

Permalink: w:Special:Permalink/1053032411
Error toast: Convenient Discussions: Couldn't process the page. See the details in the JavaScript console (F12 → Console).
Error message in console:

TypeError: e.slice(...).reverse().find(...) is undefined
    setLevels CommentSkeleton.js:300
    setLevels CommentSkeleton.js:296
    reviewHighlightables Comment.js:770
    reviewHighlightables CommentStatic.js:547
    reviewHighlightables CommentStatic.js:546
    G processPage.js:1107
app.js:401:20

Rummskartoffel (talk) 18:31, 1 November 2021 (UTC)

br

Как сделать перенос строки без br?

217.117.125.83 11:53, 4 November 2021 (UTC)

Error

I keep getting an error message that says "User script comments_in_local_time.js is executed earlier than Convenient Discussions, which prevents the latter from working correctly. Follow the instructions here to make them compatible." I have however followed the instruction to make them compatible. Help please.
Princess of Ara (talk) 21:02, 8 November 2021 (UTC)

@Princess of Ara: Hi, I'm sorry for the delay. Do you still experience the issue? The problem could be that you still have the gadget enabled in en:Special:Preferences#mw-prefsection-gadgets, if that's English Wikipedia we're talking about. Jack who built the house (talk) 22:34, 6 December 2021 (UTC)
It's been sorted! Thank you! Princess of Ara (talk) 23:32, 6 December 2021 (UTC)

span’ы

  1. Просьба сделать кнопку добавления ссылки для всех, это удобно, например, когда нужно сослаться на мете на реплbку в англовики. 217.117.125.83 14:48, 10 November 2021 (UTC)
  2. Просьба сделать эти span’ы самозакрывающимися.

217.117.125.83 14:48, 10 November 2021 (UTC)

Странная правка

ru:Special:Diff/117933981 217.117.125.83 11:29, 17 November 2021 (UTC)

Vietnamese language

Hi, please add Vietnamese language (vi.json) to this tool. Thanks! P.T.Đ (talk) 08:03, 3 December 2021 (UTC)

Sorry about that, but because of some user commented about my translation, I have completely revised the translation of the script. It has been archived on GitHub, but hasn't been updated here. So, please update the Vietnamese translation to make it work better. Thanks. Flyplanevn27 (talk) 15:12, 14 December 2021 (UTC)