Skip to content

Commit

Permalink
chore: update social URLs (#37121)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Dec 9, 2024
1 parent 7baa0a6 commit 934dace
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion files/en-us/mdn/community/communication_channels/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Check out the MDN-specific [discussion guidelines](/en-US/docs/MDN/Community/Dis

## Social media

You can follow MDN Web Docs on [Mastodon](https://mozilla.social/@mdn) and [X](https://x.com/MozDevNet).
You can follow MDN Web Docs on [Mastodon](https://mastodon.social/@mdn) and [X](https://x.com/MozDevNet).
Feel free to tag us in your posts if you want to share something with us or say hello, although we can't guarantee that we can respond to everything.

## Forums
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ browser.tabs.onUpdated.addListener(handleUpdated);

### Filtering examples

Log changes only to tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mozilla.social/@mdn`:
Log changes only to tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mastodon.social/@mdn`:

```js
const pattern1 = "https://developer.mozilla.org/*";
const pattern2 = "https://mozilla.social/@mdn";
const pattern2 = "https://mastodon.social/@mdn";

const filter = {
urls: [pattern1, pattern2],
Expand Down Expand Up @@ -176,11 +176,11 @@ function handleUpdated(tabId, changeInfo, tabInfo) {
browser.tabs.onUpdated.addListener(handleUpdated, filter);
```

Combine both the previous filters, log only when the `pinned` property of tabs changes for tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mozilla.social/@mdn`:
Combine both the previous filters, log only when the `pinned` property of tabs changes for tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mastodon.social/@mdn`:

```js
const pattern1 = "https://developer.mozilla.org/*";
const pattern2 = "https://mozilla.social/@mdn";
const pattern2 = "https://mastodon.social/@mdn";

const filter = {
urls: [pattern1, pattern2],
Expand All @@ -196,11 +196,11 @@ function handleUpdated(tabId, changeInfo, tabInfo) {
browser.tabs.onUpdated.addListener(handleUpdated, filter);
```

Log changes only when the `pinned` property of tabs changes for tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mozilla.social/@mdn` where the tab was part of the current browser window when the update event fired:
Log changes only when the `pinned` property of tabs changes for tabs whose `url` property is [matched](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) by `https://developer.mozilla.org/*` or `https://mastodon.social/@mdn` where the tab was part of the current browser window when the update event fired:

```js
const pattern1 = "https://developer.mozilla.org/*";
const pattern2 = "https://mozilla.social/@mdn";
const pattern2 = "https://mastodon.social/@mdn";

const filter = {
urls: [pattern1, pattern2],
Expand Down

0 comments on commit 934dace

Please sign in to comment.