Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub URL redirects due to repo name change such as 'mozilla' to 'mdn' (part 7) #14976

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/games/introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can truly think of the Web as a better target platform for your game. As we
<td><strong>Language</strong></td>
<td>
<a href="/en-US/docs/Web/JavaScript">JavaScript</a> (or C/C++ using
<a href="https://github.com/kripken/emscripten/wiki">Emscripten</a> to
<a href="https://github.com/emscripten-core/emscripten/wiki">Emscripten</a> to
compile to JavaScript)
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tags:
<td><strong>Language</strong></td>
<td>
<a href="/en-US/docs/Web/JavaScript">JavaScript</a> (or C/C++ using
<a href="https://github.com/kripken/emscripten/wiki">Emscripten</a> to
<a href="https://github.com/emscripten-core/emscripten/wiki">Emscripten</a> to
compile to JavaScript)
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/games/tools/asm.js/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ tags:

## What is asm.js, exactly?

It is a very small, strict subset of JavaScript that only allows things like \`while\`, \`if\`, numbers, top-level named functions, and other simple constructs. It does not allow objects, strings, closures, and basically anything that requires heap allocation. Asm.js code resembles C in many ways, but it's still completely valid JavaScript that will run in all current engines. It pushes JS engines to optimize this kind of code, and gives compilers like [Emscripten](https://github.com/kripken/emscripten) a clear definition of what kind of code to generate. We will show what asm.js code looks like and explain how it helps and how you can use it.
It is a very small, strict subset of JavaScript that only allows things like \`while\`, \`if\`, numbers, top-level named functions, and other simple constructs. It does not allow objects, strings, closures, and basically anything that requires heap allocation. Asm.js code resembles C in many ways, but it's still completely valid JavaScript that will run in all current engines. It pushes JS engines to optimize this kind of code, and gives compilers like [Emscripten](https://github.com/emscripten-core/emscripten) a clear definition of what kind of code to generate. We will show what asm.js code looks like and explain how it helps and how you can use it.

This subset of JavaScript is already highly optimized in many JavaScript engines using fancy Just-In-Time (JIT) compiling techniques. However, by defining an explicit standard we can work on optimizing this kind of code even more and getting as much performance as we can out of it. It makes it easier to collaborate across multiple JS engines because it's easy to talk about and benchmark. The idea is that this kind of code **should** run very fast in each engine, and if it doesn't, it's a bug and there's a clear spec that engines should optimize for.

It also makes it easy for people writing compilers that want to generate high-performant code on the web. They can consult the asm.js spec and know that it will run fast if they adhere to asm.js patterns. [Emscripten](https://github.com/kripken/emscripten), a C/C++ to JavaScript compiler, emits asm.js code to make it run with near native performance on several browsers.
It also makes it easy for people writing compilers that want to generate high-performant code on the web. They can consult the asm.js spec and know that it will run fast if they adhere to asm.js patterns. [Emscripten](https://github.com/emscripten-core/emscripten), a C/C++ to JavaScript compiler, emits asm.js code to make it run with near native performance on several browsers.

Additionally, if an engine chooses to specially recognize asm.js code, there even more optimizations that can be made. Firefox is the only browser to do this right now.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/games/tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ On this page you can find links to our game development tools articles, which ev

- [asm.js](/en-US/docs/Games/Tools/asm.js)
- : asm.js is a very limited subset of the JavaScript language, which can be greatly optimized and run in an ahead-of-time (AOT) compiling engine for much faster performance than your typical JavaScript performance. This is, of course, great for games.
- [Emscripten](https://github.com/kripken/emscripten/wiki)
- : An LLVM to JavaScript compiler; with Emscripten, you can compile C++ and other languages that can compile to LLVM bytecode into high-performance JavaScript. This is a great tool for porting applications to the Web! There is a [useful Emscripten tutorial](https://github.com/kripken/emscripten/wiki/Tutorial) available on the wiki. Note that we are [aiming to cover Emscripten in its own section of MDN](/en-US/docs/Emscripten).
- [Emscripten](https://github.com/emscripten-core/emscripten/wiki)
- : An LLVM to JavaScript compiler; with Emscripten, you can compile C++ and other languages that can compile to LLVM bytecode into high-performance JavaScript. This is a great tool for porting applications to the Web! There is a [useful Emscripten tutorial](https://github.com/emscripten-core/emscripten/wiki/Tutorial) available on the wiki. Note that we are [aiming to cover Emscripten in its own section of MDN](/en-US/docs/Emscripten).
- [Gecko profiler](https://addons.mozilla.org/en-us/firefox/addon/gecko-profiler/)
- : The Gecko profiler extension lets you profile your code to help figure out where your performance issues are so that you can make your game run at top speed.
- [Shumway](/en-US/docs/Mozilla/Projects/Shumway)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ self.addEventListener('fetch', e => {
```

