mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-26 04:07:24 +00:00
Fix url comparison
This commit is contained in:
2
birb.js
2
birb.js
@@ -911,7 +911,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
|
|
||||||
// Render all sticky notes
|
// Render all sticky notes
|
||||||
for (let stickyNote of stickyNotes) {
|
for (let stickyNote of stickyNotes) {
|
||||||
if (stickyNote.site === window.location.href.split("?")[0]) {
|
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
|
||||||
renderStickyNote(stickyNote);
|
renderStickyNote(stickyNote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
build.js
2
build.js
@@ -24,7 +24,7 @@ const userScriptHeader =
|
|||||||
`// ==UserScript==
|
`// ==UserScript==
|
||||||
// @name Browser Bird
|
// @name Browser Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025-08-16-1
|
// @version 2025-08-16-2
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
|
|||||||
2
dist/birb.js
vendored
2
dist/birb.js
vendored
@@ -1229,7 +1229,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
|
|
||||||
// Render all sticky notes
|
// Render all sticky notes
|
||||||
for (let stickyNote of stickyNotes) {
|
for (let stickyNote of stickyNotes) {
|
||||||
if (stickyNote.site === window.location.href.split("?")[0]) {
|
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
|
||||||
renderStickyNote(stickyNote);
|
renderStickyNote(stickyNote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
dist/birb.user.js
vendored
4
dist/birb.user.js
vendored
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Browser Bird
|
// @name Browser Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025-08-16-1
|
// @version 2025-08-16-2
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
@@ -1243,7 +1243,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
|||||||
|
|
||||||
// Render all sticky notes
|
// Render all sticky notes
|
||||||
for (let stickyNote of stickyNotes) {
|
for (let stickyNote of stickyNotes) {
|
||||||
if (stickyNote.site === window.location.href.split("?")[0]) {
|
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
|
||||||
renderStickyNote(stickyNote);
|
renderStickyNote(stickyNote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user