baisemain: (Default)
Marin ([personal profile] baisemain) wrote2018-07-30 08:47 pm
Entry tags:

SCRIPTS: Mass Icon Rename



This was written in an hour, so it's a bit buggy, but it does work so long as you don't have any expired icons. There's probably a few other use cases where this will break, but OH WELL.

As noted in the comments, DW doesn't like it when you rename icons to an existing keyword, so to use this with existing keywords, you'll have to set the script to rename all of your icons to a completely different name/prefix, then rename them again to what you want.
2023/05/09: The script will no longer rename icons that already have a keyword. If you want them renamed/renumbered, you can click the "Clear All" button to clear all icon keywords.

  • First, install Tampermonkey.

  • Click the Tampermonkey icon and select Create a new script...

  • Copy/paste in the following code:

  • Save the code, probably via File > Save. (Ctrl-S may work depending on how recent your version of Tampermonkey is.)

  • Check out your Manage Icons page. The autofill keywords are simple, you can set a little prefix (like a cool symbol) and it'll just be a straight count of numbers.
thisismanx: (Default)

[personal profile] thisismanx 2018-08-02 02:34 pm (UTC)(link)
Thank you, thank you. As a troubleshooting note, it was being fussy renaming anything that had been automatically assigned a pic#____ keyword but when I ran a rename without any prefix it finally pushed them all through and then I was able to use as intended to add a desired prefix.
amdapor: (Default)

[personal profile] amdapor 2019-11-15 07:12 am (UTC)(link)
hey marin, this script was giving me the "invalid userscript" error when i tried to reinstall it and i couldn't figure out why because it ran perfectly before. but then i realized it's DREAMWIDTH fucking up the code in the text area box. instead of @*name it automatically converts it to <*user name="blabla"> (minus the *s) because it thinks you're linking to a journal.

i made a pastebin link to show you bc i thought it was tampermonkey changing their syntax but nah. it's a dreamwidth update.
Edited 2019-11-15 07:13 (UTC)
thisismanx: (Default)

[personal profile] thisismanx 2020-08-18 10:16 pm (UTC)(link)
DW appears to have screwed up something again because your textbox didn't work, but the pastebin did! Just wanted to let you know! ♥
thisismanx: (Default)

[personal profile] thisismanx 2020-08-18 10:43 pm (UTC)(link)
fdkjhgksjdfgh of course it did

WELL YAY THAT WAS EASY