Skip to content

Instantly share code, notes, and snippets.

@kjaymiller
Created September 11, 2023 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjaymiller/c356c81749b98d433b4b117737a8a4a5 to your computer and use it in GitHub Desktop.
Save kjaymiller/c356c81749b98d433b4b117737a8a4a5 to your computer and use it in GitHub Desktop.
Arc Boost to Open in Ivory
```js
const baseUrl=document.URL;
try {
const user=baseUrl.split("https://mastodon.social/@")[1];
const ivoryUrl=`ivory://acct/user_profile/${user}`;
console.log(`Opening ${ivoryUrl}`);
window.open(ivoryUrl);
window.close();
}
catch (err) {
console.log(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment