Commit Graph

472 Commits

Author SHA1 Message Date
Rob Wu
1c0a24b2a6 Merge pull request #494 from interysy/master
Changed to runtime for beastify extension when getting content url
2022-06-13 02:51:21 +02:00
Michal Wozniak
a4936f5215 Undone whitespace 2022-06-13 00:04:50 +01:00
Michal Wozniak
8c98d1a05b Changed to runtime for beastify extension when getting content url 2022-06-11 23:14:27 +01:00
Rob Wu
6452f29990 Merge pull request #493 from sayanarijit/patch-1
Minor fix in commands extension
2022-05-22 14:51:18 +02:00
Arijit Basu
dfa9e51383 Minor fix in commands extension 2022-05-22 18:10:32 +05:30
Rob Wu
69ae7494bb Merge pull request #483 from aduntong/master
Update examples.json
2022-03-08 13:00:08 +01:00
Adun Tong
73c304df5a Update examples.json
Fix typo
2022-03-08 18:06:58 +08:00
Ruth John
a545cdcd69 Fixing space
Means https://github.com/mdn/content/pull/8644 can be merged
2021-10-11 16:28:46 +01:00
Caitlin Neiman
da3202c242 Merge pull request #466 from cleentfaar/patch-1
Fixed missing closing tag
2021-09-07 11:41:23 -07:00
Caitlin Neiman
847671c721 Merge pull request #477 from mdn/update-contact-info
Update CONTRIBUTING and README docs
2021-09-07 11:40:45 -07:00
caitmuenster
ac5bae7440 Update CONTRIBUTING and README docs 2021-09-07 11:38:57 -07:00
Caitlin Neiman
2adebcc0e5 Merge pull request #476 from mdn/coc-update
Updates Code of Conduct
2021-09-07 11:27:17 -07:00
caitmuenster
744a5040c0 Updates Code of Conduct. 2021-09-07 11:26:00 -07:00
Anil Seervi
753b6fc6d0 Update maximun zoomFactor for tabs (#472) 2021-09-01 04:05:04 +12:00
Rob Wu
0d0ae41da1 Merge pull request #471 from siimpragi/patch-1
Fix typo
2021-07-24 01:41:29 +02:00
Siim Pragi
2733b3ed16 Fix typo 2021-07-24 01:53:09 +03:00
Rob Wu
f765750678 Merge pull request #469 from cwaldren/cwaldren-update-native-messaging
Update documentation of native-messaging example
2021-05-26 11:24:46 +02:00
Casey Waldren
ac32b7c5fd Update documentation of native-messaging example
Instructs user to view console output via "Inspect" button on extensions page, since there was no output using the previous instructions.

Additionally, updates expected output.
2021-05-25 20:11:38 -07:00
Rob Wu
1e984e6f21 Merge pull request #463 from madnificent/feature/use-url-interface-in-apply-css-example
Use URL interface in apply-css example
2021-02-06 17:57:14 +01:00
Cas
c34c015212 Fixed missing closing tag 2021-01-25 17:01:04 +01:00
Aad Versteden
b1b896627a Add doc that received url parameter must be a valid URL
The `new URL(url)` statement will throw an error if the supplied
string is not a valid URL.  Adding a note to the function to clarify
that as requested by @Rob--W.
2020-12-31 13:31:56 +01:00
Aad Versteden
4cddd8497c Use URL interface in apply-css example
By using the URL interface, the user is ascertained that the piece of
code does not manipulate the DOM.  Keeping them in the right mental
context for the example.

The apply-css example uses the protocol of the URL of the tab to
determine if a pageAction should be shown.  Any page that is hosted
over http or https will receive the page action.

The former implementation creates an anchor tag, assigns the URL to
that, and fetches the protocol from there.  This PR alters that to
using the URL interface.  This makes it clear to the user that we're
staying in JavaScript land and will not start manipulating the visible
DOM.  I would argue this is cleaner all together, but I'm very open to
learning about a different opinion.

The URL interface is more broadly supported than the
pageAction.setIcon which this example is also dependent on, so this
change should not change compatibility of this Browser Extension.
2020-12-31 10:36:57 +01:00
Caitlin Neiman
2184fee75a Merge pull request #425 from nchevobbe/devtools-inspector-toolbar
Adds an example for devtools inspector sidebar
2020-11-12 10:01:11 -08:00
Trishul
60ce50b10e adding example of protocol_handlers (#451)
Thanks @tsl143  all looking good.
2020-05-28 14:35:14 +12:00
rebloor
0d46482e7d Remove retired theme aliases (#430)
* Remove required theme aliases

Replaced uses of headerURL, accentcolor, and textcolor with theme_frame, frame, and tab_background_text. Tested and confirmed all extensions working as expected.

* Fixed another reference to headerURL

Co-authored-by: Richard Bloor <rbloor@atlassian.com>
2020-03-23 17:00:00 -07:00
rebloor
177f603557 New user script example (#438)
* New user script example

This PR is the content from [PR 426](https://github.com/mdn/webextensions-examples/pull/426), originally submitted by Irene, addressing the feedback on the readme content.

* Including the following changes:
* renaming the content script example and updating the readme file to reference the user script example
* renaming the user script example and versioning as v1
* addressing feedback on the user script example: limiting input to hosts and script, addressing code and HTML/CSS comments

I haven't changed the "eating" script example, I feel it is useful to have similar demonstrations in the content and user script examples to make it easier for developers to compare and contrast.

* Various changes for feedback

* Added a user script ID that is stored in the registered script's metadata and then used in the API script to key the data stored in local storage

* Update to emphasize scoping of local storage using an ID provided in the user script metadata

Co-authored-by: Richard Bloor <rbloor@atlassian.com>
2020-03-19 08:43:36 -07:00
rebloor
b89c53a229 Merge pull request #449 from ManishAradwad/issue#448
Updated content.js to use runtime.getURL
2020-03-12 20:20:22 +13:00
Manish
7efba048ba Updated content.js to use runtime.getURL 2020-03-11 18:02:49 +05:30
rebloor
4a54f93ec9 README type of fix (#444)
Removed unnecessary parenthesis
2020-03-03 09:38:15 -08:00
rebloor
03c65dcb79 Merge pull request #442 from caitmuenster/patch-1
Looks good to me, thanks @caitmuenster
2020-02-29 06:42:39 +13:00
Caitlin Neiman
a9fbd77a34 Updated IRC link to Matrix 2020-02-28 09:30:00 -08:00
rebloor
5381ec452f read-me-updates (#441)
* read-me-updates

In addition to some general improvements to the text, this change focuses on adding notes about:
* checking the readme file for any limitations on domains or pages the extension works in
* the fact that no extension runs in a private window by default, with a link to related help article
* contacting the discourse forum as a first point of call for issues

* Minor changes from readthrough
2020-02-24 20:04:13 -08:00
rebloor
c86653aeb4 Replace cat GIF source (#440)
chilloutandwatchsomecatgifs.com now appears to serve ads. Replaced the link open on activating the page action with https://giphy.com/explore/cat. Also made some minor improvements to the readme file.
2020-02-11 17:04:04 -08:00
rebloor
2f20eedad2 Merge pull request #416 from e2e8/master
Update manifest key applications to browser_specific_settings
2020-02-02 15:24:02 +13:00
Nicolas Chevobbe
8eebc583f8 Adds an example for devtools inspector sidebar 2019-09-21 00:06:42 +02:00
rebloor
72dfcf1bad proxy-blocker updates (#422)
* proxy-blocker updates

These changes replace the use of the deprecated `proxy.register` (PAC file) with `proxy.onRequest` to handle the proxying of requests.

* Changes as per feedback

* Fixed typo

* Addressed feedback relating to issue with variable initialization after enable/disable

* Typo fix

* The changes as suggested by @wbamberg
2019-09-04 11:28:46 -07:00
Irene Smith
12f59209c9 Merge pull request #413 from dtvn/patch-1
Update manifest.json
2019-08-28 09:15:22 -04:00
Irene Smith
bbacbd0c40 Merge pull request #420 from rebloor/further_example_json_catchup
Additional documentation of the use of tabs.tab in various examples
2019-08-08 11:22:31 -04:00
Richard Bloor
7fb7b73a28 Additional documentation of the use of tabs.tab in various examples 2019-07-22 05:19:46 +12:00
Irene Smith
88b645e3ec Merge pull request #408 from rebloor/examples_json_catch_up
Additions to the list of examples
2019-06-24 06:07:17 -04:00
e2e8
dad69e2366 Update manifest key applications to browser_specific_settings 2019-06-12 01:05:37 -04:00
Đăng Tú
1d415e731f Update manifest.json
Use wildcard for web_accessible_resources to make it more flexible.
2019-05-31 19:55:59 +07:00
Irene Smith
4e6af304b9 Merge pull request #412 from rebloor/theme-update
Theme manifest key updates
2019-05-22 07:54:24 -04:00
Richard Bloor
5ff8febb9f Theme manifest key updates
Changes to account for the fact that "headerURL":, "accentcolor":, and "textcolor": have been replaced by "theme_frame": , "frame":, and "tab_text": respectively.  In addition, removed the empty.png image files, as these are no longer needed. Also added an example of use of theme_inactive to weta_tiled.
2019-05-22 06:50:37 +12:00
Richard Bloor
66b7122ae9 Additional information about the use of properties and types in examples 2019-04-19 05:44:37 +12:00
Richard Bloor
eb6e5a2e23 Details of the latest additions to the list of examples and adding missing example descriptions. 2019-03-25 20:26:17 +13:00
Irene Smith
e1dcb308f2 Merge pull request #407 from rebloor/remove_embedded_web_extension_examples
Remove embedded web extension examples -- LGTM
2019-03-21 09:15:02 -04:00
Richard Bloor
b0e8ec6993 This change is to remove the 3 embedded web extension examples. The technology to support these examples was removed from Firefox in November 2017, with the release of Firefox 57. 2019-03-21 12:22:23 +13:00
Irene Smith
be2dfc686e Merge pull request #400 from mdn/remove-react-example
Remove react example
2019-02-01 08:57:12 -05:00
Will Bamberg
7754b33c14 Remove react example 2019-01-07 13:59:48 -08:00