Pop-a-loon Docs
GithubWebstores
  • Pop-a-loon documentation
  • Architecture
  • Adding a new balloon
  • architecture
    • Background
    • Content scripts
    • Popup
  • balloons
    • Confetti
    • Default
    • Fast
    • Ghost
    • Gold
Powered by GitBook
On this page
  • spawn-balloon
  • Balloon container
Edit on GitHub
  1. architecture

Content scripts

PreviousBackgroundNextPopup

Last updated 9 months ago

spawn-balloon

This script is sent to a tab and will spawn a balloon.

It will add a to the page if its not already in the page. After this it will gather all balloon types and their spawn chances and pick a random balloon to spawn.

Balloon container

This is div element added directly to the body of the page a balloon is sent to. All other page modifications happen in this element.

balloon container