Jump to content

User talk:Hoo man/Scripts

Add topic
From Meta, a Wikimedia project coordination wiki

Useful links and others that occupy the top right row don't work so well in monobook, as they often conflict with other links there, e.g. Twinkle's. Also, is "7+ active sysops" the maximum limit (that I'm getting on big wikis, including this one) or is that just because of current Toolserver lagging? -- Mentifisto 10:25, 29 October 2011 (UTC)Reply

Nevermind about the maximum limit issue, I realize it's intentional. By the way, the top right links seem to look good in most skins except monobook. They seem to fit perfectly in Modern, for some reason. -- Mentifisto 13:35, 29 October 2011 (UTC)Reply

Tagger

[edit]

Thanks for the great tool. I have no idea about technical issues concerning this but is it possible to change the source code that one could also create pages using tagging? German: Da mein englisch so schlecht ist und du ja auch deutsch kannst hier noch mal auf deutsch: Könnte man eine Funktion implementieren, die es erlaubt Seiten mit dem selben einfachen Verfahren zu erstellen? Das könnte beim Verwarnen von Vandalen sehr praktisch sein. wäre sehr praktisch, aber mit der technischen Umsetzung kenne ich mich natürlich überhaupt nicht aus. --Macuser10 (talk) 21:51, 21 August 2013 (UTC)Reply

Smart rollback translation - nl

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : 'Smart rollback',
	'hoo-smartRollback-windowTitle' : 'Smart rollback',
	'hoo-smartRollback-windowButton' : 'Update links',
	'hoo-smartRollback-windowMassButton' : 'Draai alles terug',
	'hoo-smartRollback-editSummary' : 'bewerkingssamenvatting:',
	'hoo-smartRollback-editSummaryInfo' : '($1 wordt vervangen door de gebruikersnaam wiens bewerkingen zijn teruggedraaid)',
	'hoo-smartRollback-customEditSummary' : 'Aangepaste bewerkingssamenvatting:',
	'hoo-smartRollback-markbotedits' : 'Markeer bewerkingen als bot-bewerkingen:',
	'hoo-smartRollback-confirm' : 'Weet je zeker dat je alle pagina's wilt terugdraaien?',
	'hoo-smartRollback-yes' : 'Ja',
	'hoo-smartRollback-no' : 'Nee',
	'hoo-smartRollback-useDefault' : 'Gebruik de standaard bewerkingssamenvatting',
	'hoo-smartRollback-other' : 'Andere ->',
	'hoo-smartRollback-editSummaries' : [
		'terugdraaien (vandalisme)',
		'terugdraaien (test)',
		'terugdraaien'
	],
	'hoo-closeButtonText' : 'Sluit'
});

Southparkfan 13:20, 15 December 2013 (UTC)Reply

Active sysops request

[edit]

I don't want the Global Sysop wiki box showing on wikis where I am a local sysop (like on Wikidata), and also on wikis where I don't want it. Is there some way of using javascript to retrieve the usergroups of a user and using an if statement to change markWikisGS, and to get what wiki you are currently using and disabling it (again with an if statement)? Techman224Talk 00:55, 5 February 2014 (UTC)Reply

if (mw.config.get("wgUserGroups").indexOf("sysop") >= 0) PiRSquared17 (talk) 01:07, 5 February 2014 (UTC)Reply
BTW one liner: activeSysopsConfig.markWikisGS = mw.config.get("wgUserGroups").indexOf("sysop") < 0; PiRSquared17 (talk) 01:17, 5 February 2014 (UTC)Reply

I found another problem. On Wikidata it is showing 0 active sysops. Techman224Talk 05:49, 10 February 2014 (UTC)Reply

Non-wikimedia wiki

[edit]

Hi. I would like to use your script on non-wikipedia (but run by Mediawiki) wiki site. Is it ok to use your script by linking to your script page, or copy the script, or ... ? Please let me know if you are against non-wikipedia use. Thanks. --Мирослав Ћика (talk) 20:19, 29 July 2014 (UTC)Reply

Problems with Compact Personal Bar

[edit]

There seems to be a problem with some of your gadgets and the new Compact Personal Bar in beta right now. Any gadget that is put above the search box is now hovering over the search box, preventing it from being used. These include your active sysops.js, tagger.js and Sledge hammer (and possibly even more.). It probably has to do with space between the personal tools bar and the navigation bar, as that seems to be gone. Techman224Talk 03:02, 8 September 2014 (UTC)Reply

Congrats for your scripts

[edit]

Hi, I congratulate you for your scripts, they are fantastic. Greetings.--Syum90 17:11, 30 October 2014 (UTC)Reply

