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)
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)
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)