MediaWiki talk:Gadget-Searchnotincat.js

Category:User scripts needing internationalisationCategory:Commons gadget scripts#Searchnotincat

Quotes and deepcat

I've forked this gadget to User:Samwilson/Searchnotincat.js to add quotation marks and deepcat. Sam Wilson ( Talk Contribs ) 04:18, 28 January 2022 (UTC)

Thanks, I think this should be added to this gadget or the gadget that can be enabled should be your fork as the deepcat variant is much useful and usually the one that is needed to find a category's missing files. Example: -deepcategory:"Our World in Data" "ourworldindata.org". Could you request the gadget that can be enabled in Special:Preferences to be changed? Prototyperspective (talk) 09:54, 2 September 2024 (UTC)

Hi the main gadget has the same error: truncates the category of the query at any "&". Leading to unexpected results. example Described also here: https://phabricator.wikimedia.org/T415398 Today they took the repair request off the todo list after months .. saying it error was in an addon. Even though I don't use this extra button a lot (unlike the -deepcat variant, which works fine) it would be nice if this obvious bug in the commonly available addon could be repaired. It is in both: search-in-cat and search-not-in-cat. Thanks Peli (talk) 17:58, 23 March 2026 (UTC)

Thanks; Sam Wilson could you fix this here? Rillke you seem to be an interface admin. Prototyperspective (talk) 19:21, 23 March 2026 (UTC)
@Prototyperspective, Pelikana, and Rillke: It looks like line 14 has to be changed from
(mw.config.get('wgTitle').split(" ").join("_")) + "%22",
to
encodeURIComponent( mw.config.get( 'wgTitle' ).replaceAll( ' ', '_' ) ) + "%22",
(Sorry I missed this last month. The ping didn't work.) Sam Wilson 09:05, 15 April 2026 (UTC)
Thanks, I wanted to mention that this bug can be seen in all 3 of the extended search addons; using any of the optional buttons for: "Search not in category", "Deepcat" (1) and "Deepcat" (2). Peli (talk) 09:42, 15 April 2026 (UTC)
Thanks, the problem also exists in Help:Gadget-DeepcatSearch, a very useful tool I hope some day becomes default-enabled if no better solutions are implemented that make it redundant (tested on Category:Procter & Gamble). @RoyZuo: could you please fix it? (btw, please also see my two comments here)
And maybe there's more tools that need this fixed, I haven't checked. @Samwilson: Could you please implement the change? Prototyperspective (talk) 17:47, 15 April 2026 (UTC)
@Prototyperspective: I've added a request there. Sam Wilson 22:11, 18 April 2026 (UTC)
Category:Commons gadget scripts Category:User scripts needing internationalisation