User talk:Hoo man/Scripts

Active discussions

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

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


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

Smart rollback translation - nlEdit

	'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)',
	'hoo-closeButtonText' : 'Sluit'

Southparkfan 13:20, 15 December 2013 (UTC)[]

Active sysops requestEdit

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

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

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

Non-wikimedia wikiEdit

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

Problems with Compact Personal BarEdit

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

Congrats for your scriptsEdit

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

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

Active sysopsEdit

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

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)[]
  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)[]
Thanks a lot Hoo man! --Nastoshka (talk) 11:19, 17 April 2015 (UTC)[]

6 tags in the code, only 5 in the popupEdit

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

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

Smart rollbackEdit

@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)[]

Smart rollbackEdit

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

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

Two questions about Smart rollbackEdit

@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)[]

Old English WikiEdit

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

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

@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)[]

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

SmartRollback pt translationEdit

	'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)',
	'hoo-closeButtonText' : 'Fechar'

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

Tagger and Useful linksEdit

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

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

Translation to AsturianEdit

	'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)',
	'hoo-closeButtonText' : 'Zarrar'

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


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

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

Unable to click the button with the new desktop interfaceEdit

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

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)[]
Example with Global Watchlist Gadget
Return to the user page of "Hoo man/Scripts".