Recently someone posted a few here: Text Case Converting Keyboard Shortcuts
For custom text transformer functions chatgpt etc. are perfect, if you give them a prompt with an example like this:
Example prompt
I have this java script function that transforms some input string to upper case. Please change the function to transform the input string to mixed case like this: "tHiS iS a TeSt". Please keep the variable names the same:
async (clipboardContentString) => {
//example
return clipboardContentString.toUpperCase()
}
This will usually create pretty perfect java script to achieve the goal