Граф коммитов

1724 Коммитов

Автор SHA1 Сообщение Дата
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
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
IanStanion-google a10f6322b6
Minimum viable fix for removing hasDocument() method (#823) 2023-02-01 10:09:49 -05:00
Ambuj sahu e868874a21
update keyboard shortcut (link) (#820) 2023-01-23 14:59:55 -06:00
Simeon Vincent b5c62b1c6f
Add offscreen clipboard cookbook example (#797)
* Add offscreen clipboard cookbook example

* Clarify solution comment

* Apply suggestions from code review

* Update offscreen.js

@dotproto I took some time to consider, and I think keeping the messages and proper verifications in the workflow is a much better approach than simplifying to a purely instructive showing of the offscreen API. It not only demonstrates extension writing best-practice for completely new learners, but also gives the opportunity to demonstrate the potential for having multiple offscreen documents packaged into a project that could potentially be opened.

* Update cookbook/offscreen-clipboard-write/offscreen.html

* Apply suggestions from code review

* Add additional explanitory text

* Apply suggestions from code review

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

* Add a README

* Missing semi

* Rewrap at 80 char

This brings descriptive comments in line with the copyright header required by Google.

* Rewrap at 80 characters & clarify comments

* Remove unreachable return statement

Co-authored-by: IanStanion-google <112102430+IanStanion-google@users.noreply.github.com>
Co-authored-by: Joe Medley <jmedley@google.com>
2023-01-19 11:01:34 -08:00
amysteamdev c7bd96fc51
Split favicon into two separate examples (#806)
* Favicon split examples draft

* Fix content script

* Tweak popup

* Add alt to img
Tweak css

* Add readme

* Tweak img

* Tweak img

* Apply @oliverdunk's tech review
2023-01-19 08:08:44 -06:00
amysteamdev 49728cd4ae
Convert MV2 optional permission example to MV3 (#792)
* Convert optional perms to MV3

* Add readme

* change size

* Update SS

* Update readme

* Convert callback to promises
2023-01-19 08:06:43 -06:00
amysteamdev c72cd1c723
Update readme (#812) 2023-01-19 08:05:16 -06:00
Danny Cho 7fc6815952
Fix typo in focus-mode ext description (#808)
The description mentions it enables "reading mode", but based on the tutorial, I believe this is meant to say "focus mode"?
2023-01-18 13:28:43 -06:00
CodeMaster7000 2adde0815f
Update README.md to correct grammar and improve formatting (#802)
* Update README.md

* Update README.md
2023-01-13 08:39:13 -08:00
amysteamdev 88ebb9e2af
Removes duplicate legacy hello-world (#799) 2023-01-05 14:15:41 -06:00
James Kerrane a0f47934ea
Minor reading-time extension manifest change (#761)
Make reading-time extension manifest consistent with tutorial at https://developer.chrome.com/docs/extensions/mv3/getstarted/tut-reading-time/
2022-12-08 13:39:08 -06:00
Liam 5c41102aa2
Fix favicon API example (#771) 2022-12-08 10:26:17 -08:00