Thread:Andrewds1021/@comment-36009152-20190903194833

More supertastic bot time! Like I say probably easier as a guide in an easy to find place, right here:

MassRename is for all your give images that have random number titles legible names needs!

'u:dev:MassRename/code.js', can be fitted in with the others like so among with FindAndReplace, MassEdit and so forth. The WikiaBar below is the JWB so it is all neat together in one place.

Anywho to use MassRename first you need to give your bot admin or content moderator rights as only they can rename images. Then add the random code name images that are better with titles and copy and paste them into MassRename that appears under “My Tools” on the lower toolbar on a wiki.

Open your computer console and add this (change .png to .jpg depending on the image) which also adds File: infront of them so it works (if your images already have File: before them, remove ‘File:’ + around the middle before the new name, Episode 1 - for example.

Tick leave a redirect behind otherwise if you don’t replace them in source mode the code name images will be deleted and if you want the images back you will have to check the history and add them all manually : ) For example 1f07554f.jpg will appear as a name title with an empty image on the page it is on, so you have to check in the history to that it is now called Episode 2 - 1.jpg for example and re-add it for the image to appear, and then do that for each one!

But that’s a thrilling drastic scenario, leave a redirect behind and then initiate for the images to be renamed! Whilst they will appear with their lovely new names when an image is clicked, a rename is a redirect – the original random code name will still be on the page in source mode so we’ll change that too.

Running this in console (the 148 is a number one more than the images you would like, have 50 images? Input 51)

Then the list is ready to copy and paste over the random code names like this. There FindAndReplace was used at the same time whilst in edit, find File: replace with (nothing, like just leave it blank after pressing enter in the second box) and that removes that as well.

So now there are legible names, people can tell which episode those images are from, and everything is concise as well, hooray! 