Commit Graph

1524 Commits

Author SHA1 Message Date
IanStanion-google
ebea82d8a3 Update manifest.json 2023-05-22 08:38:26 -04:00
IanStanion-google
15c444cccd Update service-worker.js 2023-05-22 08:37:41 -04:00
IanStanion-google
2b1397315d Update api-samples/webRequest/http-auth/http-auth.md
Co-authored-by: Joe Medley <jmedley@google.com>
2023-05-19 13:47:23 -04:00
IanStanion-google
6cf4c7b75f Update api-samples/webRequest/http-auth/http-auth.md
Co-authored-by: Joe Medley <jmedley@google.com>
2023-05-19 12:49:13 -04:00
IanStanion-google
9dba96c354 Update manifest.json 2023-05-19 08:06:57 -04:00
IanStanion-google
5277a99892 Corrected readme 2023-05-19 08:05:00 -04:00
IanStanion-google
6dd7dd3716 Added readme and corrected code 2023-05-19 07:49:05 -04:00
IanStanion-google
b7472a1a77 Update api-samples/webRequest/http-auth/manifest.json
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-05-19 07:05:32 -04:00
IanStanion-google
5af85b490c Update api-samples/webRequest/http-auth/service-worker.js
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-05-19 07:05:23 -04:00
IanStanion-google
e1fc00ee21 Changed folder organization 2023-05-19 06:52:15 -04:00
IanStanion-google
acc14014a9 Update service-worker.js 2023-05-16 15:47:48 -04:00
IanStanion-google
e25bf237d5 Update manifest.json 2023-05-15 09:42:11 -04:00
IanStanion-google
8053df2b29 Changed background to service worker 2023-05-15 09:40:31 -04:00
IanStanion-google
b7288caf3f Update background.js 2023-05-15 09:39:29 -04:00
IanStanion-google
fe6795bb1d Update background.js 2023-05-15 09:37:51 -04:00
IanStanion-google
c9dde8b668 Update manifest.json 2023-05-15 09:12:08 -04:00
IanStanion-google
2289c741dd Update api-samples/webRequest/manifest.json
Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-05-15 09:11:38 -04:00
IanStanion-google
5ccb092c9a Update background.js 2023-05-15 09:11:20 -04:00
IanStanion-google
4b0a3de64b webRequest onAuthRequired sample 2023-05-04 12:24:27 -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