Remove top margin override and add more elements

This commit is contained in:
Idrees Hassan
2025-11-13 19:53:10 -05:00
parent 71bb8204e2
commit 042d0e3b07
8 changed files with 23 additions and 38 deletions

11
dist/birb.js vendored
View File

@@ -1095,17 +1095,14 @@
this.putSaveData({}); this.putSaveData({});
} }
/** @override */
getFocusElementTopMargin() {
return 10;
}
/** @override */ /** @override */
getFocusableElements() { getFocusableElements() {
const elements = [ const elements = [
".workspace-leaf", ".workspace-leaf",
".cm-callout", ".cm-callout",
".HyperMD-codeblock-begin" ".HyperMD-codeblock-begin",
".status-bar",
".mobile-navbar"
]; ];
return super.getFocusableElements().concat(elements); return super.getFocusableElements().concat(elements);
} }
@@ -1949,7 +1946,7 @@
insertModal(`${birdBirb()} Mode`, message); insertModal(`${birdBirb()} Mode`, message);
}), }),
new Separator(), new Separator(),
new MenuItem("2025.11.13.27", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.27"); }, false), new MenuItem("2025.11.13.47", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.47"); }, false),
]; ];
const styleElement = document.createElement("style"); const styleElement = document.createElement("style");

BIN
dist/extension.zip vendored

Binary file not shown.

View File

@@ -1095,17 +1095,14 @@
this.putSaveData({}); this.putSaveData({});
} }
/** @override */
getFocusElementTopMargin() {
return 10;
}
/** @override */ /** @override */
getFocusableElements() { getFocusableElements() {
const elements = [ const elements = [
".workspace-leaf", ".workspace-leaf",
".cm-callout", ".cm-callout",
".HyperMD-codeblock-begin" ".HyperMD-codeblock-begin",
".status-bar",
".mobile-navbar"
]; ];
return super.getFocusableElements().concat(elements); return super.getFocusableElements().concat(elements);
} }
@@ -1949,7 +1946,7 @@
insertModal(`${birdBirb()} Mode`, message); insertModal(`${birdBirb()} Mode`, message);
}), }),
new Separator(), new Separator(),
new MenuItem("2025.11.13.27", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.27"); }, false), new MenuItem("2025.11.13.47", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.47"); }, false),
]; ];
const styleElement = document.createElement("style"); const styleElement = document.createElement("style");

View File

@@ -2,7 +2,7 @@
"manifest_version": 3, "manifest_version": 3,
"name": "Pocket Bird", "name": "Pocket Bird",
"description": "It's a pet bird in your browser, what more could you want?", "description": "It's a pet bird in your browser, what more could you want?",
"version": "2025.11.13.27", "version": "2025.11.13.47",
"homepage_url": "https://idreesinc.com", "homepage_url": "https://idreesinc.com",
"icons": { "icons": {
"48": "images/icons/transparent/48x48x1.png", "48": "images/icons/transparent/48x48x1.png",

13
dist/obsidian/main.js vendored
View File

@@ -2,7 +2,7 @@
const { Plugin, Notice } = require('obsidian'); const { Plugin, Notice } = require('obsidian');
module.exports = class PocketBird extends Plugin { module.exports = class PocketBird extends Plugin {
onload() { onload() {
console.log("Loading Pocket Bird version 2025.11.13.27..."); console.log("Loading Pocket Bird version 2025.11.13.47...");
const OBSIDIAN_PLUGIN = this; const OBSIDIAN_PLUGIN = this;
(function () { (function () {
'use strict'; 'use strict';
@@ -1101,17 +1101,14 @@ module.exports = class PocketBird extends Plugin {
this.putSaveData({}); this.putSaveData({});
} }
/** @override */
getFocusElementTopMargin() {
return 10;
}
/** @override */ /** @override */
getFocusableElements() { getFocusableElements() {
const elements = [ const elements = [
".workspace-leaf", ".workspace-leaf",
".cm-callout", ".cm-callout",
".HyperMD-codeblock-begin" ".HyperMD-codeblock-begin",
".status-bar",
".mobile-navbar"
]; ];
return super.getFocusableElements().concat(elements); return super.getFocusableElements().concat(elements);
} }
@@ -1955,7 +1952,7 @@ module.exports = class PocketBird extends Plugin {
insertModal(`${birdBirb()} Mode`, message); insertModal(`${birdBirb()} Mode`, message);
}), }),
new Separator(), new Separator(),
new MenuItem("2025.11.13.27", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.27"); }, false), new MenuItem("2025.11.13.47", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.47"); }, false),
]; ];
const styleElement = document.createElement("style"); const styleElement = document.createElement("style");

View File

@@ -1,7 +1,7 @@
{ {
"id": "pocket-bird", "id": "pocket-bird",
"name": "Pocket Bird", "name": "Pocket Bird",
"version": "2025.11.13.27", "version": "2025.11.13.47",
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "It's a pet bird in your Obsidian, what more could you want?", "description": "It's a pet bird in your Obsidian, what more could you want?",
"author": "Idrees Hassan", "author": "Idrees Hassan",

View File

@@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Pocket Bird // @name Pocket Bird
// @namespace https://idreesinc.com // @namespace https://idreesinc.com
// @version 2025.11.13.27 // @version 2025.11.13.47
// @description It's a bird that hops around your web browser, the future is here // @description It's a bird that hops around your web browser, the future is here
// @author Idrees // @author Idrees
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js // @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/userscript/birb.user.js
@@ -1109,17 +1109,14 @@
this.putSaveData({}); this.putSaveData({});
} }
/** @override */
getFocusElementTopMargin() {
return 10;
}
/** @override */ /** @override */
getFocusableElements() { getFocusableElements() {
const elements = [ const elements = [
".workspace-leaf", ".workspace-leaf",
".cm-callout", ".cm-callout",
".HyperMD-codeblock-begin" ".HyperMD-codeblock-begin",
".status-bar",
".mobile-navbar"
]; ];
return super.getFocusableElements().concat(elements); return super.getFocusableElements().concat(elements);
} }
@@ -1963,7 +1960,7 @@
insertModal(`${birdBirb()} Mode`, message); insertModal(`${birdBirb()} Mode`, message);
}), }),
new Separator(), new Separator(),
new MenuItem("2025.11.13.27", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.27"); }, false), new MenuItem("2025.11.13.47", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.47"); }, false),
]; ];
const styleElement = document.createElement("style"); const styleElement = document.createElement("style");

View File

@@ -256,17 +256,14 @@ class ObsidianContext extends Context {
this.putSaveData({}); this.putSaveData({});
} }
/** @override */
getFocusElementTopMargin() {
return 10;
}
/** @override */ /** @override */
getFocusableElements() { getFocusableElements() {
const elements = [ const elements = [
".workspace-leaf", ".workspace-leaf",
".cm-callout", ".cm-callout",
".HyperMD-codeblock-begin" ".HyperMD-codeblock-begin",
".status-bar",
".mobile-navbar"
]; ];
return super.getFocusableElements().concat(elements); return super.getFocusableElements().concat(elements);
} }