Last active
June 22, 2024 13:59
-
-
Save leovido/43623b7e4aa9c708df1d05258b1f8a44 to your computer and use it in GitHub Desktop.
Ham widget (iOS) - Farcaster (by leovido.eth)
This file contains 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
// Visit https://iamng.wtf/widgets/fc-degen/points for installation instructions | |
// 1. Install Scriptable from the App Store | |
// 2. Create a new script once downloaded clicking the plus button (clicking on the Untitled title will allow you to name the script; I suggest naming it Ham widget) | |
// 3. Copy the following code: | |
const scriptURL = 'https://ham-api.leovido.xyz/api/widget-script?fid=' + encodeURIComponent(args.widgetParameter || 'yourFID'); | |
const script = await new Request(scriptURL).loadString(); | |
eval(script); | |
// 4. Replace 'yourFID' with your Farcaster/Warpcast FID (you can find this in your own profile, clicking on the about button) | |
// 5. Click Run | |
// 6. To fully show the widget on your home screen, long press anywhere and find Scriptable. | |
// 7. Select the smallest widget size | |
// 8. Select "Edit widget" | |
// 9. Select the newly created script (Ham widget) | |
// 10. Enjoy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment