Commit Graph

482 Commits

Author SHA1 Message Date
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
Talal
a8c3fcf80d Fix beastify code (#505)
* Fix blank page bug when clicking popup background
2022-12-13 21:00:24 +01:00
Eike Mücksch
6d8f07243a Don't use <div /> as a button (#502)
* Don't use <div /> as a button

Addition to https://github.com/mdn/content/pull/21410

* stick to old styling

* Update beastify/popup/choose_beast.html

Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>

* Update beastify/popup/choose_beast.css

Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>

* fix: check for button type at event listener

* fix: align css selectors to changes

Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
2022-11-24 15:07:49 +13:00
Aram Panasenco
0260139efe Updated webpack to a more recent version due to security vulnerabilities in old version. (#500) 2022-10-13 11:52:47 +13:00
rebloor
82217a05bc Replace var with let in examples (#484)
* Replace var with let in examples

store-collected-images/webextension-plain/deps/uuidv4.js

* Reverted third–party code
2022-08-11 04:27:28 +12:00
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