User talk:DaxServer/DiscussionCloser

Latest comment: 13 days ago by DaxServer in topic RSN
edit

Howdy! On vector (2010), the close link looks a bit different than it did before. Image. It used to look like the Archive link in that image (bold, smaller font), and be right next to the Archive link instead of creating a sandwich around the subscribe link, which was a little less visually jarring. If you're interested, it may be good to restore this previous behavior. Oh, and FYI, the archive link is from WP:1CA. –Novem Linguae (talk) 16:08, 25 June 2024 (UTC)Reply

Yes, I wanted to work on that but didn't have much of the energy this morning. Do you know of any reusable CSS classes from mediawiki software that can be applied? — DaxServer (t·m·e·c) 20:31, 25 June 2024 (UTC)Reply
My recommendation would be to install a one click archiver such as User:Elli/OneClickArchiver, find the Archive link, right click -> inspect element, and copy that style exactly, so that the two links are identical. It uses the same style that the Close link used to use. As for mediawiki/vector tokens to use, not sure. –Novem Linguae (talk) 22:19, 25 June 2024 (UTC)Reply
@Novem Linguae I've adjusted the styling and moved it after so it is now aligned closer to the archive link. Also moved the styling to .DC-close-widget class and thus can be customized by overriding the default styles. — DaxServer (t·m·e·c) 09:08, 27 June 2024 (UTC)Reply
Thanks! Unfortunately after the latest update, the close link has disappeared for me. Example: https://en.wikipedia.org/wiki/User_talk:DaxServer/DiscussionCloser?useskin=vectorNovem Linguae (talk) 16:28, 27 June 2024 (UTC)Reply
Oopsie, my bad. Fixed now. — DaxServer (t·m·e·c) 18:34, 27 June 2024 (UTC)Reply
Yay, it's back. Thanks! It looks a little different than the "Archive" link. 1) Consider bolding it. 2) Consider matching its color. –Novem Linguae (talk) 19:36, 27 June 2024 (UTC)Reply
@Novem Linguae Would you be able to test out this User:DaxServer/DiscussionCloser-new.js and give some feedback. I haven't put a preview yet. — DaxServer (t·m·e·c) 20:42, 27 June 2024 (UTC)Reply
Sure. Unfortunately the Close link is way out of position in the dev version. It's on the left now. Screenshot.Novem Linguae (talk) 23:55, 27 June 2024 (UTC)Reply
The styling was missing. It worked for me as I had both the userscripts in the same file in the localhost and thus the styling loaded for me. lol — DaxServer (t·m·e·c) 06:03, 28 June 2024 (UTC)Reply

RMs

edit

DiscussionCloser was used to improperly close a RM at [1]. Please add code to detect RMs and refuse to operate on them. 142.113.140.146 (talk) 18:32, 23 July 2024 (UTC)Reply

Thanks for letting me know. Let me check into that — DaxServer (t·m·e·c) 18:55, 23 July 2024 (UTC)Reply
  Done with a message to direct to use User:TheTVExpert/rmCloser instead, altho the implementation is a bit hacky but will do it for now — DaxServer (t·m·e·c) 08:58, 30 July 2024 (UTC)Reply
Also added a link to Move+DaxServer (t·m·e·c) 08:37, 1 August 2024 (UTC)Reply

Discsussion top/bottom

edit

Would you be able to add {{dtop}} and {{dbot}} as an option? Thanks, voorts (talk/contributions) 01:51, 5 August 2024 (UTC)Reply

@Voorts I've added the option in a newly improved version here: User:DaxServer/DiscussionCloser-new.js Would you be able to install and test it? Once any bugs are fixed, I'm looking to move that code into this script. Thanks — DaxServer (t·m·e·c) 12:39, 5 August 2024 (UTC)Reply
Seems to be working fine. voorts (talk/contributions) 22:00, 5 August 2024 (UTC)Reply

Not working on some pages

edit

For some reason, the close tool isn't showing up here. voorts (talk/contributions) 16:39, 9 August 2024 (UTC)Reply

@Voorts   Done
The script works when it detects an "Add new section" in the menu near the Edit at the top. Unfortunately, this page doesn't have that functionality. I've added a hook so that the script can work on additional pages as configured. I'm looking forward to make that user-configurable variable if someone wants to enhance for their specific use. — DaxServer (t·m·e·c) 17:03, 9 August 2024 (UTC)Reply

RSN

edit

Hi @DaxServer, I hope all is well. RE User:DaxServer/DiscussionCloser-new.js, the close button isn't showing up for level 2 headings at WP:RSN, but it's working for level 3 headings. Best, voorts (talk/contributions) 23:08, 30 August 2024 (UTC)Reply

Hi @Voorts. Interestingly, it shows up for me, both in Vector legacy and Vector new. Which theme are you using? Do you see any errors in the console on WP:RSN? — DaxServer (t·m·e·c) 08:53, 31 August 2024 (UTC)Reply