Skip to content

Commit

Permalink
Remove languages call with bad escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
SphinxKnight authored and sashasushko committed Oct 28, 2022
1 parent 672e2fd commit 4462ab1
Show file tree
Hide file tree
Showing 18 changed files with 139 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ gettingAll.then(logCookies);

{{WebExtExamples}}

> **Примечание:** **Примечание**Это API основано на API Chromium [`chrome.cookies`](https://developer.chrome.com/extensions/cookies#type-Cookie). Эта документация основана на [`cookies.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/cookies.json) из кода Chromium.Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.cookies`](https://developer.chrome.com/extensions/cookies#type-Cookie). Эта документация основана на [`cookies.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/cookies.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -95,4 +98,4 @@ gettingAll.then(logCookies);
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
9 changes: 6 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/cookies/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ Promises are not supported in Edge. Use callbacks instead.

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.cookies`](https://developer.chrome.com/extensions/cookies) API. This documentation is derived from [`cookies.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/cookies.json) in the Chromium code.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.cookies`](https://developer.chrome.com/extensions/cookies). Эта документация основана на [`cookies.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/cookies.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -121,4 +124,4 @@ Promises are not supported in Edge. Use callbacks instead.
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
9 changes: 6 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/downloads

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.downloads`](https://developer.chrome.com/extensions/downloads) API.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.downloads`](https://developer.chrome.com/extensions/downloads).
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -107,4 +110,4 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/downloads
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ console.log(manifest.name);

{{WebExtExamples}}

> **Примечание:** **Справка**Этот API основан на API Chromium [`chrome.runtime`](https://developer.chrome.com/extensions/runtime#method-getManifest). Настоящая документация унаследована от [`runtime.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/runtime.json) в коде Chromium.Данные о совместимости Microsoft Edge предоставлены Корпорацией Microsoft и включены сюда под лицензией Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.runtime`](https://developer.chrome.com/extensions/runtime). Эта документация основана на [`runtime.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/runtime.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -75,4 +78,4 @@ console.log(manifest.name);
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
9 changes: 6 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/runtime/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ It also provides messaging APIs enabling you to:

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.runtime`](https://developer.chrome.com/extensions/runtime) API. This documentation is derived from [`runtime.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/runtime.json) in the Chromium code.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.runtime`](https://developer.chrome.com/extensions/runtime). Эта документация основана на [`runtime.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/runtime.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -140,4 +143,4 @@ It also provides messaging APIs enabling you to:
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
7 changes: 4 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/tabs/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ browser.tabs.get(

{{WebExtExamples}}

> **Примечание:** **Благодарность**Этот API основан на Chromium [`chrome.tabs`](https://developer.chrome.com/extensions/tabs#method-get) API. Это документация получена из [`tabs.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/tabs.json) в коде Chromium.
> **Примечание:** Этот API основан на Chromium [`chrome.tabs`](https://developer.chrome.com/extensions/tabs#method-get) API. Это документация получена из [`tabs.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/tabs.json) в коде Chromium.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -64,4 +65,4 @@ browser.tabs.get(
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
7 changes: 4 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/tabs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ You can use most of this API without any special permission. However, to access

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.tabs`](https://developer.chrome.com/extensions/tabs) API. This documentation is derived from [`tabs.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/tabs.json) in the Chromium code.
> **Примечание:** Это API основано на API Chromium [`chrome.tabs`](https://developer.chrome.com/extensions/tabs). Это документация получена из [`tabs.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/tabs.json) в коде Chromium.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -157,4 +158,4 @@ You can use most of this API without any special permission. However, to access
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,12 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/webRequest

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.webRequest`](https://developer.chrome.com/extensions/webRequest) API. This documentation is derived from [`web_request.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/web_request.json) in the Chromium code.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.webRequest`](https://developer.chrome.com/extensions/webRequest). Эта документация основана на [`web_request.json`](https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/web_request.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -155,4 +158,4 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/webRequest
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/windows/CreateType

{{WebExtExamples}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.windows`](https://developer.chrome.com/extensions/windows#type-CreateType) API. This documentation is derived from [`windows.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/windows.json) in the Chromium code.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.windows`](https://developer.chrome.com/extensions/windows#type-CreateType). Эта документация основана на [`windows.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/windows.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -51,4 +54,4 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/windows/CreateType
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
9 changes: 6 additions & 3 deletions files/ru/mozilla/add-ons/webextensions/api/windows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/windows

{{WebExtExamples("h2")}}

> **Примечание:** **Acknowledgements**This API is based on Chromium's [`chrome.windows`](https://developer.chrome.com/extensions/windows) API. This documentation is derived from [`windows.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/windows.json) in the Chromium code.Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
> **Примечание:** Это API основано на API Chromium [`chrome.windows`](https://developer.chrome.com/extensions/windows). Эта документация основана на [`windows.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/windows.json) из кода Chromium.
>
> Информация о совместимости Microsoft Edge предоставлена корпорацией Microsoft и включена здесь под лицензией Creative Commons Attribution 3.0 United States License.
<pre class="hidden">// Copyright 2015 The Chromium Authors. All rights reserved.
<!--
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand All @@ -86,4 +89,4 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/windows
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
-->
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ browser.webRequest.onBeforeRequest.addListener(

Также обратите внимание, что мы передаём опцию `"blocking"`: нам нужно передать это, когда мы хотим изменить запрос. Это заставляет функцию обработчика блокировать сетевой запрос, поэтому браузер ждёт, пока обработчик вернётся, прежде чем продолжить. Дополнительную информацию о `"blocking"` смотрите в документации {{WebExtAPIRef ("webRequest.onBeforeRequest")}}.

Чтобы проверить это, откройте страницу в MDN, которая содержит много изображений (например, https\://developer.mozilla.org/en-US/docs/Tools/Network_Monitor), перезагрузите WebExtension и перезагрузите страницу MDN :
Чтобы проверить это, откройте страницу в MDN, которая содержит много изображений (например, https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor), перезагрузите WebExtension и перезагрузите страницу MDN :

{{EmbedYouTube("ix5RrXGr0wA")}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/content_security_pol

### Работающие примеры

Разрешает загрузку скриптов из "https\://example.com": (_смотрите примечание_ [1](#exampleNote_1))
Разрешает загрузку скриптов из "https://example.com": (_смотрите примечание_ [1](#exampleNote_1))

```json
"content_security_policy": "script-src 'self' https://example.com; object-src 'self'"
Expand Down Expand Up @@ -128,7 +128,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/content_security_pol
"content_security_policy": "script-src 'self' 'unsafe-inline'; object-src 'self'"
```

1\. _Примечание: Работающие примеры демонстрируют правильное написание политики защиты содержимого. Тем не менее, расширения с политикой, включающей ключевые словами 'unsafe-eval', 'unsafe-inline', разрешающей загрузку удалённых скриптов и ресурсов, а так же blob файлов не будут допущены к распространению на addons.mozilla.org из-за значительных проблем с безопасностью._
_Примечание: Работающие примеры демонстрируют правильное написание политики защиты содержимого. Тем не менее, расширения с политикой, включающей ключевые словами 'unsafe-eval', 'unsafe-inline', разрешающей загрузку удалённых скриптов и ресурсов, а так же blob файлов не будут допущены к распространению на addons.mozilla.org из-за значительных проблем с безопасностью._

## Browser compatibility

Expand Down
Loading

0 comments on commit 4462ab1

Please sign in to comment.