Ian Stanion
6bb5a82e65
Changes based on review
2023-06-20 04:19:30 -04:00
Ian Stanion
7ea61f9c65
Added mv3 webNavigation API sample
2023-06-11 14:27:51 -04:00
Ian Stanion
cbd7c595dd
implemented webNavigation mv3 sample
2023-06-09 05:19:12 -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
yiminghe
eea2fd1b23
Update cookbook.offscreen-clipboard-write README.md ( #942 )
2023-06-06 09:29:59 -05: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
Oliver Dunk
d6493a71ac
Merge branch 'fishoe-main'
2023-06-05 16:53:17 +01:00
Oliver Dunk
c3728d904d
Merge branch 'main' of github.com:fishoe/chrome-extensions-samples into fishoe-main
2023-06-05 16:52:58 +01:00
amysteamdev
0e8881c6ce
Add "Running this extension" section to template ( #935 )
...
* Add Running this extension section to template
* Update README-template.md
2023-06-01 07:13:27 -05: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
amysteamdev
ee2c6fcad0
Switch to service worker ( #924 )
2023-05-22 09:41:06 -05: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
amysteamdev
5ffd262abc
Add helpful links to WASM readme ( #920 )
2023-05-18 08:50:09 -05:00
Nathan Muggli
0168b30a67
Update printers table headers to match data ( #912 )
2023-05-12 12:51:06 -07:00
Xuezhou Dai
eb6badb726
Add wasm sample ( #841 )
...
* Add wasm sample
* Add README
* Fix indent in README
* Add a sample that doesn't use module to import wasm
* fix: added new line at the end of files
* Removed sample with format marco & extra space
* No more extern crate
* Sync changes
* Added new line at the end of files
* Update output
* Update footnotes
* Removed reference for unpacked extension
* Used new README template
* Update dependencies
* Update build artifacts
* fix: typo
* Update files with latest version of rustc
---------
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
2023-05-12 10:58:20 +01: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
amysteamdev
9230a50346
[Side Panel API] Add copyright to sidepanel samples ( #908 )
...
* Add copyright to sidepanel samples
* Fix year
* Add error catching
and async
2023-05-04 11:14:22 -05:00
amysteamdev
064dde640b
[SidePanel API] Adds four examples ( #890 )
...
* Add global side panel
* Add multiple panes sample
* Add dictionary side panel sample
* Add google.com and action click extension
* Switch to lowercase
* Fix name
* Fix links
* Add screenshots and links
* Tweak google sp
* Remove logs
* Add install reason
* Add default title to action
* Change extension names
Update readme's
* Tweak comments
Add aside
* increase picture size
* Add screenshots
* Add spaces
* Update screenshots
* Update img size
* Refactor multiple panels
* rename action folder to site-specific
* Switch to Side Panel API
* Apply suggestions from Tech review p2
Thanks Oliver!
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
* Add space
Change variable
---------
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
2023-05-03 11:19:49 -05: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
e09fc71c9e
moved body style to existing css file ( #896 )
2023-05-01 10:30:15 -04:00
Benjamin Lörincz
5431639ce2
added length to avoid error ( #892 )
...
check tabIds.length avoid error
2023-05-01 10:17:04 -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
Benjamin Lörincz
950982efa3
removed unused variables ( #900 )
...
thanks!
2023-05-01 09:51:24 -04:00
Benjamin Lörincz
370685a326
removed unused variable ( #898 )
2023-05-01 09:48:38 -04:00
Benjamin Lörincz
ab9460ee7d
removed empty background.js ( #897 )
2023-05-01 09:47:22 -04:00
Benjamin Lörincz
281d194a44
enhanced default_icon, pretty print ( #894 )
2023-05-01 09:41:11 -04:00
IanStanion-google
6b334ca8d1
Added Basic contextMenus sample ( #859 )
...
* Added Basic contextMenus sample
* Updated license header
* Update sample.js
* Update api-samples/contextMenus/basic/sample.js
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
* Update api-samples/contextMenus/basic/sample.js
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
* Update sample.js
* Update sample.js
* Create README.md
* Update api-samples/contextMenus/basic/README.md
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
---------
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
2023-04-28 09:58:57 -04:00
Joe Medley
7f9f5b8482
Change passive to active voice in printer README. ( #882 )
...
* Change passive to active voice in printer README.
* Update api-samples/printing/README.md
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
---------
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
2023-04-13 07:06:23 -07:00
patrick kettner
037bf12aac
add eslint-config-prettier so eslint can load prettier, pin dev deps ( #869 )
2023-04-11 16:51:49 +02:00
Joe Medley
d7f3d83a55
Printer ( #858 )
...
* Add printer status listener.
* Show printer status in popup.
* Fix Status display.
* Implement cancelJob().
* Correct script typos.
* Add important keyword to CSS.
* Refactor element pointers.
* Rewrite callbacks to promises.
* Fix CSS.
* Fix variable name.
* Move Print button to front of line.
* Restore old style of submitJob().
* Fix bugs.
* adding print job table along with cancel button (#847 )
* adding print job table along with cancel button
* make cancel button hidden conditionally and scroll to buttom after print button is clicked
* Fix spelling.
* Update api-samples/printing/printers.js
* Add README file.
* Readme corrections.
* Update api-samples/printing/README.md
* Update api-samples/printing/README.md
* Update api-samples/printing/README.md
* Create an addCell() function.
* Fix position of addCell().
* Rearange popup layout.
* More rearranging.
* Add a warning about the print job table.
* Feedback from Patrick.
* Lint and update strings.
---------
Co-authored-by: rayxu-google <120415990+rayxu-google@users.noreply.github.com >
2023-04-05 13:35:58 -07:00
Joe Medley
0c7e9b6dba
Clarify when a README is needed. ( #868 )
...
* Clarify when a README is needed.
* Update CONTRIBUTING.md
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
---------
Co-authored-by: Oliver Dunk <oliverdunk@google.com >
2023-03-29 10:45:06 -07:00
patrick kettner
7b5d882159
make google news samples functional ( #855 )
...
* update old google news samples
Co-authored-by: Joe Medley <jmedley@google.com >
2023-03-29 12:59:36 -04:00
amysteamdev
4baa57bd47
Extension sample for Debugging Extensions tutorial ( #867 )
...
* First draft
* Update popup and options
* Update comments
* Update functional-samples/tutorial.broken-color/service-worker.js
Co-authored-by: Sebastian Benz <sebastian.benz@gmail.com >
* Add readme
* Update readme
---------
Co-authored-by: Sebastian Benz <sebastian.benz@gmail.com >
2023-03-28 13:57:59 -05:00
Joe Medley
ee11d4ac5b
Add a README template and instructions to use it. ( #866 )
...
* Add README template.
* Formatting
* Add README instructions and link to CONTRIBUTING.
2023-03-27 08:19:13 -07:00
amysteamdev
4aa6bdb595
[SW-tutorial] Refactor alarms API logic (sw-tips.js) ( #865 )
...
* [SW-tutorial] Refactor alarms API logic
After doing some experiments (like closing all my browser windows which I never, EVER do...) I realized the tips logic was not working as expected, because [alarms do not persist across browser sessions[(https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/alarms#:~:text=Alarms%20do%20not%20persist%20across%20browser%20sessions .)
* Return storage set
* Tech review
2023-03-24 16:40:24 -05:00
amysteamdev
0cd692076e
[New tutorial] Open Chrome API docs (condensed) ( #851 )
...
* First draft
* Rename folder
* Tweak comments
* Update index.html
* remove extra closing div
* Rename sw file
* Apply first round of @sebastianbenz suggestions
* Fix import
* Update popover
* Second tech review round
* Removed long list of suggestions
Only show past history
* Move host permissions
* Rename extension and folder
* REmove await
* Move icons into images folder
2023-03-22 12:05:35 -05:00
Sebastian Benz
c1aa38a04a
Run lint on every push ( #857 )
2023-03-20 16:22:33 -04:00
Sebastian Benz
d0dd2c3a9e
Eslint: don't allow var ( #856 )
2023-03-20 19:36:40 +01:00
Sebastian Benz
ad857a253b
eslint: validate script imports ( #854 )
...
Add https://github.com/import-js/eslint-plugin-import for validing
script imports (eslint will fail if imported file does not exist).
Also fixes prettier errors in api-samples.
2023-03-20 17:26:02 +01:00
patrick kettner
2b485f199f
update out of date links ( #852 )
2023-03-20 11:01:47 -04:00