2024-12-27 TIL: Building Chrome Extensions & Toothpaste Foaming Explained

2024-12-27 TIL: Building Chrome Extensions & Toothpaste Foaming Explained

💻

Build Chrome Extensions

A Chrome extension is a program installed in the Chrome browser to enhance its functionality, built using HTML, CSS, and JavaScript.

  • A manifest.json file serves as the blueprint of the extension, defining its name, version, and permissions.
  • The background.js file handles tasks and interactions running in the background, even when the extension isn’t actively in use.
  • The content.js file is used to inject or modify webpage content dynamically.

🌱

Toothpaste Foaming

Toothpaste foam is caused by surfactants like sodium lauryl sulfate (SLS), which create lather during brushing.

  • Some toothpastes do not foam due to the absence of these agents but are still equally effective at cleaning teeth.
  • Foam doesn’t enhance cleaning performance; instead, the mechanical brushing action and active ingredients are the key factors for maintaining oral hygiene.
  • Non-foaming toothpastes can also reduce mouth irritation associated with foaming agents.
Puran Zhang @puran