Jump to content

Recommended Posts

Posted

Is there any way to change chrome settings from Auto-it.  I would like to change back and forth, between "Allow Site to show POP-ups" and "Do not Allow Site to show POP-up"?

Posted

I know that in firefox there's this file prefs.js or whatever it is, that holds preferences such as that one, maybe for chrome there's something similar? Then it's a question of opening the file, read the line, compare to that, and change accordingly. :)

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

Download the Google Chrome Group Policy Templates from here: https://www.chromium.org/administrators/policy-templates

Look in ...\Policy_Templates\Windows\Examples\chrome.reg for settings to control a number of built-in Chrome settings for example:

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]
"DefaultPopupsSetting"=dword:00000001 - Disables all Popups(Requires Chrome restart I believe)
"DefaultPopupsSetting"=dword:00000002 - Enables all Popups (Requires Chrome restart I believe)

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\PopupsAllowedForUrls]
"1"="https://www.example.com"
"2"="[*.]example.edu"

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\PopupsBlockedForUrls]
"1"="https://www.example.com"
"2"="[*.]example.edu"

You can also use per user settings by using HKEY_CURRENT_USER in place of HKEY_LOCAL_MACHINE

As Careca mentioned there is a %LocalAppData\Google\Chrome\UserData\Default\Preferences file that you can modify (its a json file) but I could never get the settings to change while Chrome was open, so used the registry settings.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...