Skip to content

Commit 02974f0

Browse files
authored
Merge pull request #14 from browserbase/anirudh/add-examples
Add examples from core
2 parents b201252 + ba41701 commit 02974f0

32 files changed

+10149
-837
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BROWSERBASE_API_KEY="your-api-key-here"
2+
BROWSERBASE_PROJECT_ID="your-project-id-here"

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
1615

1716
steps:
1817
- uses: actions/checkout@v4
@@ -31,7 +30,6 @@ jobs:
3130
build:
3231
name: build
3332
runs-on: ubuntu-latest
34-
3533

3634
steps:
3735
- uses: actions/checkout@v4
@@ -63,4 +61,3 @@ jobs:
6361

6462
- name: Run tests
6563
run: ./scripts/test
66-

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.BROWSERBASE_NPM_TOKEN || secrets.NPM_TOKEN }}
22-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist
88
/*.tgz
99
.idea/
1010

11+
.env
6 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zip
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<h1>Hello Extensions</h1>
4+
</body>
5+
</html>
5.81 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Browserbase Extension Test",
4+
"description": "Test extension for browserbase",
5+
"version": "1.0",
6+
"action": {
7+
"default_popup": "hello.html"
8+
},
9+
"content_scripts": [
10+
{
11+
"matches": ["https://www.browserbase.com/*"],
12+
"js": ["scripts/content.js"]
13+
}
14+
],
15+
"web_accessible_resources": [
16+
{
17+
"resources": ["images/logo.png"],
18+
"matches": ["https://www.browserbase.com/*"]
19+
}
20+
]
21+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable prettier/prettier */
2+
const imageUrl = chrome.runtime.getURL('images/logo.png');
3+
window
4+
.fetch(imageUrl)
5+
.then((response) => {
6+
if (response.ok) {
7+
console.log('browserbase test extension image loaded');
8+
}
9+
})
10+
.catch((error) => {
11+
console.log(error);
12+
});

0 commit comments

Comments
 (0)