Shortcuts, run bookmarklet on page?

curious if it is possible to run a bookmarklet on a webpage and then capture that to send somewhere. i’ve got a bookmarklet that turned a page into markdown, i’d like to capture that and send to another apps. here is the bookmarklet for reference. thanks in advance.

edit: do i just replace the encodeURI with an encoded or decode url?


Not sure about the rest of your question but URI is a type of address that encompasses URLs (and URNs) so the function can simply encode more than just URLs.

ahh, so that is encoding document.location.href which i assume is the web page address you are on?

If you can print the updated page to PDF (available via native i*OS print feature), you should be able to share that on.