Add embed code and instructions

This commit is contained in:
Idrees Hassan
2025-11-16 13:10:57 -05:00
parent 8b8aa50cae
commit c3ff3b39dc
4 changed files with 2636 additions and 0 deletions

View File

@@ -56,6 +56,14 @@ It's a pet bird that hops around your computer, what more could you want?
3. Install my Pocket Bird script by going to this link and clicking install: [https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js](https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js) 3. Install my Pocket Bird script by going to this link and clicking install: [https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js](https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js)
4. Now any websites you visit will have a little bird hopping around! 4. Now any websites you visit will have a little bird hopping around!
### Your Own Website
Pocket Bird can also be embedded directly into your own website! Just include the following code snippet anywhere in your HTML:
```html
<script src="https://cdn.jsdelivr.net/gh/IdreesInc/Pocket-Bird@main/dist/web/birb.embed.js"></script>
```
## FAQ ## FAQ
### How do I pet the bird? ### How do I pet the bird?

View File

@@ -130,6 +130,7 @@ async function buildWeb() {
const birbJs = await generateCode(WEB_ENTRY); const birbJs = await generateCode(WEB_ENTRY);
mkdirSync(WEB_DIR, { recursive: true }); mkdirSync(WEB_DIR, { recursive: true });
writeFileSync(WEB_DIR + '/birb.js', birbJs); writeFileSync(WEB_DIR + '/birb.js', birbJs);
writeFileSync(WEB_DIR + '/birb.embed.js', birbJs);
} }
async function buildUserscript() { async function buildUserscript() {

BIN
dist/extension.zip vendored

Binary file not shown.

2627
dist/web/birb.embed.js vendored Normal file

File diff suppressed because it is too large Load Diff