I have a bookmarklet:
var b=document.getElementsByClassName('textinput')[0];
b.value=' (Christiansburg)';
var f=document.createEvent("HTMLEvents");
f.initEvent('change',true,true);
b.dispatchEvent(f);
void(0);
This replaces the content (if any) of the Title of a Google Calendar event with (Christiansburg). I would like for it to instead just append it to whatever content is already there. I’ve tried a couple of things but I can’t figure out how to get it to work.
Replace the
=operatorto the
+=operator which will append your string to the value: