Commit Graph

1538 Commits

Author SHA1 Message Date
Ian Stanion
5eae86a331 readme name change 2023-06-19 18:24:11 -04:00
Ian Stanion
b43f05520d Changed folder name 2023-06-19 18:22:18 -04:00
IanStanion-google
2dc5f36576 Update api-samples/devtools/chrome-query/chrome-query.md
Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-07 10:19:27 -04:00
Ian Stanion
1a2863d788 Update devtools.js 2023-06-02 11:34:23 -04:00
IanStanion-google
abc1e54e6c Update devtools.js 2023-06-02 11:31:44 -04:00
IanStanion-google
18ffe9a2e7 Update devtools.html 2023-06-02 11:31:12 -04:00
Ian Stanion
f85316a94a Changed folder structure 2023-06-02 11:29:45 -04:00
Ian Stanion
c951a07bbf Updated readme 2023-06-02 11:28:01 -04:00
Ian Stanion
d726a82dd7 Added readme 2023-06-02 09:57:23 -04:00
Ian Stanion
c27d40cd43 devtools sample 2023-06-02 09:38:48 -04: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
Oliver Dunk
e98b7cdec7 Ignore packed extension from allstar checks. (#846) 2023-03-10 11:51:48 -05: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
Sebastian Benz
1229875d30 Add offscreen dom parsing sample (#835)
* Add offscreen dom parsing sample

* Don't use offscreen.hasDocument

Use clients.matchAll instead. Also fixes a bug in the clipboard example
causing the document not to be closed if the passed argument is not a
string.

* Fix readme and remove accidentally committed popup files.
2023-03-03 14:06:43 +01:00