Commit Graph

1487 Commits

Author SHA1 Message Date
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
amysteamdev
2938c52306 [TUTORIAL] Update hello-extensions to match Dev basics (#751)
* Update hello-extensions to match Dev basics

* Update tutorials/hello-world/popup.js

Co-authored-by: Simeon Vincent <simeonv@google.com>
2022-09-21 10:35:31 -07:00
pwwpche
f05b564a95 Fix code samples for popup script due to Manifest v3 update (#756)
According to https://developer.chrome.com/docs/extensions/reference/scripting/#type-ScriptInjection, the property name for function injection has been changed to `func` from `function`. This change update the sample script accordingly.
2022-09-21 10:34:27 -07:00
Simeon Vincent
624c28a0b5 Remove unnecessary key field 2022-09-11 19:58:39 -07:00
amysteamdev
06960d3844 Update tabs-manager to match tutorial code samples (#750) 2022-09-06 15:52:21 -05:00
Solomon Kinard
c2439aa243 Favicon MV3 example (#721) 2022-08-10 09:38:13 -07:00
amysteamdev
4da98eada4 Fix: Switch tab and window update (#729) 2022-07-01 15:05:55 -07:00
Simeon Vincent
dcff87af05 Example milestone cleanup (#727)
* Add README and screenshot
* Adjust variable name casing for clarity
* Add copyright headers
* Reformat with clang-format
* Adds the 'milestones' example to the index
* Clarify extension's name and description
2022-06-23 17:41:37 -07:00
Solomon Kinard
73ef3a90c7 Get the milestone when a merged Chromium Gerrit tab is active (#722) 2022-06-21 18:51:28 -07:00
amysteamdev
afea3db429 [focus-mode] Remove "commands" permission (#714)
* [focus-mode] Remove commands permission

* Clarify description

Co-authored-by: Simeon Vincent <simeonv@google.com>

Co-authored-by: Simeon Vincent <simeonv@google.com>
2022-05-11 14:25:33 -05:00
amysteamdev
17956f44b6 Convert water-alarm-notification to MV3 (#678) 2022-04-27 15:52:15 -07:00
amysteamdev
61adf60cec Convert Tab Flipper to MV3 (#679) 2022-04-27 15:51:58 -07:00
amysteamdev
6db9c8d815 Convert Global Google Search to MV3 (#680) 2022-04-27 15:51:49 -07:00
Simeon Vincent
b717fe9ad3 Ignore _debug directory (#711) 2022-04-27 14:26:58 -07:00
amysteamdev
8911a607d8 Getting Started: Reading time (#700) 2022-04-27 09:45:28 -07:00
amysteamdev
b448c9d3a7 Getting Started Tutorial: Tabs Manager (#705) 2022-04-27 09:44:35 -07:00
amysteamdev
c2aad1e4aa Getting Started options html Move script tag (#710)
This PR moves the script tag inside of the body tag. Related https://github.com/GoogleChrome/developer.chrome.com/pull/2696/
2022-04-26 11:23:15 -07:00
amysteamdev
62a8f32a2d Getting Started Tutorial: Focus Mode (#701) 2022-04-21 10:46:00 -07:00
Alex 'Codetheorist' Scott
08aa86aca1 Fix page redder to disregard any chrome internal pages (#651) 2022-03-10 14:19:33 -08:00
Matt Taniguchi
e503dee85b correction: hello world example contains call to onInstalled, not onClicked (#650) 2022-03-10 13:56:22 -08:00
Alex 'Codetheorist' Scott
4684750231 Readme fixes (#652) 2022-03-10 13:41:26 -08:00
Archit Mishra
faf507a4ce Fix Typo in hello world example comments (#666)
th -> the
2022-03-10 13:40:15 -08:00
XiaoDong
50c8e0bb59 fix: Uncaught TypeError in action api demo (#664) 2022-01-24 10:57:55 -08:00
Nicolas Ramz
a8b88516b0 Fixed typo (#629) 2021-08-25 15:15:49 -07:00
Aditya Dharmawan Saputra
c2437ba536 remove extra space and fix typo (#628) 2021-08-23 14:22:07 +10:00
Simeon Vincent
582677fc1c MV3 migration content script snippets (#626) 2021-08-10 18:17:30 -07:00
figureConan
9f282ef7e9 Fix Uncaught TypeError: $(...).empty(...).dialog is not a function (#595)
Uncaught TypeError: $(...).empty(...).append(...).dialog is not a function

Co-authored-by: figureConan <detectiveboy.yu@gmail.com>
2021-08-04 08:33:30 +10:00
Navaneeth anand
ed8dfeb532 Update README.md (#618) 2021-08-04 08:32:28 +10:00
figureConan
0de7a3889b Fix Typo: In word 'incriments' (#596)
Co-authored-by: figureConan <detectiveboy.yu@gmail.com>
2021-08-04 08:28:35 +10:00
SedationH
84933fd562 fix(api/action): handle image fetch url error (#620) 2021-08-04 08:26:44 +10:00
Simeon Vincent
130a2a5d64 Port My Bookmarks example to MV3 (#567) 2021-04-22 18:30:29 -07:00
Simeon Vincent
d2039de3b8 Alarms API demo (#580) 2021-04-22 10:37:33 -07:00
Simeon Vincent
ec00200391 Nits I forgot to commit before merging (#589) 2021-04-16 09:44:08 -07:00
Simeon Vincent
3f48be6b90 Action API demo (#574) 2021-04-15 20:15:10 -07:00
Simeon Vincent
e716678b67 Port of MV2's omnibox/newtab-search to MV3 (#573) 2021-04-08 11:51:15 +10:00
ssoda
b3cfbf6485 Fix spelling (#578) 2021-03-30 10:56:41 -07:00
Simeon Vincent
d362b081a1 Page redder example (#562) 2021-03-16 22:48:08 -07:00