I'd like to use something like TamperMonkey to effectively add a button into my SC+ workorder view so that I can quickly update the status of the case (e.g. add a floating div with two buttons, one to set the status to wait for customer, and the other to set it to wait for support).
I should in theory be able to use
var s = $CS.getValue("STATUS");
to get the current case status once the entire page has loaded, but this is always undefined until I put the case into edit mode, at which point it's populated. This is in line with the behaviour of the form and field rules in request templates, which can run when the request is created or edited.
Is there any way to do this without resorting to using the custom menu invocation?