mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Add embed code and instructions
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
1
build.js
1
build.js
@@ -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
BIN
dist/extension.zip
vendored
Binary file not shown.
2627
dist/web/birb.embed.js
vendored
Normal file
2627
dist/web/birb.embed.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user