From 7f9c3888539649fb6e1e2cc78be619b28f2eb56f Mon Sep 17 00:00:00 2001 From: Idrees Hassan Date: Sat, 25 Oct 2025 22:55:55 -0400 Subject: [PATCH] Allow clicking after short delay following petting --- birb.js | 2 +- dist/birb.js | 2 +- dist/birb.user.js | 4 ++-- manifest.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/birb.js b/birb.js index 831bf0a..4f1e789 100644 --- a/birb.js +++ b/birb.js @@ -943,7 +943,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI }); onClick(canvas, () => { - if (currentAnimation === Animations.HEART) { + if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) { // Currently being pet, don't open menu return; } diff --git a/dist/birb.js b/dist/birb.js index f38dca4..c5cb424 100644 --- a/dist/birb.js +++ b/dist/birb.js @@ -1286,7 +1286,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI }); onClick(canvas, () => { - if (currentAnimation === Animations.HEART) { + if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) { // Currently being pet, don't open menu return; } diff --git a/dist/birb.user.js b/dist/birb.user.js index 7a51b2f..9ce4980 100644 --- a/dist/birb.user.js +++ b/dist/birb.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Pocket Bird // @namespace https://idreesinc.com -// @version 2025.10.25.8 +// @version 2025.10.25.15 // @description birb // @author Idrees // @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, () => { - if (currentAnimation === Animations.HEART) { + if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) { // Currently being pet, don't open menu return; } diff --git a/manifest.json b/manifest.json index c9ea6e4..b611f46 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Pocket Bird", "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", "content_scripts": [ {