And that is it for our service worker.
There is a whole load more you can do with them — for a lot more detail, see the [service worker cookbook](https://github.com/mozilla/serviceworker-cookbook).
There is a whole load more you can do with them — for a lot more detail, see the [service worker cookbook](https://github.com/mdn/serviceworker-cookbook).
Many thanks to Paul Kinlan for his article [Adding a Service Worker and Offline into your Web App](https://developers.google.com/web/fundamentals/codelabs/offline/), which inspired this example.

#### Testing the example offline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ You can also choose a view (template) engine using `--view` and/or a CSS generat

### What view engine should I use?

The _Express Application Generator_ allows you to configure a number of popular view/templating engines, including [EJS](https://www.npmjs.com/package/ejs), [Hbs](https://github.com/donpark/hbs), [Pug](https://pugjs.org/api/getting-started.html) (Jade), [Twig](https://www.npmjs.com/package/twig), and [Vash](https://www.npmjs.com/package/vash), although it chooses Jade by default if you don't specify a view option. Express itself can also support a large number of other templating languages [out of the box](https://github.com/expressjs/express/wiki#template-engines).
The _Express Application Generator_ allows you to configure a number of popular view/templating engines, including [EJS](https://www.npmjs.com/package/ejs), [Hbs](https://github.com/pillarjs/hbs), [Pug](https://pugjs.org/api/getting-started.html) (Jade), [Twig](https://www.npmjs.com/package/twig), and [Vash](https://www.npmjs.com/package/vash), although it chooses Jade by default if you don't specify a view option. Express itself can also support a large number of other templating languages [out of the box](https://github.com/expressjs/express/wiki#template-engines).

> **Note:** If you want to use a template engine that isn't supported by the generator then see [Using template engines with Express](https://expressjs.com/en/guide/using-template-engines.html) (Express docs) and the documentation for your target view engine.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ Sauce Labs has a [restful API](https://wiki.saucelabs.com/display/DOCS/The+Sauce

It has several clients available to allow you to make calls to the API using your favorite environment, be it PHP, Java, Node.js, etc.

Let's have a brief look at how we'd access the API using Node.js and [node-saucelabs](https://github.com/danjenkins/node-saucelabs).
Let's have a brief look at how we'd access the API using Node.js and [node-saucelabs](https://github.com/saucelabs/node-saucelabs).

1. First, set up a new npm project to test this out, as detailed in [Setting up Node and npm](#setting_up_node_and_npm). Use a different directory name than before, like `sauce-test` for example.
2. Install the Node Sauce Labs wrapper using the following command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ These steps are designed to make sure that the browser you are testing in is as

> **Note:** Another useful lo-fi option, if you have the hardware available, is to test your sites on low-end phones/other devices — as sites get larger and feature more effects, there is a higher chance of the site slowing down, so you need to start giving performance more consideration. Trying to get your functionality working on a low end device will make it more likely that the experience will be good on higher-end devices.

> **Note:** Some server-side development environments provide useful mechanisms for rolling out site changes to only a subset of users, providing a useful mechanism for getting a feature tested by a subset of users without the need for a separate development server. An example is [Django Waffle Flags](https://github.com/jsocol/django-waffle).
> **Note:** Some server-side development environments provide useful mechanisms for rolling out site changes to only a subset of users, providing a useful mechanism for getting a feature tested by a subset of users without the need for a separate development server. An example is [Django Waffle Flags](https://github.com/django-waffle/django-waffle).

## Summary

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/mdn/at_ten/history_of_mdn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ In August 2008, the Mozilla Developer Center switched to [MindTouch DekiWiki](ht
_0:26:08 - 0:31:50_
_0:43:52 - 0:51:35_

[Kuma](https://github.com/mozilla/kuma), forked from [Kitsune](https://github.com/mozilla/kitsune) in early 2011 and launched on August 3, 2012, is a Mozilla-built wiki platform based on Django with its own [KumaScript](/en-US/docs/MDN/Tools/KumaScript) macro system which uses Node.js.
[Kuma](https://github.com/mdn/kuma), forked from [Kitsune](https://github.com/mozilla/kitsune) in early 2011 and launched on August 3, 2012, is a Mozilla-built wiki platform based on Django with its own [KumaScript](/en-US/docs/MDN/Tools/KumaScript) macro system which uses Node.js.

With the code living on GitHub, the community started to contribute to MDN's CMS as well. From now on, hacking on MDN includes both writing documentation and Kuma coding.

Expand Down Expand Up @@ -204,7 +204,7 @@ Many more people have done amazing work on MDN:
- Rob Hudson
- John Whitlock
- ...
And many more [Kuma contributors.](https://github.com/mozilla/kuma/graphs/contributors)
And many more [Kuma contributors.](https://github.com/mdn/kuma/graphs/contributors)

<!---->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,6 @@ When approaching a cross-platform extension development, the differences between

The bulk of your cross-platform work is likely to focus on handling variations among the API features supported by the main browsers. Creating your `manifest.json` files should be relatively straightforward and something you can do manually. You will then need to account for the variations in the processes for submitting to each extension store.

You can use [browser-extension-template](https://github.com/notlmn/browser-extension-template) to quickly set up a working project for building and publishing a browser extension.
You can use [browser-extension-template](https://github.com/fregante/browser-extension-template) to quickly set up a working project for building and publishing a browser extension.

Following the advice in this article, you should be able to create an extension that works well on all of the four main browsers, enabling you to deliver your extension features to more people.
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/78/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ See also [New in Firefox 78: DevTools improvements, new regex engine, and abunda
- [Unicode property escapes](/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes) ({{bug(1361876)}})
- [Named capture groups](/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges) ({{bug(1362154)}})

- Due to a [WebIDL spec change](https://github.com/heycam/webidl/pull/357) in mid-2020, we've [added a `Symbol.toStringTag` property to all DOM prototype objects](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag#tostringtag_available_on_all_dom_prototype_objects) ({{bug(1277799)}}).
- Due to a [WebIDL spec change](https://github.com/whatwg/webidl/pull/357) in mid-2020, we've [added a `Symbol.toStringTag` property to all DOM prototype objects](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag#tostringtag_available_on_all_dom_prototype_objects) ({{bug(1277799)}}).
- The garbage collection of {{jsxref("WeakMap")}} objects has been improved. `WeakMaps` are now marked incrementally ({{bug(1167452)}}).

### APIs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ event on the element `someElement`. For the third parameter, if
`true`; otherwise, we know that we need to pass a Boolean, and we pass
`false` as the value of the `useCapture` parameter.

If you'd prefer, you can use a third-party library like [Modernizr](https://modernizr.com/docs) or [Detect It](https://github.com/rafrex/detect-it) to do this test for you.
If you'd prefer, you can use a third-party library like [Modernizr](https://modernizr.com/docs) or [Detect It](https://github.com/rafgraph/detect-it) to do this test for you.

You can learn more from the article about
[`EventListenerOptions`](https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection)
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/fullscreen_api/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ On the other hand, if you're trying to emulate WebKit's behavior on Gecko, you n

### Notification

When fullscreen mode is successfully engaged, the document which contains the element receives a {{Event("fullscreenchange")}} event. When fullscreen mode is exited, the document again receives a {{Event("fullscreenchange")}} event. Note that the {{Event("fullscreenchange")}} event doesn't provide any information itself as to whether the document is entering or exiting fullscreen mode, but if the document has a non null {{DOMxRef("document.fullscreenElement", "fullscreenElement")}}, you know you're in fullscreen mode.
When fullscreen mode is successfully engaged, the document which contains the element receives a {{Event("fullscreenchange")}} event. When fullscreen mode is exited, the document again receives a {{Event("fullscreenchange")}} event. Note that the {{Event("fullscreenchange")}} event doesn't provide any information itself as to whether the document is entering or exiting fullscreen mode, but if the document has a non null {{DOMxRef("document.fullscreenElement", "fullscreenElement")}}, you know you're in fullscreen mode.

### When a fullscreen request fails

Expand Down Expand Up @@ -124,7 +124,7 @@ If fullscreen mode is already active (`fullscreenElement` is non-`null`), we cal

## Prefixing

For the moment not all browsers are implementing the unprefixed version of the API (for vendor agnostic access to the Fullscreen API you can use [Fscreen](https://github.com/rafrex/fscreen)). Here is the table summarizing the prefixes and name differences between them:
For the moment not all browsers are implementing the unprefixed version of the API (for vendor agnostic access to the Fullscreen API you can use [Fscreen](https://github.com/rafgraph/fscreen)). Here is the table summarizing the prefixes and name differences between them:

<table class="standard-table">
<thead>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fullscreen_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The **Fullscreen API** adds methods to present a specific {{DOMxRef("Element")}}

See the article [Guide to the Fullscreen API](/en-US/docs/Web/API/Fullscreen_API/Guide) for details on how to use the API.

> **Note:** Support for this API varies somewhat across browsers, with many requiring vendor prefixes and/or not implementing the latest specification. See the [Browser compatibility](#browser_compatibility) section below for details on support for this API. You may wish to consider using a library such as [Fscreen](https://github.com/rafrex/fscreen) for vendor agnostic access to the Fullscreen API.
> **Note:** Support for this API varies somewhat across browsers, with many requiring vendor prefixes and/or not implementing the latest specification. See the [Browser compatibility](#browser_compatibility) section below for details on support for this API. You may wish to consider using a library such as [Fscreen](https://github.com/rafgraph/fscreen) for vendor agnostic access to the Fullscreen API.

## Interfaces

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/notification/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ new Notification(title, options);

In our
[`Emogotchi demo`](https://chrisdavidmills.github.io/emogotchi/)
([see source code](https://github.com/mdn/emogotchi)), we run a
([see source code](https://github.com/chrisdavidmills/emogotchi)), we run a
`spawnNotification()` function when we want to trigger a notification. The
function is passed parameters to specify the body, icon, and title we want, and then it
creates the necessary `options` object and triggers the notification by using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ function clearLog(event) {
## See also

- [Pointer Events now in Firefox Nightly](https://hacks.mozilla.org/2015/08/pointer-events-now-in-firefox-nightly/); Mozilla Hacks; by Matt Brubeck and Jason Weathersby; 2015-Aug-04
- [jQuery Pointer Events Polyfill](https://github.com/jquery/PEP)
- [jQuery Pointer Events Polyfill](https://github.com/jquery-archive/PEP)
- [Gestures](https://material.io/design/interaction/gestures.html); Material Design
2 changes: 1 addition & 1 deletion files/en-us/web/api/push_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The following additions to the [Service Worker API](/en-US/docs/Web/API/Service_

## Examples

Mozilla's [ServiceWorker Cookbook](https://github.com/mozilla/serviceworker-cookbook) contains many useful Push examples.
Mozilla's [ServiceWorker Cookbook](https://github.com/mdn/serviceworker-cookbook) contains many useful Push examples.

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/server-sent_events/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To learn how to use server-sent events, see our article [Using server-sent event
- [EventSource polyfill for Node.js](https://github.com/EventSource/eventsource)
- Remy Sharp's [EventSource polyfill](https://github.com/remy/polyfills/blob/master/EventSource.js)
- Yaffle's [EventSource polyfill](https://github.com/Yaffle/EventSource)
- Rick Waldron's [jquery plugin](https://github.com/rwldrn/jquery.eventsource)
- Rick Waldron's [jquery plugin](https://github.com/rwaldron/jquery.eventsource)
- intercooler.js [declarative SSE support](https://intercoolerjs.org/docs.html#sse)

### Related Topics
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/service_worker_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Service workers are also intended to be used for such things as:

In the future, service workers will be able to do a number of other useful things for the web platform that will bring it closer towards native app viability. Interestingly, other specifications can and will start to make use of the service worker context, for example:

- [Background synchronization](https://github.com/slightlyoff/BackgroundSync): Start up a service worker even when no users are at the site, so caches can be updated, etc.
- [Background synchronization](https://github.com/WICG/background-sync): Start up a service worker even when no users are at the site, so caches can be updated, etc.
- [Reacting to push messages](/en-US/docs/Web/API/Push_API): Start up a service worker to send users a message to tell them new content is available.
- Reacting to a particular time & date.
- Entering a geo-fence.
Expand Down Expand Up @@ -131,7 +131,7 @@ In the future, service workers will be able to do a number of other useful thing

## See also

- [ServiceWorker Cookbook](https://github.com/mozilla/serviceworker-cookbook)
- [ServiceWorker Cookbook](https://github.com/mdn/serviceworker-cookbook)
- [Using Service Workers](/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers)
- [Service workers basic code example](https://github.com/mdn/sw-test)
- [Is ServiceWorker ready?](https://jakearchibald.github.io/isserviceworkerready/)
Expand Down
Loading