Commit Graph

62 Commits

Author SHA1 Message Date
Oliver Dunk
729cd82127 Apply suggestions from code review
Co-authored-by: Joe Medley <jmedley@google.com>
2023-10-31 15:49:29 +00:00
Oliver Dunk
c94a69ff43 Add minimum_chrome_version 2023-10-31 15:48:17 +00:00
Oliver Dunk
087fddff67 Filter getScripts call 2023-10-31 15:13:09 +00:00
Oliver Dunk
f236ea60bd Use chrome.userScripts.update method 2023-10-31 15:11:43 +00:00
Oliver Dunk
7d96e90b68 Apply suggestions from code review
Co-authored-by: Joe Medley <jmedley@google.com>
Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-10-31 14:57:02 +00:00
Oliver Dunk
c12182cdfc Add API sample for User Scripts API 2023-10-27 14:40:28 +01:00
Oliver Dunk
b25a56bf8e Add Puppeteer testing tutorial (#1016)
* Add Puppeteer testing tutorial

* Use Jest as test runner

* Add comment on changing headless mode
2023-10-12 10:49:02 -05:00
Benjamin Lörincz
477973e48e removed unused variables, switched to async/await, cleanup (#906)
* removed unused variables, switched to async/await, cleanup

* leave decision to await promise to caller
2023-10-10 15:37:11 +02:00
Xuezhou Dai
f608c65e61 Add new omnibox sample (#988)
* Add new omnibox sample

* Update api-samples/omnibox/simple-example/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/simple-example/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/simple-example/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/simple-example/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/simple-example/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update description

* Update description

* Rename the global variable

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-08-25 16:09:05 +01:00
Xuezhou Dai
3f07ceec66 Add storage sample (#947)
* Add storage sample `stylizr`

* Update description

* Update api-samples/storage/stylizr/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Clear previous timer if message called twice

* Remove innerHTML

* Update tips

* Remove IIFE

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-08-21 11:34:27 +01:00
Xuezhou Dai
45bbd8d68d Update description fields for all samples (#994)
* Update `action` sample

* Update `alarms` sample

* Update `bookmarks` sample

* Update `browsingData` sample

* Update `contentSettings` sample

* Update `cookies/cookie-clearer` sample

* Update `debugger` sample

* Update wasm functional sample

* Update `functional/cookbook.geolocation-contentscript` sample

* Update `cookbook.geolocation-offscreen` sample

* Update `cookbook.geolocation-popup` sample

* Update `cookbook.offscreen-clipboard-write` sample

* Update `cookbook.offscreen-dom` sample

* Fix browsingData description

* Fix bookmarks description

* Update offscreen document descriptions

* Update descriptions

* Update browsingData description

* Update descriptions for all api samples

* Update descriptions for cookbook samples

* Update api-samples/browsingData/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/action/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/contextMenus/basic/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/cookies/cookie-clearer/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/debugger/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.favicon-cs/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/cookbook.sidepanel-site-specific/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/devtools/inspectedWindow/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Apply suggestions from code review

Co-authored-by: Joe Medley <jmedley@google.com>

* Update wasm samples description

* Update description

* Update functional-samples/sample.co2meter/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Apply suggestions from code review

---------

Co-authored-by: Joe Medley <jmedley@google.com>
Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
2023-08-17 18:19:42 +01:00
Xuezhou Dai
a3966b4d92 Add readme files to existing samples & fix typos (#981)
* Add `Running this extension` section

* Change title

* Fix title typo

* Fix wrong operation

* Update `Running this extension` section

* Add `Running this extension` section
2023-07-17 10:05:43 -06:00
kyoyoung keum
b6b19104fc fix rename file in debugger example app (#985)
Co-authored-by: keumky2 <keumky2@woowahan.com>
2023-07-15 09:58:19 -04:00
Xuezhou Dai
50e377c44c Add idle sample (#961)
* Add idle sample

* Fix typo

* Fix onStateChanged threshold

* Add README.md

* Update file structure

* Remove tabs permission

* Update api-samples/idle/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update api-samples/idle/service-worker.js

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update api-samples/idle/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update api-samples/idle/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

---------

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-07-07 15:42:14 +01:00
Xuezhou Dai
b4a018418d historyOverride sample for mv3 (#945)
* Add historyOverride sample

* Remove action

* Add README.md

* Remove IIFE

* Update style

* Fix double click
2023-07-07 15:35:03 +01:00
Xuezhou Dai
0af7b5132d Add topsites/basic sample (#967)
* Update sample file structure.

* Update description

* Fix wrong favicon path

* Add basic sample

* Update README.md

* Fix comments
2023-07-06 11:19:56 +01:00
Abhi G
327718cc14 Resolved the broken links (#975) 2023-07-03 15:55:11 +01:00
IanStanion-google
05b8106ce5 Adds readme files for every mv3 sample (#973)
* Adds readme files for every mv3 sample

* Update api-samples/alarms/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/alarms/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/contextMenus/global_context_search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/cookies/cookie-clearer/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/default_command_override/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/il8n/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/il8n/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/default_command_override/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/favicon/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/favicon/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/fontSettings/fontSettings Basic/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update README.md

* Update api-samples/fontSettings/fontSettings Basic/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Updates omnibox sample with small clarity improvement

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-30 14:13:53 -04:00
IanStanion-google
307da41987 Changes onInstalled event listener to action.onClicked (#971)
* Changes onInstalled event listener to action.onClicked

* Update sandbox.html

* Update sandbox.html
2023-06-30 04:21:28 -04:00
Joe Medley
7e067289c4 Copy edit the privacy README. (#970) 2023-06-28 09:25:08 -07:00
IanStanion-google
ef7eb4cd1a Privacy mv3 sample (#956)
* Implemented mv3 privacy API sample

* Added mv3 privacy API sample

* Expanded sample and updated readme

* Update service-worker.js
2023-06-26 15:57:14 +02:00
IanStanion-google
be334066a2 Devtools mv3 samples (#938)
* devtools sample

* Added readme

* Updated readme

* Changed folder structure

* Update devtools.html

* Update devtools.js

* Update devtools.js

* Update api-samples/devtools/chrome-query/chrome-query.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Changed folder name

* readme name change

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-23 10:08:52 -04:00
IanStanion-google
2527b666a6 Windows api mv3 sample (#959)
* WIP windows API sample

* Update background.js

* Added mv3 windows API sample

* Corrections based on review
2023-06-21 21:01:39 +02:00
IanStanion-google
cd11c730ea Web nav mv3 sample (#958)
* implemented webNavigation mv3 sample

* Added mv3 webNavigation API sample

* Changes based on review
2023-06-21 20:57:59 +02:00
IanStanion-google
0af4863057 Top sites mv3 sample (#957)
* Implemented topsites API sample

* Added topSites mv3 API sample

* Changes based on review
2023-06-21 20:57:18 +02:00
IanStanion-google
29806df1b2 Added mv3 bookmarks API sample (#955)
* Added mv3 bookmarks API sample

* Changes based on review
2023-06-21 20:56:16 +02:00
IanStanion-google
2f74f5563f Debugger (#950)
* Implement debugger API mv3 sample

* Expands the debugger sample to make use of captured network data

* Update manifest.json

* Create README.md

* Update README.md
2023-06-21 20:55:20 +02:00
IanStanion-google
e9c3f98ce7 Rich notifications sample (#949)
* WIP notifications API sample

* Update background.js

* Add image folder from chrome apps sample

* Added mv3 rich notifications sample

* Reworked Notification sample

* Removed deprecated API use
2023-06-21 20:54:23 +02:00
IanStanion-google
0cb5580bcd Mv3 font settings sample (#960)
* mv3 updated fontSettings sample

* Added mv3 sample for fontSettings

* Implemented simplified font settings sample

* Update popup.js
2023-06-21 20:51:31 +02:00
IanStanion-google
c6088ff5ab Browsing data mv3 sample (#954)
* WIP implementation of an mv3 updated browsingData sample

* Update popup.js

* Implements mv3 browsingData sample

* Corrections based on review
2023-06-21 20:31:07 +02:00
IanStanion-google
41e3f968a5 Added readme and licensing (#953) 2023-06-20 11:58:08 -04:00
IanStanion-google
c00196f9bb Updated history sample for mv3 (#940)
* Updated history sample for mv3

* Changed filenames

* Update api-samples/history/showHistory/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update show-history.md

* Update api-samples/history/showHistory/show-history.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update manifest.json

* Update manifest.json

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-09 13:06:21 -04:00
IanStanion-google
778403f124 Updated contentSettings sample for mv3 (#941)
* Updated contentSettings sample for mv3

* Update api-samples/contentSettings/contentSettings.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update contentSettings.md

* Update contentSettings.md

* Update manifest.json

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-07 11:16:05 -04:00
Oliver Dunk
178e272b08 Fixes for web_accessible_resources sample. (#946)
* Fixes for web_accessible_resources sample.

* Address feedback.
2023-06-07 16:13:12 +01:00
Joe Medley
2a89694245 Fix typos. (#943) 2023-06-07 08:00:30 -07:00
Zowie
223211a239 fix: deconstruct the reaction field (#937) 2023-06-06 09:28:50 -05:00
IanStanion-google
c32803f138 Updated url_override samples to mv3 (minimal changes) (#936)
* Updated url_override samples to mv3 (minimal changes)

* Delete manifest.json

* Delete redirect.html
2023-06-05 14:05:38 -04:00
IanStanion-google
56952ea28e Added 2 sandbox samples (#919)
* Added 2 sandbox samples

* Updated readme style

* Updated readme for 2nd Sandbox sample

* Replaced windows API with Tabs to modernize

* Small update to readme

* Update api-samples/Sandbox/sandbox/mainpage.js

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/Sandbox/sandbox/main.js

Co-authored-by: Joe Medley <jmedley@google.com>

* Update main.js

* Update main.js

* Update mainpage.html

* Update mainpage.js

* Update manifest.json

* Update sandbox.html

* Update main.js

* Update main.js

* Update manifest.json

* changing folder case

* case change

* Minor cleanup

* Update sandbox.html

* Update sandbox.html

* Update sandbox.html

* Update api-samples/sandbox/sandbox/sandbox.html

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandbox/sandbox.html

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandbox/sandbox.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandboxed-content/sandboxed-content.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandboxed-content/sandboxed-content.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Changed filename to service-worker.js

* Update api-samples/sandbox/sandbox/mainpage.js

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandbox/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandboxed-content/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/sandbox/sandboxed-content/service-worker.js

Co-authored-by: Joe Medley <jmedley@google.com>

* Update sandbox.md

* Update sandboxed-content.md

* Update manifest.json

* Update manifest.json

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-05 12:15:45 -04:00
Xuezhou Dai
961028b1bf Add tabCapture sample (#933)
* Add tabCapture sample

* Add README

* Update receiver.html

* Fix variable loss caused by idle

* Use windows.create

* Remove unnecessary logs

* Update README

* Update api-samples/tabCapture/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update api-samples/tabCapture/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update api-samples/tabCapture/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update api-samples/tabCapture/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Rename background.js

* Remove unnecessary async function

* Move the script to the body

* Update api-samples/tabCapture/README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update README.md

* Update api-samples/tabCapture/manifest.json

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

---------

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-06-01 10:51:54 +01:00
IanStanion-google
175868f4ac webRequest onAuthRequired sample (#909)
* webRequest onAuthRequired sample

* Update background.js

* Update api-samples/webRequest/manifest.json

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

* Update manifest.json

* Update background.js

* Update background.js

* Changed background to service worker

* Update manifest.json

* Update service-worker.js

* Changed folder organization

* Update api-samples/webRequest/http-auth/service-worker.js

Co-authored-by: Oliver Dunk <oliverdunk@google.com>

* Update api-samples/webRequest/http-auth/manifest.json

Co-authored-by: Oliver Dunk <oliverdunk@google.com>

* Added readme and corrected code

* Corrected readme

* Update manifest.json

* Update api-samples/webRequest/http-auth/http-auth.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/webRequest/http-auth/http-auth.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update service-worker.js

* Update manifest.json

---------

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
Co-authored-by: Joe Medley <jmedley@google.com>
2023-05-22 09:28:21 -04:00
IanStanion-google
eb4acc3d06 i18n API sample (#923) 2023-05-19 12:57:02 -04:00
Nathan Muggli
0168b30a67 Update printers table headers to match data (#912) 2023-05-12 12:51:06 -07:00
Shreya Ghosh
50fe851795 Action API Readme Added (#884)
* action API readme added

* #798 action api documentation added

* Delete alarms.md
2023-05-04 15:27:01 -04:00
Benjamin Lörincz
dc5d34f0f7 pretty print (#895)
* added json for prettier, npm run prettier in lint-staged
2023-05-01 11:29:59 -04:00
Benjamin Lörincz
ba108bff6f removed unused variables, cleanup, added icons (#907) 2023-05-01 10:06:53 -04:00
Benjamin Lörincz
8e1afb6f03 enhanced default_icon, pretty print (#901) 2023-05-01 10:04:58 -04:00
Benjamin Lörincz
688fa932dd removed unused variables, cleanup (#905) 2023-05-01 10:00:36 -04:00
Benjamin Lörincz
e49d389784 removed unused variables (#904) 2023-05-01 09:58:47 -04:00
Benjamin Lörincz
9f241949d6 corrected default_icon (#903) 2023-05-01 09:57:43 -04:00
Benjamin Lörincz
b5ba7ae212 enhanced default_icon (#902) 2023-05-01 09:55:25 -04:00