Thank you! - Hoo man (talk) 20:56, 31 October 2014 (UTC)Reply

Active sysops

[edit]

Hi Hoo, first of all congrats for your very useful scripts. I've noticed that activeSysops is no longer working since two days. Do you know why or is it only my problem? Thanks in advance. --Nastoshka (talk) 09:27, 3 April 2015 (UTC)Reply

Yeah, it's been down for so long already :( I really miss that tool. I don't want to delete pages as a steward with wiki's over 10 active admins. ;) @Hoo man: --Stryn (talk) 18:03, 16 April 2015 (UTC)Reply
Fixed... seems like I forgot to restart the web service whenever labs went down last time. Cheers, Hoo man (talk) 20:45, 16 April 2015 (UTC)Reply
Thanks a lot Hoo man! --Nastoshka (talk) 11:19, 17 April 2015 (UTC)Reply

6 tags in the code, only 5 in the popup

[edit]

The code mentions 6 tags, but the string taggerDefaultConfig.tags[2] is double. I presume the second taggerDefaultConfig.tags[2] overwrites the first one, because the popup shows no {{delete|no article - ~~~~}}. Regards --Schniggendiller (talk) 12:31, 11 May 2015 (UTC)Reply

Done - Hoo man (talk) 11:16, 20 March 2016 (UTC)Reply

Smart rollback

[edit]

@Hoo man: Hi, I'm extremely grateful to your useful scripts. And, I have a request in regards to that tool. The actual revert summary (replaces $1 with the name of the user which has been reverted) Are you able to change this script to add options as follows?

if(typeof(smartRollbackConfig) === 'undefined') smartRollbackConfig = {};
smartRollbackConfig.enableReplaces$1 = false;

Thanks, --Infinite0694 (Talk) 07:37, 22 June 2015 (UTC)Reply

I'd like to request this too. If I use the following code and rollback edits by user A to the edit by user B:
if(typeof(smartRollbackConfig) === 'undefined') smartRollbackConfig = {};
	smartRollbackConfig.editSummaries = {};
	smartRollbackConfig.editSummaries[0] = '[[H:RV|Rollback]] edit(s) by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1';
It gives me "Rollback edit(s) by user B (talk) to last version by user B". Thank you so much for your consideration.--Dragoniez (talk) 06:05, 19 November 2021 (UTC)Reply

Smart rollback

[edit]

I performed a few tests on testwiki & mediawiki, and this script doesn't work anymore on both wikis (both of them use new version of MediaWiki), probably due to phab:T88044. Ping @Hoo man:. It'd be nice if someone can confirm this. Matiia (talk) 03:48, 25 May 2016 (UTC)Reply

Very well possible that it breaks due to that. Not sure I'll find the time to address this in the upcoming days. Cheers, Hoo man (talk) 10:56, 26 May 2016 (UTC)Reply

Two questions about Smart rollback

[edit]

@Hoo man:: nice script, I have been looking for something like this. Thinking about using it in Estonian Wikipedia. If I send you translated mw.messages.set, will you put it to Meta? (I notice that nl translation was posted but still not in Meta.) And I would like to add the option of not running the script in the recent changes page – to avoid the possibility of some inexperienced user accidentally reverting all recent changes by many different users in one go. I could update the script myself if you don't have time. Best regards, Cumbril (talk) 00:18, 26 October 2016 (UTC)Reply

Old English Wiki

[edit]

I see that you edit the Ænglisc Wiki and I see that you are an admin so I'm wondering about editing the Ænglisc Wiki. Wario Toad 32 (talk) 05:16, 22 December 2016 (UTC)Reply

[Bug] PageTagger and UsefulLinks -- disabled for not being able to click on article tabs

[edit]

@Hoo man: Hello! Unfortunately I had to disable the tagger and useful links gadgets since from yesterday they won't let me click on the edit/history/delete/etc. tabs of the articles. I see that some UI modifications have been done to MediaWiki recently and that might be the cause? I don't know but I'm willing to do a live debug session when you've got time for that. Best regards, —MarcoAurelio 10:54, 17 February 2017 (UTC)Reply

@MarcoAurelio: Same here, but I changed their location to tools. ‐‐1997kB (talk) 08:51, 7 October 2018 (UTC)Reply

