IdreesInc/Pocket-Bird

Feature request: Function to stop (embedded) bird

Open

#19 geöffnet am 12. Mai 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (5 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (105 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I am working on adding Pocket Bird to my website. My usual pattern for features like this is to allow the user to enable and disable them with a checkbox. Right now, it works like this:

const showBirb = () => {
	document.getElementById("birb-shadow-host").classList.remove("hidden");
}
const hideBirb = () => {
	document.getElementById("birb-shadow-host").classList.add("hidden");
}

It would be nice, however, to be able to call a function when using the CDN that gracefully terminates the script, and another to start it again so that users who don't want the bird (lord knows why) don't have to have it running in the background anyway.

Contributor Guide