- Visit the latest release page and download
lens-share-extension-x.x.x.zip
file under Assets. - Extract the folder.
- Go to Extensions settings in your browser. For brave it's at:
brave://extensions/
- Toggle on the "Developer mode"
- Click "Load unpacked" and select the folder extracted above.
- Lens Share is now installed!
- Go to twitter.com and click on any tweet
- You'd see a "Share on Lens" button beneath the tweet.
- Click on it.
- Connect your wallet & press the "Post" button.
- Confirm the transaction in your wallet.
- That's it! Your tweet will be migrated over to the Lens Protocol 🌿
- Lens Share handles uploading images & text to IPFS automatically in the background & offers a seamless experience to you.
- Clone this repository
- Create
.env
file and fill out variables from.env.sample
- Install packages:
yarn install
- Build extension:
yarn build
- Now go to browser extension settings, turn on developer mode and then click "Load unpacked". Select the
build
folder generated in previous step. - Now click on a twitter post to land on url like:
https://twitter.com/username/status/12345
and you'd see "Share on Lens" button below the tweet (reload page if button not visible).
- The content script
inject.ts
injectslens-share-react-app
into the Twitter webpage. lens-share-react-app
is added to the DOM. Easier to handle state, use chakra-ui and other web3 npm packages via React.- The "Share on Lens" button is injected into Twitter's code via React Portals.