SmartRollback pt translation

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : 'Smart rollback',
	'hoo-smartRollback-windowTitle' : 'Smart rollback',
	'hoo-smartRollback-windowButton' : 'Atualizar links',
	'hoo-smartRollback-windowMassButton' : 'Reverter tudo',
	'hoo-smartRollback-editSummary' : 'Sumário de edição:',
	'hoo-smartRollback-editSummaryInfo' : '($1 será substituído pelo nome do usuário revertido)',
	'hoo-smartRollback-customEditSummary' : 'Sumário de edição personalizado:',
	'hoo-smartRollback-markbotedits' : 'Marcar edições como bot:',
	'hoo-smartRollback-confirm' : 'Você realmente quer reverter automaticamente todas as páginas?',
	'hoo-smartRollback-yes' : 'Sim',
	'hoo-smartRollback-no' : 'Não',
	'hoo-smartRollback-useDefault' : 'Usar o sumário de edição padrão',
	'hoo-smartRollback-other' : 'Outro ->',
	'hoo-smartRollback-editSummaries' : [
		'reverter (vandalismo)',
		'reverter (edição teste)',
		'reverter'
	],
	'hoo-closeButtonText' : 'Fechar'
});

Hope this helps users in ptwiki and other Portuguese language projects. Chico Venancio (talk) 21:59, 19 February 2017 (UTC)Reply

[edit]

Hello, Thanks for such helpful scripts. But the issue is that tagger and helpful links doesn't show up on some wikis which are in global wiki list. For eg. hiwiki, where it doesn't shows. ‐‐1997kB (talk) 08:50, 7 October 2018 (UTC)Reply

Fixed, there was issue with translation on hiwiki. 1 ‐‐1997kB (talk) 14:03, 22 October 2018 (UTC)Reply

Translation to Asturian

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : 'Smart rollback',
	'hoo-smartRollback-windowTitle' : 'Smart rollback',
	'hoo-smartRollback-windowButton' : 'Anovar enllaces',
	'hoo-smartRollback-windowMassButton' : 'Esfacer too',
	'hoo-smartRollback-editSummary' : 'Editar resume:',
	'hoo-smartRollback-editSummaryInfo' : '($1 va ser reemplazáu pol nome del usuariu esfechu)',
	'hoo-smartRollback-customEditSummary' : 'Resume d\'edición personalizáu:',
	'hoo-smartRollback-markbotedits' : 'Marcar les ediciones como ediciones de robó:',
	'hoo-smartRollback-confirm' : '¿Realmente quies esfacer automáticamente toles páxines?',
	'hoo-smartRollback-yes' : 'Sí',
	'hoo-smartRollback-no' : 'Non',
	'hoo-smartRollback-useDefault' : 'Usar el resume d\'edición por defeutu',
	'hoo-smartRollback-other' : 'Otru ->',
	'hoo-smartRollback-editSummaries' : [
		'esfacer (vandalismu)',
		'esfacer (prueba d\'edición)',
		'esfacer'
	],
	'hoo-closeButtonText' : 'Zarrar'
});

YoaR (talk) 07:28, 30 May 2019 (UTC)Reply

editToken

[edit]

Hey @Hoo man: editToken has been renamed to csrfToken so please update it in User:Hoo man/functions.js. ‐‐1997kB (talk) 04:31, 14 October 2019 (UTC)Reply

It's showing token parameter must be set error message to me. Is this releted? -- CptViraj (📧) 13:31, 14 October 2019 (UTC)Reply
@CptViraj: Yes. ‐‐1997kB (talk) 03:40, 18 October 2019 (UTC)Reply
Done by Martin Urbanec ‐‐1997kB (talk) 05:47, 18 October 2019 (UTC)Reply

Unable to click the button with the new desktop interface

[edit]

Hello @Hoo man:, I got a problem with SmartRollback. I can't click the button with the new desktop interface, which was set up a few days ago. I believed I could repair that problem using my common.css, by adding #toolLinks {height: 23px;}, but it unfortunately didn't work. What can I do to solve this problem ? Do you think you can do something ? Thanks in advance. Regards, Aymeric50800 (talk) 15:11, 11 August 2021 (UTC)Reply

Hello, i have the same problem. The Smart Rollback button should be under the icon. There is per exemple Global Watchlist gadget which works very well with the new interface. Regards,--Jean-Mahmood (talk) 21:21, 11 August 2021 (UTC)Reply
Example
Example with Global Watchlist Gadget
Hello @Hoo man:, did you find a way to solve this problem ? Smart Rollback was very useful to many rollbackers. Regards, Aymeric50800 (talk) 16:15, 28 October 2021 (UTC)Reply

