Last active
April 17, 2025 05:16
-
-
Save giodamelio/c97f71a12eec5c142f21f757a6ba4d8a to your computer and use it in GitHub Desktop.
A bookmarklet to process the current page to Outline.com and redirect afterwards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch( | |
"https://outlineapi.com/v3/parse_article?source_url=" + | |
encodeURIComponent(window.location) | |
) | |
.then(res => res.json()) | |
.then(body => { | |
if (body.error) { | |
return alert(`Outline Bookmarklet Error: ${body.error}`); | |
} | |
window.location.href = `https://outline.com/${body.data.short_code}` | |
}) | |
.catch(err => { | |
alert("Outline Bookmarklet Error. See console for details."); | |
console.error(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yup, this works. thank you 🙏