Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

add Custom line

Post Reply
pushca
Posts: 37
Joined: Sat Dec 04, 2021 5:09 pm

add Custom line

Post by pushca »

Hi!
How could I use this for this browser?
--disable-webgl
--disable-web-security
--disable-remote-fonts
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: add Custom line

Post by salvadordf »

Hi,

Set GlobalWebView2Loader.DisableWebSecurity to True to add the --disable-web-security switch automatically.

To add the rest of the switches you will have to set GlobalWebView2Loader.AdditionalBrowserArguments like this :

Code: Select all

GlobalWebView2Loader.AdditionalBrowserArguments := '--disable-webgl --disable-remote-fonts';
If you can't find a switch in uWVLoader.pas then you can add it to the GlobalWebView2Loader.AdditionalBrowserArguments property.

All these properties must be set before the GlobalWebView2Loader.StartWebView2 call.
pushca
Posts: 37
Joined: Sat Dec 04, 2021 5:09 pm

Re: add Custom line

Post by pushca »

salvadordf wrote: Sun Mar 20, 2022 7:48 pm Hi,

Set GlobalWebView2Loader.DisableWebSecurity to True to add the --disable-web-security switch automatically.

To add the rest of the switches you will have to set GlobalWebView2Loader.AdditionalBrowserArguments like this :

Code: Select all

GlobalWebView2Loader.AdditionalBrowserArguments := '--disable-webgl --disable-remote-fonts';
If you can't find a switch in uWVLoader.pas then you can add it to the GlobalWebView2Loader.AdditionalBrowserArguments property.

All these properties must be set before the GlobalWebView2Loader.StartWebView2 call.
This is amazing! You are a wizard!
Post Reply