aboutsummaryrefslogtreecommitdiff
path: root/files/de/mozilla/add-ons/webextensions/api
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-07-15 12:58:54 -0400
committerGitHub <noreply@github.com>2021-07-15 12:58:54 -0400
commit9ace67d06f2369e3c770e3a11e06e1c8cc9f66fd (patch)
tree6fd33b1d14bd8f53a73291e4afa6f9d6400f1964 /files/de/mozilla/add-ons/webextensions/api
parentfe0831846de29cce74db723e625c90b1ef966d9d (diff)
downloadtranslated-content-9ace67d06f2369e3c770e3a11e06e1c8cc9f66fd.tar.gz
translated-content-9ace67d06f2369e3c770e3a11e06e1c8cc9f66fd.tar.bz2
translated-content-9ace67d06f2369e3c770e3a11e06e1c8cc9f66fd.zip
delete pages that were never translated from en-US (de, part 1) (#1548)
Diffstat (limited to 'files/de/mozilla/add-ons/webextensions/api')
-rw-r--r--files/de/mozilla/add-ons/webextensions/api/browseraction/setpopup/index.html134
-rw-r--r--files/de/mozilla/add-ons/webextensions/api/downloads/index.html123
2 files changed, 0 insertions, 257 deletions
diff --git a/files/de/mozilla/add-ons/webextensions/api/browseraction/setpopup/index.html b/files/de/mozilla/add-ons/webextensions/api/browseraction/setpopup/index.html
deleted file mode 100644
index 4bf68ba30f..0000000000
--- a/files/de/mozilla/add-ons/webextensions/api/browseraction/setpopup/index.html
+++ /dev/null
@@ -1,134 +0,0 @@
----
-title: browserAction.setPopup()
-slug: Mozilla/Add-ons/WebExtensions/API/browserAction/setPopup
-translation_of: Mozilla/Add-ons/WebExtensions/API/browserAction/setPopup
----
-<div>{{AddonSidebar()}}</div>
-
-<p>Sets the HTML document that will be opened as a popup when the user clicks on the browser action's icon. Tabs without a specific popup will inherit the global popup, which defaults to the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action"><code>default_popup</code></a> specified in the manifest.</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox brush:js">browser.browserAction.setPopup(
- details // object
-)
-</pre>
-
-<h3 id="Parameters">Parameters</h3>
-
-<dl>
- <dt><code>details</code></dt>
- <dd><code>object</code>.</dd>
- <dd>
- <dl class="reference-values">
- <dt><code>tabId</code>{{optional_inline}}</dt>
- <dd><code>integer</code>. Sets the popup only for a specific tab. The popup is reset when the user navigates this tab to a new page.</dd>
- <dt><code>windowId</code>{{optional_inline}}</dt>
- <dd><code>integer</code>. Sets the popup only for the specified window.</dd>
- </dl>
-
- <dl class="reference-values">
- <dt><code>popup</code></dt>
- <dd>
- <p><code>string</code> or <code>null</code>. The HTML file to show in a popup, specified as a URL.</p>
-
- <p>This can point to a file packaged within the extension (for example, created using {{WebExtAPIRef("extension.getURL")}}), or a remote document (e.g. <code>https://example.org/</code>).</p>
-
- <p>If an empty string (<code>""</code>) is passed here, the popup is disabled, and the extension will receive {{WebExtAPIRef("browserAction.onClicked")}} events.</p>
-
- <p>If <code>popup</code> is <code>null</code>:</p>
-
- <p>If <code>tabId</code> is specified, removes the tab-specific popup so that the tab inherits the global popup.</p>
-
- <p>If <code>windowId</code> is specified, removes the window-specific popup so that the window inherits the global popup.</p>
-
- <p>Otherwise it reverts the global popup to the default value.</p>
- </dd>
- </dl>
- </dd>
-</dl>
-
-<ul>
- <li>If <code>windowId</code> and <code>tabId</code> are both supplied, the function fails and the popup is not set.</li>
- <li>If <code>windowId</code> and <code>tabId</code> are both omitted, the global popup is set.</li>
-</ul>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{Compat("webextensions.api.browserAction.setPopup",2)}}</p>
-
-<h2 id="Examples">Examples</h2>
-
-<p>This code adds a pair of context menu items that you can use to switch between two popups. Note that you'll need the "contextMenus" <a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions">permission</a> set in the extension's manifest to create context menu items.</p>
-
-<pre class="brush: js">function onCreated() {
- if (browser.runtime.lastError) {
- console.log("error creating item:" + browser.runtime.lastError);
- } else {
- console.log("item created successfully");
- }
-}
-
-browser.contextMenus.create({
- id: "popup-1",
- type: "radio",
- title: "Popup 1",
- contexts: ["all"],
- checked: true
-}, onCreated);
-
-browser.contextMenus.create({
- id: "popup-2",
- type: "radio",
- title: "Popup 2",
- contexts: ["all"],
- checked: false
-}, onCreated);
-
-browser.contextMenus.onClicked.addListener(function(info, tab) {
- if (info.menuItemId == "popup-1") {
- browser.browserAction.setPopup({popup: "/popup/popup1.html"})
- } else if (info.menuItemId == "popup-2") {
- browser.browserAction.setPopup({popup: "/popup/popup2.html"})
- }
-});</pre>
-
-<p>{{WebExtExamples}}</p>
-
-<div class="note"><strong>Acknowledgements</strong>
-
-<p>This API is based on Chromium's <a href="https://developer.chrome.com/extensions/browserAction#method-setPopup"><code>chrome.browserAction</code></a> API. This documentation is derived from <a href="https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/browser_action.json"><code>browser_action.json</code></a> in the Chromium code.</p>
-
-<p>Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.</p>
-</div>
-
-<div class="hidden">
-<pre>// 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
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// 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>
-</div>
diff --git a/files/de/mozilla/add-ons/webextensions/api/downloads/index.html b/files/de/mozilla/add-ons/webextensions/api/downloads/index.html
deleted file mode 100644
index 7363cde811..0000000000
--- a/files/de/mozilla/add-ons/webextensions/api/downloads/index.html
+++ /dev/null
@@ -1,123 +0,0 @@
----
-title: downloads
-slug: Mozilla/Add-ons/WebExtensions/API/downloads
-translation_of: Mozilla/Add-ons/WebExtensions/API/downloads
----
-<div>0ü</div>
-
-<p>Enables extensions to interact with the browser's download manager. You can use this API module to download files, cancel, pause, resume downloads, and show downloaded files in the file manager.</p>
-
-<p>To use this API you need to have the "downloads" <a href="/en-US/Add-ons/WebExtensions/manifest.json/permissions#API_permissions">API permission</a> specified in your <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json">manifest.json</a> file.</p>
-
-<h2 id="Types">Types</h2>
-
-<dl>
- <dt>{{WebExtAPIRef("downloads.FilenameConflictAction")}}</dt>
- <dd>Defines options for what to do if the name of a downloaded file conflicts with an existing file.</dd>
- <dt>{{WebExtAPIRef("downloads.InterruptReason")}}</dt>
- <dd>Defines a set of possible reasons why a download was interrupted.</dd>
- <dt>{{WebExtAPIRef("downloads.DangerType")}}</dt>
- <dd>Defines a set of common warnings of possible dangers associated with downloadable files.</dd>
- <dt>{{WebExtAPIRef("downloads.State")}}</dt>
- <dd>Defines different states that a current download can be in.</dd>
- <dt>{{WebExtAPIRef("downloads.DownloadItem")}}</dt>
- <dd>Represents a downloaded file.</dd>
- <dt>{{WebExtAPIRef("downloads.StringDelta")}}</dt>
- <dd>Represents the difference between two strings.</dd>
- <dt>{{WebExtAPIRef("downloads.DoubleDelta")}}</dt>
- <dd>Represents the difference between two doubles.</dd>
- <dt>{{WebExtAPIRef("downloads.BooleanDelta")}}</dt>
- <dd>Represents the difference between two booleans.</dd>
- <dt>{{WebExtAPIRef("downloads.DownloadTime")}}</dt>
- <dd>Represents the time a download took to complete.</dd>
- <dt>{{WebExtAPIRef("downloads.DownloadQuery")}}</dt>
- <dd>Defines a set of parameters that can be used to search the downloads manager for a specific set of downloads.</dd>
-</dl>
-
-<h2 id="Functions">Functions</h2>
-
-<dl>
- <dt>{{WebExtAPIRef("downloads.download()")}}</dt>
- <dd>Downloads a file, given its URL and other optional preferences.</dd>
- <dt>{{WebExtAPIRef("downloads.search()")}}</dt>
- <dd>Queries the {{WebExtAPIRef("downloads.DownloadItem", "DownloadItems")}} available in the browser's downloads manager, and returns those that match the specified search criteria.</dd>
- <dt>{{WebExtAPIRef("downloads.pause()")}}</dt>
- <dd>Pauses a download.</dd>
- <dt>{{WebExtAPIRef("downloads.resume()")}}</dt>
- <dd>Resumes a paused download.</dd>
- <dt>{{WebExtAPIRef("downloads.cancel()")}}</dt>
- <dd>Cancels a download.</dd>
- <dt>{{WebExtAPIRef("downloads.getFileIcon()")}}</dt>
- <dd>Retrieves an icon for the specified download.</dd>
- <dt>{{WebExtAPIRef("downloads.open()")}}</dt>
- <dd>Opens the downloaded file with its associated application.</dd>
- <dt>{{WebExtAPIRef("downloads.show()")}}</dt>
- <dd>Opens the platform's file manager application to show the downloaded file in its containing folder.</dd>
- <dt>{{WebExtAPIRef("downloads.showDefaultFolder()")}}</dt>
- <dd>Opens the platform's file manager application to show the default downloads folder.</dd>
- <dt>{{WebExtAPIRef("downloads.erase()")}}</dt>
- <dd>Erases matching {{WebExtAPIRef("downloads.DownloadItem", "DownloadItems")}} from the browser's download history, without deleting the downloaded files from disk.</dd>
- <dt>{{WebExtAPIRef("downloads.removeFile()")}}</dt>
- <dd>Removes a downloaded file from disk, but not from the browser's download history.</dd>
- <dt>{{WebExtAPIRef("downloads.acceptDanger()")}}</dt>
- <dd>Prompts the user to accept or cancel a dangerous download.</dd>
- <dt>{{WebExtAPIRef("downloads.drag()")}}</dt>
- <dd>Initiates dragging the downloaded file to another application.</dd>
- <dt>{{WebExtAPIRef("downloads.setShelfEnabled()")}}</dt>
- <dd>Enables or disables the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it.</dd>
-</dl>
-
-<h2 id="Events">Events</h2>
-
-<dl>
- <dt>{{WebExtAPIRef("downloads.onCreated")}}</dt>
- <dd>Fires with the {{WebExtAPIRef("downloads.DownloadItem", "DownloadItem")}} object when a download begins.</dd>
- <dt>{{WebExtAPIRef("downloads.onErased")}}</dt>
- <dd>Fires with the <code>downloadId</code> when a download is erased from history.</dd>
- <dt>{{WebExtAPIRef("downloads.onChanged")}}</dt>
- <dd>When any of a {{WebExtAPIRef("downloads.DownloadItem", "DownloadItem")}}'s properties except <code>bytesReceived</code> changes, this event fires with the <code>downloadId</code> and an object containing the properties that changed.</dd>
-</dl>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{Compat("webextensions.api.downloads")}}</p>
-
-<p>{{WebExtExamples("h2")}}</p>
-
-<div class="note"><strong>Acknowledgements</strong>
-
-<p>This API is based on Chromium's <a href="https://developer.chrome.com/extensions/downloads"><code>chrome.downloads</code></a> API.</p>
-
-<p>Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.</p>
-</div>
-
-<div class="hidden">
-<pre>// 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
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// 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>
-</div>