Skip to content

Commit 3a3afb2

Browse files
committed
Bump Extension.js
1 parent 17d02ff commit 3a3afb2

5 files changed

Lines changed: 52 additions & 49 deletions

File tree

examples/action-locales/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Action Popup (i18n / Locales) Example
77

8-
> Action popup example demonstrating i18n with \_locales and message placeholders.
8+
> Action popup example demonstrating i18n with _locales and message placeholders.
99
1010
![screenshot](./public/screenshot.png)
1111

examples/content-custom-font/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
![Powered by Extension.js][powered-image]
55

6-
# JavaScript Content Script Example
6+
# Custom Fonts Content Script Example
77

88
> Content script example that loads custom web fonts. Demonstrates font files and web_accessible_resources setup.
99
@@ -13,6 +13,8 @@
1313

1414
**How it works**: A content script mounts a JavaScript UI inside a Shadow DOM and applies scoped styles so the host page can't bleed through. Styles flow through Tailwind.
1515

16+
Loads custom web fonts inside the injected Shadow DOM via `web_accessible_resources`, so the UI ships its own typography without depending on the host page's stylesheet.
17+
1618
## Try it locally
1719

1820
```bash

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@types/chrome": "^0.0.287",
8989
"@types/node": "^22.10.1",
9090
"eslint": "^9.16.0",
91-
"extension": "3.14.5-canary.286.11bf7c6",
91+
"extension": "3.15.0-canary.290.4621cf8",
9292
"globals": "^15.13.0",
9393
"knip": "^5.33.0",
9494
"lint-staged": "16.1.0",

pnpm-lock.yaml

Lines changed: 40 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/update-template-readmes.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@ const OVERRIDES = {
401401
'support MAIN-world content scripts, so this template is gated to ' +
402402
'Chromium targets.'
403403
},
404+
'content-custom-font': {
405+
title: 'Custom Fonts Content Script Example',
406+
extra:
407+
'Loads custom web fonts inside the injected Shadow DOM via ' +
408+
'`web_accessible_resources`, so the UI ships its own typography ' +
409+
"without depending on the host page's stylesheet."
410+
},
404411
'content-css-modules': {
405412
extra:
406413
'CSS Modules pipeline with locally-scoped class names. Imported ' +

0 commit comments

Comments
 (0)