User talk:Majr/hydra.js

Blank the "Other/additional reason" field when deleting pages
If you're looking to improve this script more, one thing I never got around to adding to it was capturing any delete reasons from a Delete template. It shouldn't be too difficult to do this naively (I think a pretty simple regex should suffice), but it won't properly capture cases where a template is used within the delete template. Not necessarily a huge concern, but it's been enough to keep me from sitting down and working on it. =) 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 07:23, 27 July 2012 (UTC)


 * Done. (I forgot how difficult regex is when regexpal.com is down...) –ultradude25 (T&#124;C) at 08:16, 27 July 2012 (UTC)


 * Cool. Are you intending to update the Common.js script with your version at some point? 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 15:27, 27 July 2012 (UTC)


 * Yes, that's why I replaced my normal js here. That way I can test it live (with common.js disabled by adblocking it), to make sure I'm not breaking anything. Especially useful for the collapsible script, since that's completely re-written from scratch, so I could've easily broken something there.
 * Also, I don't think it'll work with a template in the delete reason, but I don't think we ever have or will use a template in the delete reason, so it probably doesn't matter. –ultradude25 (T&#124;C) at 17:27, 27 July 2012 (UTC)


 * Yeah, I've never seen a template used like that here; the main reason I worry about stuff like that is because I'm minded towards being able to reuse stuff across wikis (which isn't surprising, considering I originally got into wikis via Wikipedia and then moved to Wikia, where I started reusing Wikipedia's templates and such and so really started getting a taste for all the ways that can go wrong). =) 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 18:29, 27 July 2012 (UTC)