User talk:Dragoniez
Add topicDo you write user scripts for wikisource projects too? if not can you write one?
[edit]We at mrwikisource project are facing hell of a trouble about ocr tools. we need some tool to mass ocr pages. Atleast a one book at a time kind of tool. is it possible for you to write such a script? thanks QueerEcofeministđ 12:52, 5 August 2022 (UTC)
- @QueerEcofeminist: Is that like you want to extract text from images? I've never been active on wikisource projects and have no idea what contexts that kind of tool is used in, unfortunately. It seems like there are JavaScript OCR libraries like Tesseract.js out there so it should at least be possible to make an on-wiki OCR tool, but this is pretty much beyond the scope of "write a script" and is more like "create an application" or "build a universal library", as far as I'm concerned. How about filing a feature request on phablicator? Dragoniez (talk) 13:21, 5 August 2022 (UTC)
- Yeah. I think I should go for that only. A phabricator request seems workable. I don't know why I haven't thought it a about yet. Thanks QueerEcofeministđ 13:59, 5 August 2022 (UTC)
- Thanks for your help QueerEcofeministđ 14:00, 5 August 2022 (UTC)
- @QueerEcofeminist: You're welcome, sorry I can't provide any technical help but glad I was at least able to give you some idea. --Dragoniez (talk) 15:38, 5 August 2022 (UTC)
- Thanks for your help QueerEcofeministđ 14:00, 5 August 2022 (UTC)
- Yeah. I think I should go for that only. A phabricator request seems workable. I don't know why I haven't thought it a about yet. Thanks QueerEcofeministđ 13:59, 5 August 2022 (UTC)
mediawiki:User:Dragoniez/Gadget-MarkBLocked.js suggestion
[edit]The lock checks can be improved by adding the lock reason to the tooltip. See also a similar change on enwiki. DatGuy (talk) 16:32, 11 November 2022 (UTC)
- @DatGuy: Thanks for the info. I've never thought of using list=logevents to achieve this. I'm a bit busy right now but will have a closer look when I have time for that. Dragoniez (talk) 16:50, 11 November 2022 (UTC)
- @DatGuy It's been quite a while but I have finally introduced block tooltips to ja:MediaWiki:Gadget-MarkBLocked-core.js. You can see the relevant changes on test2wiki:Special:Diff/563273/563313, around line 830. Dragoniez (talk) 20:54, 11 August 2024 (UTC)
- @Dragoniez: thanks, much more appealing visually now. On another note, I personally prefer having relative time formats instead of absolute ones. Specifically, my preferred format is '$action ($duration) by $blocker: $reason ($time ago)', which I personally consider more intuitive than ISO 8601. Do you think you could implement it, or a customisation mechanism that wouldn't require a forking in general? There's an implementation of it in my forked script that I used beforehand, if it helps. DatGuy (talk) 17:48, 3 November 2024 (UTC)
- Additionally, it seems that it sometimes doesn't parse the content. The console output returns a selector of #xtools_result, which is for mediawikiwiki:XTools/ArticleInfo.js. DatGuy (talk) 12:40, 8 November 2024 (UTC)
- @Dragoniez: thanks, much more appealing visually now. On another note, I personally prefer having relative time formats instead of absolute ones. Specifically, my preferred format is '$action ($duration) by $blocker: $reason ($time ago)', which I personally consider more intuitive than ISO 8601. Do you think you could implement it, or a customisation mechanism that wouldn't require a forking in general? There's an implementation of it in my forked script that I used beforehand, if it helps. DatGuy (talk) 17:48, 3 November 2024 (UTC)
Configure MarkBLocked
[edit]I have enabled the MarkBLockedGlobal. Thanks for the script, but the "MarkBLockedGlobal" link from the right toolbar is intrusive. Is there any way to disable it? I do not think that I will visit Special:MarkBLockedConfig too often. --NGC 54 (talkď˝contribs) 20:04, 9 December 2023 (UTC)
- The same issue with "ToollinkTweaks". :) --NGC 54 (talkď˝contribs) 20:12, 9 December 2023 (UTC)
- Hi NGC 54, just to make sure I've got your needs right, you want the portlet links to not be there because they in some sense flood the toolbar (and you don't mean by "instrusive" that there're technical issues with them)?
The scripts currently don't have an option to opt out for portlet link generation, but you can remove the links right after their generations by adding the following code to the top of your global.js:You might want to try this. Let me know if you need further help. Dragoniez (talk) 04:19, 10 December 2023 (UTC)mw.hook('util.addPortletLink').add(function(portlet) { var id = portlet && portlet.id; if (id === 'ca-mblc' || id === 'ca-ttc') { portlet.remove(); } });
- It works now, after adding the code. --NGC 54 (talkď˝contribs) 14:15, 10 December 2023 (UTC)
- @NGC 54 Great :) Iâm guessing it may be useful if I add a config for this, and if I ever do that Iâll let you know. Dragoniez (talk) 17:01, 10 December 2023 (UTC)
- It works now, after adding the code. --NGC 54 (talkď˝contribs) 14:15, 10 December 2023 (UTC)
- @NGC 54 I have updated the core module and you can now opt out for portlet link generation at Special:MarkBLockedConfig. I have also reworded the portlet link text from "Configure MarkBLocked" to "MBL config", to address the issue of the intrusiveness you mentioned. Dragoniez (talk) 22:02, 8 August 2024 (UTC)
Have MarkBLocked doublestrike instead of red underline
[edit]Is it possible to configure MarkBLocked to strike global (b)locks twice, slightly similar to an oversighted revision, instead of a red underline? Aaron Liu (talk) 20:13, 25 February 2024 (UTC)
- @Aaron Liu Yes that's possible, although you'll need to prepare CSS that overwrites ja:MediaWiki:Gadget-MarkBLocked-core.css. Find
RU
(signifying "red underline"), copy all of them into your global.css, and modify the code in a way like this. Dragoniez (talk) 01:25, 26 February 2024 (UTC)- Wow, that's a lot! I'll take a look at it, thanks! Aaron Liu (talk) 01:48, 26 February 2024 (UTC)
- @Aaron Liu I've just updated the core module and introduced some double styles, though in a different way from the one you mentioned. Check out User:Dragoniez/MarkBLockedGlobal/versions#v3.0.0 for details. And, the style sheet is now much cleaner. Dragoniez (talk) 20:57, 11 August 2024 (UTC)
- That's wonderful! It is a lot better. Aaron Liu (talk) 22:15, 11 August 2024 (UTC)
- @Aaron Liu I've just updated the core module and introduced some double styles, though in a different way from the one you mentioned. Check out User:Dragoniez/MarkBLockedGlobal/versions#v3.0.0 for details. And, the style sheet is now much cleaner. Dragoniez (talk) 20:57, 11 August 2024 (UTC)
- Wow, that's a lot! I'll take a look at it, thanks! Aaron Liu (talk) 01:48, 26 February 2024 (UTC)
DragoniezBot
[edit]Is User:DragoniezBot your account? I found this one on an LTA range, but I waited with potentially locking this one as this was a large range and the account had no edits or blocks anywhere. EPIC (talk) 08:25, 10 August 2024 (UTC)
- Thanks EPIC, as always. That's not mine. Dragoniez (talk) 08:29, 10 August 2024 (UTC)
- Thanks for the reply! Now locked. EPIC (talk) 08:36, 10 August 2024 (UTC)