mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Allow clicking after short delay following petting
This commit is contained in:
2
birb.js
2
birb.js
@@ -943,7 +943,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
});
|
});
|
||||||
|
|
||||||
onClick(canvas, () => {
|
onClick(canvas, () => {
|
||||||
if (currentAnimation === Animations.HEART) {
|
if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) {
|
||||||
// Currently being pet, don't open menu
|
// Currently being pet, don't open menu
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/birb.js
vendored
2
dist/birb.js
vendored
@@ -1286,7 +1286,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
});
|
});
|
||||||
|
|
||||||
onClick(canvas, () => {
|
onClick(canvas, () => {
|
||||||
if (currentAnimation === Animations.HEART) {
|
if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) {
|
||||||
// Currently being pet, don't open menu
|
// Currently being pet, don't open menu
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
4
dist/birb.user.js
vendored
4
dist/birb.user.js
vendored
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Pocket Bird
|
// @name Pocket Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025.10.25.8
|
// @version 2025.10.25.15
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
@@ -1300,7 +1300,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
});
|
});
|
||||||
|
|
||||||
onClick(canvas, () => {
|
onClick(canvas, () => {
|
||||||
if (currentAnimation === Animations.HEART) {
|
if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) {
|
||||||
// Currently being pet, don't open menu
|
// Currently being pet, don't open menu
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Pocket Bird",
|
"name": "Pocket Bird",
|
||||||
"description": "It's a bird, in your browser. What more could you want?",
|
"description": "It's a bird, in your browser. What more could you want?",
|
||||||
"version": "2025.10.25.8",
|
"version": "2025.10.25.15",
|
||||||
"homepage_url": "https://idreesinc.com",
|
"homepage_url": "https://idreesinc.com",
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user