How to determine incognito mode from content_scripts extension?

  • 0
    Is it possible to determine the fact of using incognito mode from the content script of your extension?
    JavaScript Scarlet Boyd, Oct 24, 2019

  • 1 Answers
  • 0
    From the content script read the BOOL property: chrome.extension.inIncognitoContext < / b>.

    It's clear if the user allows the extension to work in such tabs.

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!