Is there a way to use a wildcard in a javascript bookmarklet?
For example, I have this:
javascript:(function(){var b=document.getElementsByName('send');for(var j=0;j<b.length;j++){if(b[j].value.match(/^Send Pattarapim a Thank you gift$/i)){b[j].click();break;}}})()
That worked great when the item was for "Pattarapim". But that "name" will change each time. Could I do anything to make that JS work regardless of what was in place of Pattarapim?
Thank You!