為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

revoke permissions of add on

more options

Hi team,

I want to reset/revoke/deny a permission I accidentally gave to an extension.

The extension is: https://addons.mozilla.org/en-US/firefox/addon/auto-reload-tab/

Once installed, on the options page of this extension > other options > reset timer when interacting with page prompts for access "Access your data for all websites". There is no way to reset this permission? Even after removing the extension I can't get the permission dialog to appear (which indicates the extension still has this permission).

Please help

Hi team, I want to reset/revoke/deny a permission I accidentally gave to an extension. The extension is: https://addons.mozilla.org/en-US/firefox/addon/auto-reload-tab/ Once installed, on the options page of this extension > other options > reset timer when interacting with page prompts for access "Access your data for all websites". There is no way to reset this permission? Even after removing the extension I can't get the permission dialog to appear (which indicates the extension still has this permission). Please help

被選擇的解決方法

Wow what a quick response. That fixed my exact problem.

Thanks!

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

You know, unfortunately, I am not aware of an easy way to do this, but I can give you a slightly complicated method. You will be visiting some tools that most users will never discover.

One-Time Setup

In order to be able to open the console to inject commands into an extension, you need to enable add-on debugging. Here's how:

(1) Call up the Developer Tools panel, for example, by pressing Ctrl+Shift+i

(2) Click the ••• menu button toward the right side of the tools and then click Settings

(3) Scroll down to the Advanced Settings and check the last two boxes as shown in the first attached screenshot

Using the Browser Toolbox Debugger

(1) Open Firefox's Debugging page by typing or pasting the following internal address into Firefox's address bar and pressing Enter to load it

about:debugging

(2) Firefox should display a page showing all the active extensions. Find Auto Reload and click its Debug button as shown in the second attached screenshot

(3) A blank window will appear, and a small permission dialog. Often the permission dialog is behind the blank window, so you may need to use the Firefox button the Windows Taskbar to locate it and click OK as indicated in the third attached screenshot.

(4) Paste the following script into the command line at the bottom of the Console and press Enter to run it:

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

The fourth screenshot shows what the script should report if it successfully removed the "all_urls" permission.

You can close this window now.

(5) When you go back to the Auto Reload options page, the button to grant permission should be back since the extension detects that it does not have that permission any more.

Success?

This is a bit of a specialized script, and there may be a more general way to revoke "optional" permissions (optional meaning you can grant or decline after installation). I just didn't find one in a quick search.

more options

選擇的解決方法

Wow what a quick response. That fixed my exact problem.

Thanks!