Translation to Italian language (it)

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : 'Smart rollback',
	'hoo-smartRollback-windowTitle' : 'Smart rollback',
	'hoo-smartRollback-windowButton' : 'Aggiorna collegamenti',
	'hoo-smartRollback-windowMassButton' : 'Annulla tutto',
	'hoo-smartRollback-editSummary' : 'Oggetto di modifica:',
	'hoo-smartRollback-editSummaryInfo' : '($1 sarà sostituito con il nome dell'utente annullato)',
	'hoo-smartRollback-customEditSummary' : 'Oggetto della modifica personalizzato:',
	'hoo-smartRollback-markbotedits' : 'Rollback nascosti:',
	'hoo-smartRollback-confirm' : 'Annullare le modifiche su tutte le pagine?',
	'hoo-smartRollback-yes' : 'Sì',
	'hoo-smartRollback-no' : 'No',
	'hoo-smartRollback-useDefault' : 'Usa un oggetto di modifica predefinito',
	'hoo-smartRollback-other' : 'Altro ->',
	'hoo-smartRollback-editSummaries' : [
		'annullo (vandalismo)',
		'annullo (test)',
		'annullo'
	],
	'hoo-closeButtonText' : 'Chiudi'
});

--valepert (talk) 18:28, 28 September 2022 (UTC)Reply

Smart rollback translation - Vietnamese (vi)

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : Lùi sửa thông minh',
	'hoo-smartRollback-windowTitle' : 'Lùi sửa thông minh',
	'hoo-smartRollback-windowButton' : 'Cập nhật liên kết',
	'hoo-smartRollback-windowMassButton' : 'Lùi toàn bộ',
	'hoo-smartRollback-editSummary' : 'Tóm lược sửa đổi:',
	'hoo-smartRollback-editSummaryInfo' : '($1 sẽ được thay bằng tên của thành viên đã được lùi sửa)',
	'hoo-smartRollback-customEditSummary' : 'Tóm lược sửa đổi tuỳ chỉnh:',
	'hoo-smartRollback-markbotedits' : 'Đánh dấu sửa đổi là bot:',
	'hoo-smartRollback-confirm' : 'Bạn chắc chắn muốn lùi sửa trên tất cả các trang?',
	'hoo-smartRollback-yes' : 'Có',
	'hoo-smartRollback-no' : 'Không',
	'hoo-smartRollback-useDefault' : 'Sử dụng tóm lược sửa đổi',
	'hoo-smartRollback-other' : 'Khác ->',
	'hoo-smartRollback-editSummaries' : [
		'Lùi tất cả (phá hoại)',
		'Lùi tất cả (sửa đổi thử nghiệm)',
		'Lùi tất cả sửa đổi'
	],
	'hoo-closeButtonText' : 'Đóng'
});

CC Hoo man. Tryvix1509 (talk) 03:59, 27 January 2023 (UTC)Reply

Active sysops

[edit]

Hi, your hoo API doesn't work for wikivoyages (example) and bnwikiquote. Can you please fix it? —Yahya (talkcontribs.) 23:16, 21 September 2023 (UTC)Reply

CC @Hoo manYahya (talkcontribs.) 23:18, 21 September 2023 (UTC)Reply
@Hoo man 2605:B100:D42:4380:1C29:FC3D:FD30:49DD 07:32, 10 December 2023 (UTC)Reply
Ugh, I see. I'll have a look very soon. Cheers, Hoo man (talk) 10:53, 12 December 2023 (UTC)Reply
@Yahya: Done should be fixed now. Cheers, Hoo man (talk) 19:56, 13 December 2023 (UTC)Reply

Smart rollback translation – Finnish

[edit]
mw.messages.set({
	'hoo-smartRollback-toolbarText' : 'Älykäs palautus',
	'hoo-smartRollback-windowTitle' : 'Älykäs palautus',
	'hoo-smartRollback-windowButton' : 'Päivitä linkit',
	'hoo-smartRollback-windowMassButton' : 'Kumoa kaikki',
	'hoo-smartRollback-editSummary' : 'Muokkausyhteenveto:',
	'hoo-smartRollback-editSummaryInfo' : '($1 korvataan palautetun käyttäjän nimellä.)',
	'hoo-smartRollback-customEditSummary' : 'Mukautettu muokkausyhteenveto:',
	'hoo-smartRollback-markbotedits' : 'Merkitse muokkaukset bottimuokkauksiksi:',
	'hoo-smartRollback-confirm' : 'Haluatko todella palauttaa kaikki sivut automaattisesti?',
	'hoo-smartRollback-yes' : 'Kyllä'',
	'hoo-smartRollback-no' : 'Ei',
	'hoo-smartRollback-useDefault' : 'Käytä oletusarvoista muokkausyhteenvetoa',
	'hoo-smartRollback-other' : 'Muu ->',
	'hoo-smartRollback-editSummaries' : [
		'kumous (vandalismi)',
		'kumous (testimuokkaus)',
		'kumous'
	],
	'hoo-closeButtonText' : 'Sulje'
});

--Minilammas (talk) 20:22, 5 October 2024 (UTC)Reply