User talk:Writ Keeper/Scripts/massRevdel.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is amazing[edit]

Really. I filed phab:T118897 to integrate it into MW proper. Legoktm (talk) 19:48, 17 November 2015 (UTC)[reply]

Doesn't seem to be working as of recently[edit]

Hi Writ Keeper - I've been using this script for quite some time, but it looks like as of recently, I'll use it, it'll state that the revisions were rev del'd successfully, but when refreshing the contribs page to verify - nothing is rev del'd. Just wanted to let you know. ~Oshwah~(talk) (contribs) 19:34, 14 July 2017 (UTC)[reply]

I'll investigate, thanks. Writ Keeper  19:37, 14 July 2017 (UTC)[reply]
Oshwah: should be mostly fixed now. The confirmation dialog is missing at the moment, but it should actually perform the deletions now; refreshign the page to verify is still a good idea. I'll work on the confirmation dialogs next. Writ Keeper  20:13, 14 July 2017 (UTC)[reply]
Oshwah: confirmation dialog restored, script should be back to 100% functionality. Thanks for the heads up! Writ Keeper  20:24, 14 July 2017 (UTC)[reply]
You bet! Thanks for taking a look at ;-) ~Oshwah~(talk) (contribs) 20:29, 14 July 2017 (UTC)[reply]
Writ Keeper - Can confirm; script appears to be working now. Thanks again. ~Oshwah~(talk) (contribs) 20:31, 14 July 2017 (UTC)[reply]

50?[edit]

Any particular reason we are confined to 50? I currently need to kill +250 revisions (and more) at once and this is... /facaepalm. — regards, Revi 08:56, 23 September 2018 (UTC)[reply]

And the script effectively removes the ability to distinguish revdel'ed edits and suppressed one. — regards, Revi 09:09, 23 September 2018 (UTC)[reply]
Writ Keeper probably deserves some ping here? (The imminent problem was fixed by doing it by 50 multiple times.) — regards, Revi 13:50, 27 September 2018 (UTC)[reply]
Haha, thanks for the ping; I have this page on my watchlist, but it must've slipped through somehow. There was probably a reason I put a hard cap at 50, but damned if I remember what it was. I'll take a look at that. For the OS issue, can you explain a bit more? How do you distiguish revdeled and oversighted edits without the script? Not having OS myself, that part of the script was always a bit speculative. Writ Keeper  14:04, 27 September 2018 (UTC)[reply]
@-revi: As it turns out, the 50 edits is actually an API limitation: Identifiers for the revisions to be deleted. No more than 50 (500 for bots) allowed, per the API spec. Writ Keeper  14:34, 27 September 2018 (UTC)[reply]
Hmm, then OK, I will need to customize on my own since I have apihighlimits (so act like bot). Thanks! — regards, Revi 14:35, 27 September 2018 (UTC)[reply]
Actually, that's a good point; apihighlimits is by Mediawiki default granted to sysops too. If that's true on en, then there's no reason not to increase the limit for everyone, since anyone using this script has to be a sysop anyway. Writ Keeper  14:58, 27 September 2018 (UTC)[reply]
Yup, local admins haz apihighlimits as well. — regards, Revi 15:25, 27 September 2018 (UTC)[reply]
Good enough! Limit upped to 500, to match the bot limiter. Writ Keeper  15:34, 27 September 2018 (UTC)[reply]

Quick Suggestion[edit]

I was sort of thinking if you are willing to add "invert" button, offered by MediaWiki Core? (See also phab:T92230) — regards, Revi 14:51, 22 January 2020 (UTC)[reply]

@-revi: Sure, but just so you know, it's way too tempting for me to then remove one of the select all/none buttons, since select all is the same as select none + invert selection and vice versa. :) Writ Keeper  15:22, 22 January 2020 (UTC)[reply]
That make sense, maybe [(de)select all] / [invert selection]? Gisado (talk) 18:04, 25 January 2020 (UTC)[reply]
Haha, naw, it's easiest to just add the button, I think. It should already be there :) Writ Keeper  21:03, 25 January 2020 (UTC)[reply]

Am I going crazy?[edit]

I have this vision in my head of being able to select the WP:OSPOL criteria from the dropdown menu, but the last few times I've gone to suppress from the contribs menu all I've gotten is the RD criteria. Am I just misremembering or did something change? Primefac (talk) 00:11, 8 May 2020 (UTC)[reply]

@Primefac: (tps) you're not crazy; MediaWiki:Revdelete-reason-dropdown was split, and the OS criteria are at MediaWiki:Revdelete-reason-dropdown-suppress, but the script only retrieves the normal revdel reasons, not the new separate suppression reasons. See phab:T102581 for background. DannyS712 (talk) 02:20, 8 May 2020 (UTC)[reply]
Came here to say the same. Ping Writ Keeper in case it wasn't seen. Tossing another $.get in a .then should do it quick n dirty. ~ Amory (utc) 10:06, 1 August 2020 (UTC)[reply]
Thanks for the ping, Amorymeltzer; I did indeed miss this. @Primefac: if you're still thinking about this, it's fixed now! Writ Keeper  13:25, 1 August 2020 (UTC)[reply]
Awesome, thanks! Primefac (talk) 01:03, 2 August 2020 (UTC)[reply]