You can enable Javascript on a Mac by going into your browser's Preferences menu. In Safari, you'll find the Javascript option in the Security tab.
Apple's Shortcuts app offers plenty of built-in examples to get started, but there are third-party apps and advanced scripting ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results