Commit Graph

17 Commits

Author SHA1 Message Date
IanStanion-google
340f2edf0a Update api-samples/contextMenus/basic/README.md
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-04-28 09:56:43 -04:00
IanStanion-google
7077833e4a Create README.md 2023-04-26 13:32:01 -04:00
IanStanion-google
d21076e3aa Update sample.js 2023-04-26 13:19:07 -04:00
IanStanion-google
79b6e9c033 Update sample.js 2023-04-26 09:52:09 -04:00
IanStanion-google
3b004161be Update api-samples/contextMenus/basic/sample.js
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-04-25 10:29:49 -04:00
IanStanion-google
106643d780 Update api-samples/contextMenus/basic/sample.js
Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-04-25 10:29:41 -04:00
IanStanion-google
15ea9fc3a7 Update sample.js 2023-04-24 20:53:58 -04:00
IanStanion-google
4c2279eb21 Updated license header 2023-04-24 01:10:47 -04:00
IanStanion-google
eb4da169fb Added Basic contextMenus sample 2023-03-23 10:34:41 -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
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