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.

Javascript per site

Post Reply
KenS
Posts: 28
Joined: Sat Aug 10, 2024 12:44 am
Location: Australia

Javascript per site

Post by KenS »

Can javascript be switched off on a site by site basis? Looked at documentation but couldn't find anything.

I have seen a few browsers offer it, but it doesn't work.

Ken
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Javascript per site

Post by salvadordf »

Hi,

BriskBard can disable JavaScript in the configuration window. Select the General tab and select "Disabled" in the Javascript option.

CEF4Delphi browsers can also disable JavaScript by setting TChromiumCore.Options.JavaScript to STATE_DISABLED.

WebView4Delphi browsers can disable JavaScript with the TWVBrowserBase.ScriptEnabled property.
KenS
Posts: 28
Joined: Sat Aug 10, 2024 12:44 am
Location: Australia

Re: Javascript per site

Post by KenS »

Is that on a site-by-site basis? As in have JS on for one site but off for others?

If so, then I can't see how to :roll:

Ken
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Javascript per site

Post by salvadordf »

No, sorry. BriskBard only has a global setting to disable JavaScript.

You can disable it whenever you want in your application if you use CEF4Delphi or WebView4Delphi.
Post Reply