How to enable google chrome chrome://flags/ values using javascript?

后端 未结 2 1071
孤城傲影
孤城傲影 2020-12-31 14:43

I want to enable google chrome flags enable using JavaScript.If flags enable then no action require, if disable then make it enable .

2条回答
  •  半阙折子戏
    2020-12-31 15:35

    Changing browser settings and options using Javascript is not possible. This can only be controlled by the user.

    However, Chrome's experimental flags can be accessed using direct links. But note that

    The feature is currently available in Chrome Canary, and maybe also in Chrome Dev. It may take a while before it makes its way to other versions of the browser.

    Once it is available, you can use a link like this in your webpage to make it more convenient for the user to find the right setting:

    Enable WEBRTC
    

提交回复
热议问题