Commit Graph

50 Commits

Author SHA1 Message Date
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
Benjamin Lörincz
950982efa3 removed unused variables (#900)
thanks!
2023-05-01 09:51:24 -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
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
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
Abhilekh Gautam
3091fb8d39 Update api sample for action (#838)
* add sample for catifier that replaces every jpg image on web by another cat image

* add readme for catifier

* add section for set/get  badge text color

* add usage of isEnabled,getBadgeTextColor and setBadgeTextColor

* capitalize  button text

* use single quote and update badge text to test

* use <all_urls> host_permission
2023-03-09 16:08:28 +00:00
Oliver Dunk
45d8850c1a Add declarativeNetRequest API samples. (#839)
* Add declarativeNetRequest API samples.

Adds a number of samples for the declarativeNetRequest API.
2023-03-03 15:53:50 +00:00
Oliver Dunk
cf2df4f073 Add API sample for chrome.scripting API. (#830)
* Add API sample for chrome.scripting API.

* Run formatter.

* Address feedback.

* Update licence headers.

* Invert tab colours.
2023-02-23 13:51:12 +00:00
Sebastian Benz
dc2174377a Add prettier and eslint (#831)
* Ignores archived samples
* Uses eslint/recommended rules
* Runs prettier and eslint (including --fix) pre-commit via husky
* Adds new npm scripts: 'lint', 'lint:fix' and 'prettier'
* Does not lint inline js code
* Fix all prettier and eslint errors
* Add custom prettier rules
* Apply custom prettier rules
* Update readme to explain how to setup the repo
* addressed comments
2023-02-22 13:25:39 +01:00
rayxu-google
299f2134cb Migrate chrome.printing api sample from v2 to v3 manifest (#829)
* migrate chrome.printing api sample from v2 to v3 manifest

* Restore MV2 printing sample.

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-02-16 10:39:52 +00:00
Oliver Dunk
5bf419b385 Reorganize directory structure (#825)
* Remove docs folder.

This was a redirect from a GitHub pages site that does not appear
to be in use.

* Rename api folder to api-samples.

* Move examples to functional-samples folder.

* Move cookbook sample to functional-samples.

* Move tutorials to functional-samples folder.

* Move mv2 and apps folders to _archive.

* Rename tools folder to .repo.

* Move reference folder to functional-samples.

* Update README.

Update README with new relative links for reorg.

* Update README.md

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

---------

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-02-03 10:58:04 -06:00