How do I turn a JavaScript in the JS Console into a permanent macro?
Courtesy of member @try67, I now have this JavaScript running in the JavaScript (JS) Interactive Console:
[See: https://community.adobe.com/t5/acrobat-discussions/identifying-all-hidden-hyperlinks-in-a-pdf-using-acrobat-pro-for-mac/m-p/14004336#M423908 ]

However, as I've this is my first time using the JS Console, I don't know how to convert this to a permanent macro. Ideally I'd like to be able to add it as a button to my Ribbon. But barring that, I'd like to save it wherever these scripts are stored, so that I can call it up as needed. Please note that I don't want it to be tied to any specific document. Rather, I'd like it to be runnable in any PDF.
Can anyone either explain how to do this, or provide an instructional link?
I looked through Adobe's JavaScript materials, and wasn't able to find specific instructions.


