C# and Edge browser extensions

Vadim K 21 Reputation points
2024-02-14T14:36:17.4566667+00:00

Using C#, is it possible to check if Edge browser extension is disabled and if so, to enable it with c# code?

Microsoft Edge | Microsoft Edge development
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2024-02-16T10:10:36.3466667+00:00

    Hi @Vadim K,

    You can find some information of extensions in the Preferences file under your profile folder (you can check it at edge://version).

    Once you find it, you can search for the information according to extension ID (to get the ID, turn on Developer mode at edge://extensions). There may be multiple search results, but after one of these results, you can find an attribute called "state". A value of 1 means enabled while 0 means disabled.

    You can only go this far to learn about the information of extensions.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Cloudoire Academy 23,595 Reputation points Volunteer Moderator
    2024-02-14T16:39:09.0533333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    May this article helps you:

    https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-options

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **


  2. Olaf Helper 47,586 Reputation points
    2024-02-14T19:32:51.59+00:00

    If Edge browser extension are disabled, your Edge browser extension won't start and so it can't check anything.


  3. Vadim K 21 Reputation points
    2024-02-15T16:19:05.4366667+00:00

    I would even say that, where is the place where the edge stores information about whether extension is enabled or disabled?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.