| (function () { | |
| // mouseover tooltips for various UI elements | |
| const titles = { | |
| 'π': 'Refresh saves', | |
| 'πΎ': 'save', | |
| '\uD83D\uDCD2\u200B': 'load saves', | |
| '\uD83D\uDCD2\u200D': 'load prompts from Civitai extension', | |
| 'π’': 'add index to prompt and checkpoints', | |
| }; | |
| onUiUpdate(function () { | |
| gradioApp().querySelectorAll('.batch-checkpoint-prompt').forEach(function (button) { | |
| const tooltip = titles[button.textContent]; | |
| if (tooltip) { | |
| button.title = tooltip; | |
| } | |
| }) | |
| }); | |
| })(); |