mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-26 04:07:24 +00:00
Only confirm for non-empty sticky notes
This commit is contained in:
4
dist/birb.js
vendored
4
dist/birb.js
vendored
@@ -878,7 +878,7 @@
|
|||||||
|
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
makeClosable(() => {
|
makeClosable(() => {
|
||||||
if (confirm("Are you sure you want to delete this sticky note?")) {
|
if (stickyNote.content.trim() === "" || confirm("Are you sure you want to delete this sticky note?")) {
|
||||||
onDelete();
|
onDelete();
|
||||||
noteElement.remove();
|
noteElement.remove();
|
||||||
}
|
}
|
||||||
@@ -1605,7 +1605,7 @@
|
|||||||
insertModal(`${birdBirb()} Mode`, message);
|
insertModal(`${birdBirb()} Mode`, message);
|
||||||
}),
|
}),
|
||||||
new Separator(),
|
new Separator(),
|
||||||
new MenuItem("2025.10.26.536", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.26.536"); }, false),
|
new MenuItem("2025.10.26.537", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.26.537"); }, false),
|
||||||
];
|
];
|
||||||
|
|
||||||
const styleElement = document.createElement("style");
|
const styleElement = document.createElement("style");
|
||||||
|
|||||||
6
dist/birb.user.js
vendored
6
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.26.536
|
// @version 2025.10.26.537
|
||||||
// @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
|
||||||
@@ -892,7 +892,7 @@
|
|||||||
|
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
makeClosable(() => {
|
makeClosable(() => {
|
||||||
if (confirm("Are you sure you want to delete this sticky note?")) {
|
if (stickyNote.content.trim() === "" || confirm("Are you sure you want to delete this sticky note?")) {
|
||||||
onDelete();
|
onDelete();
|
||||||
noteElement.remove();
|
noteElement.remove();
|
||||||
}
|
}
|
||||||
@@ -1619,7 +1619,7 @@
|
|||||||
insertModal(`${birdBirb()} Mode`, message);
|
insertModal(`${birdBirb()} Mode`, message);
|
||||||
}),
|
}),
|
||||||
new Separator(),
|
new Separator(),
|
||||||
new MenuItem("2025.10.26.536", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.26.536"); }, false),
|
new MenuItem("2025.10.26.537", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.26.537"); }, false),
|
||||||
];
|
];
|
||||||
|
|
||||||
const styleElement = document.createElement("style");
|
const styleElement = document.createElement("style");
|
||||||
|
|||||||
@@ -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.26.536",
|
"version": "2025.10.26.537",
|
||||||
"homepage_url": "https://idreesinc.com",
|
"homepage_url": "https://idreesinc.com",
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export function renderStickyNote(stickyNote, onSave, onDelete) {
|
|||||||
|
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
makeClosable(() => {
|
makeClosable(() => {
|
||||||
if (confirm("Are you sure you want to delete this sticky note?")) {
|
if (stickyNote.content.trim() === "" || confirm("Are you sure you want to delete this sticky note?")) {
|
||||||
onDelete();
|
onDelete();
|
||||||
noteElement.remove();
|
noteElement.remove();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user