Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Revoke mandatory extension permission

  • Keine Antworten
  • 1 hat dieses Problem
  • 8 Aufrufe
more options

Is it possible to revoke 'tabs' permission from an addon that grants it by default?

I modified the script provided here (https://support.mozilla.org/en-US/questions/1257097), I got a successful message but permission is still there.

browser.permissions.getAll().then(resp => {

 if (resp.permissions.length == 0){
   console.log('There are no permissions for this extension');
 } else {
   if (resp.permissions.includes('tabs')){
     console.log('Attempting to remove "tabs" permission --');
     browser.permissions.remove({permissions: ["tabs"]}).then(msg => {
       console.log('Removal successful (' + msg + ')');}).catch(err => {
       console.log('Problem: ' + err)});
   } else {
     console.log('Did not find the "tabs" permission, but found these: [' + resp.permissions.join(',') + ']');
   }
 }

});

thanks

Is it possible to revoke 'tabs' permission from an addon that grants it by default? I modified the script provided here (https://support.mozilla.org/en-US/questions/1257097), I got a successful message but permission is still there. browser.permissions.getAll().then(resp => { if (resp.permissions.length == 0){ console.log('There are no permissions for this extension'); } else { if (resp.permissions.includes('tabs')){ console.log('Attempting to remove "tabs" permission --'); browser.permissions.remove({permissions: ["tabs"]}).then(msg => { console.log('Removal successful (' + msg + ')');}).catch(err => { console.log('Problem: ' + err)}); } else { console.log('Did not find the "tabs" permission, but found these: [' + resp.permissions.join(',') + ']'); } } }); thanks