From 34d315396ca29d7ef51ecc27eeeeeb275e9b0ba9 Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Mon, 15 Nov 2021 19:39:07 +0100 Subject: Prepare Mozilla section for Markdown conversion (#2980) * Remove summary * Remove hidden except for copyright notice * Remove spans * Remove font * Remove notranslate * Remove extra id, deleting an untranslated page doing so * Fix links, absolute links, rm internal, titles * Remove external classes * fix headings with name attr * fix some styles and classes * remove useless class reference-values * rm styles in links * Fix code blocks in pre * Remove ltr classes * remove fullwidth-table * Fix various conversion errors and some one offs * Remove nested code/pre/code * Fix notes * Fix warnings * fix dls * fix nested issues in dls * fix images --- .../api/browsingdata/remove/index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'files/fr/mozilla/add-ons/webextensions/api/browsingdata/remove/index.html') diff --git a/files/fr/mozilla/add-ons/webextensions/api/browsingdata/remove/index.html b/files/fr/mozilla/add-ons/webextensions/api/browsingdata/remove/index.html index 54273fd8b1..304ad17451 100644 --- a/files/fr/mozilla/add-ons/webextensions/api/browsingdata/remove/index.html +++ b/files/fr/mozilla/add-ons/webextensions/api/browsingdata/remove/index.html @@ -25,7 +25,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/browsingData/remove

Syntaxe

-
var removing = browser.browsingData.remove(
+
var removing = browser.browsingData.remove(
   removalOptions,            // RemovalOptions object
   dataTypes                  // DataTypeSet object
 )
@@ -74,21 +74,21 @@ then(onRemoved, onError);
 
 

Supprimer tout l'historique de téléchargement et de navigation :

-
function onRemoved() {
-  console.log("removed");
-}
+
function onRemoved() {
+  console.log("removed");
+}
 
-function onError(error) {
-  console.error(error);
-}
+function onError(error) {
+  console.error(error);
+}
 
-browser.browsingData.remove({},
-  {downloads: true, history: true}).
-then(onRemoved, onError);
+browser.browsingData.remove({}, + {downloads: true, history: true}). +then(onRemoved, onError);

{{WebExtExamples}}

-
Remerciements : +

Note :

Cette API est basée sur l'API Chromium chrome.browsingData.

-- cgit v1.2.3-54-g00ecf