Commit Graph

538 Commits

Author SHA1 Message Date
Claas Augner 226a3b4764 ci(workflows): disable actions/checkout credential persistance (#599) 2025-10-13 13:42:56 +02:00
Claas Augner 4f437218d9 ci(workflows): disable actions/checkout credential persistance (#596) 2025-10-13 09:57:47 +02:00
Claas Augner 4045ef571e ci(workflows): remove welcome-bot (#595) 2025-10-08 14:27:29 +02:00
zayKenyon 440454aa47 typo: Native Messaging Docs (#593)
Removes a secondary use of 'the'.
2025-08-11 13:26:12 +12:00
steven-gardiner c684711f6b Add an item to group the active tab in a new group. (#592)
* Add an item to group the active tab in a new group.

* Text update

---------

Co-authored-by: rebloor <git@sherpa.co.nz>
2025-08-06 19:53:42 +12:00
erosman 386f262076 Increase minimum version to 136.0 (#584)
Increase the minimum version to match the official [userScripts](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts#browser_compatibility) release.
2025-05-13 16:21:44 +12:00
erosman 7e52f30052 Prevent chrome API access (#583)
`chrome.runtime.connect` & `chrome.runtime.sendMessage` are still accessible to userscripts.
2025-05-09 19:26:50 +02:00
Jan Klass 6977b6b240 Drop dead video link (load temp addon) (#582)
The video is short, old, macOS-only, and has been unpublicized from YouTube.

The Internet Archive has it [archived in 2021](http://web.archive.org/web/20210221034604/https://www.youtube.com/watch?v=cer9EUKegG4).

Given that opening the archived site is not a very user friendly way or guidance (slow, confusion regarding missing content, YouTube reference, etc), and the intentional removal done by publishers, it seems more appropriate to drop the link.

Resolves #574
2025-05-05 14:09:35 +12:00
Joshua Chen ce292cbd30 Replace Markdown formatting with HTML (#580) 2025-04-05 01:19:36 +02:00
Rob Wu 8f42801287 Correct userScripts / userScripts_legacy index (#579)
The MV2-specific userScripts example is currently associated with the
"userScripts.register" API. While this is the correct API name, the
MDN documentation is actually at `userScripts_legacy/register`.

To make sure that the example is rendered in the right location,
change "userScripts" to "userScripts_legacy".

... and for completeness also add `runtime.onMessage` to the MV3
example, since that example uses this API.
2025-03-09 20:05:51 +01:00
Rob Wu d1116e32e9 Add example using MV3 userScripts API (#576) 2025-02-24 12:13:40 +13:00
Simeon Vincent 2ecc2198b3 Merge pull request #573 from dotproto/lint-dir
Allow contributors to lint individual examples
2024-11-26 08:00:18 -08:00
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 https://github.com/mdn/webextensions-examples/commit/ae1c2176ea0d7df04778ee2d46503223ca436289

* 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