Safari Technology Preview got an error: You must enable the 'Allow JavaScript from Apple Events' option in Safari's Develop menu to use 'do JavaScript'.
Once I made that setting change the scripts are working for me in Safari Technology Preview Release 158 (Safari 16.4, WebKit 18615.1.12.110.1).
Last edited by joemikeb; 11/19/2206:04 PM. Reason: rephrase
If we knew what it was we were doing, it wouldn't be called research, would it?