# JS snippets - Docs

JS snippets enable you to easily add functionality to your site without extra code. They are injected through the `posthog-js` library or snippet and can be used to show content or banners on your site.

## Enabling snippets

Head to the [**Web scripts** page](https://app.posthog.com/web-scripts). Here you can install official PostHog snippets by clicking **\+ New Web script**.

## Available JS snippets

| Snippet | Description |
| --- | --- |
| [Notification bar](/docs/js-snippets/notification-bar.md) | Display a customised banner on your site to notify users about events such as product releases, sales, and events. |
| [Pineapple mode](/docs/js-snippets/pineapple-mode.md) | Rain pineapples all over your product or website. Yes, really. |

### Community questions

Ask a question

### Was this page useful?

HelpfulCould be better