Commit Graph

526 Commits

Author SHA1 Message Date
Simeon Vincent
cba73f7397 Allow contributors to lint individual examples 2024-11-18 12:17:35 -08:00
Simeon Vincent
18238c1bee Merge pull request #564 from dotproto/native-update
Update native-messaging to use python3, clarify instructions
2024-10-23 11:20:20 +02:00
rebloor
735dee777c Update README.md
Example now simply returns "pong"
2024-10-23 14:29:04 +13:00
rebloor
6fc3408d31 Merge branch 'main' into native-update 2024-10-19 05:48:50 +13:00
rebloor
1d8a18aa1e Automatic theme switching support in favorite colours (#567)
* Automatic theme switching support in favorite colours

* Ref to dark theme

Co-authored-by: Rob Wu <rob@robwu.nl>

---------

Co-authored-by: Rob Wu <rob@robwu.nl>
2024-09-09 16:26:27 +12:00
Florian Dieminger
141134499a Merge pull request #566 from mdn/remove-zwsp
fix(examples.json): remove &#x200B;
2024-08-12 18:27:47 +02:00
Florian Dieminger
cc4236edfb fix(examples.json): remove &#x200B;
There are two &#x200B; (zero width space) in the
examples.json
2024-08-12 10:05:28 +02:00
Simeon Vincent
d2d2255f77 Apply suggestions from code review
Co-authored-by: rebloor <git@sherpa.co.nz>
2024-07-18 15:22:39 -07:00
Simeon Vincent
8a66c92283 Update native-messaging/app/ping_pong.json
Co-authored-by: Rob Wu <rob@robwu.nl>
2024-07-17 12:35:32 -07:00
Simeon Vincent
cdf409a9bf Note directory restrictions on macOS 2024-07-17 12:34:18 -07:00
Simeon Vincent
2d767fa652 Add doc link for additional help 2024-07-17 12:29:06 -07:00
Simeon Vincent
55c434810e Remove Python 2 support 2024-07-17 12:28:41 -07:00
Simeon Vincent
f627c5f7a9 Merge pull request #558 from dahn-zk/fix-native-messaging-example-checker-script
native-messaging: fix Windows checker script not to fail on missing HKCU when HKLM is set
2024-07-12 19:29:55 -07:00
Simeon Vincent
711f647c45 Merge pull request #561 from s-c-p/patch-1
Illustrative function name
2024-07-12 19:22:43 -07:00
Simeon Vincent
b5260e150a Update native-messaging to use python3, clarify instructions
Fixes #560
2024-07-12 19:10:09 -07:00
echo
91c8d7e708 fixed typo in imagify/manifest.json (#563) 2024-06-03 05:06:47 +12:00
S C P
5dcff0bef0 Illustrative function name
updateActiveTab has ambiguous meaning, most prominent of which doesn't mean what we are actually trying to do.
2024-05-11 09:24:33 +05:30
dan oak
2a93ff804a native-messaging README: replace Python 2 doc link to Python 3 2024-04-20 18:33:42 +03:00
dan oak
06e230f720 native-messaging: fix not to fail on missing HKCU when HKLM is set
there was a bug when missing key in HKEY_CURRENT_USER would throw from `winreg.OpenKey` call
2024-04-20 18:33:06 +03:00
Ibrahim Hasaan
faadfca8dd Update root-cert-stats to use runtime.sendMessage #542 (#547)
* Adding send message and on message functions

* moving table displaying into a new function

* updating rootCertStats from var to let

* updating comments

* Apply Linter change, unused const

Co-authored-by: Rob Wu <rob@robwu.nl>

---------

Co-authored-by: Rob Wu <rob@robwu.nl>
Co-authored-by: rebloor <git@sherpa.co.nz>
2023-11-05 06:16:53 +13:00
Rob Wu
d5fee36ec5 chore: Add package-lock.json (#550) 2023-11-03 04:39:39 +13:00
Rob Wu
31008d83eb chore: use npm install instead of npm ci in gh workflow (#549)
The project does not have a package-lock.json file, so `npm ci` does not
work. Switch to `npm install` instead.
2023-11-02 11:40:01 +13:00
Rob Wu
fc984fa2e4 chore: add setup-node + npm ci to lint workflow (#548) 2023-11-01 10:40:21 +13:00
Uiolee
cad65502f2 chore: update eslint and CI (#532)
* update eslint

* babel-eslint has been deprecated

* ci: update lint
2023-10-31 17:20:42 +01:00
rebloor
e0b3fc5a94 Content cherry picked from approved PR 482 (#546) 2023-10-25 09:45:06 +13:00
Ruth John
fa4187c2b1 Merge pull request #537 from rebloor/window-manipulator-update-for-issue-28
window-manipulator update for issue 431
2023-10-04 13:54:11 +01:00
Ruth John
5f2fe84e0f Merge branch 'main' into window-manipulator-update-for-issue-28 2023-10-04 10:05:05 +01:00
rebloor
709bc28a6c Reverse var to let change (#541)
* Reverse var to let change

* Review feedback

Co-authored-by: Rob Wu <rob@robwu.nl>

---------

Co-authored-by: Rob Wu <rob@robwu.nl>
2023-10-02 13:46:01 +13:00
David D Lowe
6392240f0f Use async/await in options.js (#457)
Co-authored-by: rebloor <git@sherpa.co.nz>
2023-09-06 11:24:59 +12:00
rebloor
a468a4c8b3 Delete build directory (#539)
Fixes #397

There is no mechanism for updating these files. They were last refreshed five years ago, so can no longer be guaranteed to reflect the example code. Links to these files on MDN were removed in https://github.com/mdn/content/pull/28422.
2023-08-28 04:54:46 +12:00
Richard Bloor
9dd4addd38 window-manipulator update for issue 28 2023-08-22 14:47:52 +12:00
sn02
eb2311c181 Update manifest.json (#447)
Co-authored-by: rebloor <git@sherpa.co.nz>
2023-08-10 21:23:17 +12:00
Daniel Nixon
8b40ee549c Improve accessibility (#418) 2023-08-10 16:33:08 +12:00
Daniel Nixon
017fb25625 Improve accessibility (#417)
https://www.w3.org/TR/WCAG20-TECHS/H44.html

Co-authored-by: rebloor <git@sherpa.co.nz>
2023-08-10 16:28:17 +12:00
guest271314
ff1cd273e0 Substitute about:debugging#/runtime/this-firefox for about:debugging (#488)
* Substitute about:debugging#/runtime/this-firefox for about:debugging

Extensions are loaded at about:debugging#/runtime/this-firefox not about:debugging

* Drop Python 2 support. Fixes #489

* Update README.md

* Revert to ae1c2176ea

* Update native-messaging/README.md

Co-authored-by: rebloor <git@sherpa.co.nz>

---------

Co-authored-by: rebloor <git@sherpa.co.nz>
2023-06-15 14:47:36 +12:00
Rob Wu
f4a611d76b Add index of all DNR examples to all DNR examples (#527) 2023-05-17 22:25:37 +02:00
Rob Wu
06330a69c2 Add declarativeNetRequest (DNR) + MV3 examples (#526)
These examples are designed to be cross-browser compatible.
In particular, these extensions do not use `background` because there is
currently no single manifest that can support both Firefox and Chrome,
due to the lack of event page support in Chrome, and the lack of service
worker support in Firefox.

Three examples demonstrating the use of the declarativeNetRequest API:
- dnr-block-only: One minimal example demonstrating the use of static
  DNR rules to block requests.
- dnr-redirect-url: One minimal example demonstrating the use of static
  DNR rules to redirect requests.
- dnr-dynamic-with-options: A generic example demonstrating how host
  permissions can be requested and free forms to input DNR rules.
2023-05-17 18:13:55 +02:00
Pedro Celeste
9433f842d6 Code now reflects newer versions of browser.menus API (#523)
* Extension now is up-to-date with the Menus API

In the previous version of this extension, the author used a comment to
explain that the `browser.menus.onClicked.addListener` event listener
doesn't pass the current check state of a checkbox menu.

To solve this, an additional variable checkedState was used to keep
track of the current value of the context menu.

But now, this function is supported by the menus API in Firefox.

I changed the code to reflect how you would use it with the recent
versions, making it easier for new developers to learn this
functionality.

* Comment now reflects new function body
2023-04-21 14:14:58 +12:00
Aram Panasenco
a2da599980 Make background script of context-menu-copy-link-with-types non-persistent? (#501)
* Made background script of context-menu-copy-link-with-types non-persistent. Now clearing errors that could result from background.js context menu creation happening more than once.

* Suggestions from code review

* Syntax error and formatting

* Added note about () => void browser.runtime.lastError

* Feedback suggestion

Co-authored-by: Rob Wu <rob@robwu.nl>

---------

Co-authored-by: rebloor <git@sherpa.co.nz>
Co-authored-by: Rob Wu <rob@robwu.nl>
2023-03-19 05:20:33 +13:00
Carlos Mañas
0d9c6623fb Use const instead of let (#520) 2023-03-17 12:19:01 +01:00
guest271314
c982b6b4af Eliminate space counted as message length (#510) 2023-01-13 16:27:50 +01:00
Brian Thomas Smith
48bae1f4c2 Merge pull request #508 from mdn/add-template-docs
Add shared workflows
2023-01-03 15:46:08 +01:00
Brian Thomas Smith
71ed91ff24 chore(tooling): reset Prettier config to allow the project to define settings 2023-01-03 15:02:26 +01:00
Brian Thomas Smith
2bb5e55e14 chore(docs): Fix templates 2023-01-03 13:52:18 +01:00
Brian Thomas Smith
83764b3002 chore(docs): Fix templates 2023-01-03 13:45:04 +01:00
Brian Thomas Smith
83fa8830f0 Delete config.yml
This is not needed in the current welcome bot -> https://github.com/mdn/workflows/blob/main/.github/workflows/allo-allo.yml
2023-01-03 10:39:03 +01:00
Brian Thomas Smith
f8350be31b Update welcome-bot.yml
Update placeholder with target repo name
2022-12-27 14:44:58 +01:00
Brian Thomas Smith
461f4a4aa1 Add editorconfig and Prettier config 2022-12-22 14:05:46 +01:00
Brian Thomas Smith
fb51e5d0a2 Add shared workflows 2022-12-22 14:03:21 +01:00
rebloor
4e83c4d4b6 Update reference to applications key
Replaced references to applications key with browser_specific_settings
2022-12-16 12:21:45 +13:00