Created
September 11, 2023 14:04
-
-
Save kjaymiller/c356c81749b98d433b4b117737a8a4a5 to your computer and use it in GitHub Desktop.
Arc Boost to Open in Ivory
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
```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