Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5995427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:57:30+00:00 2026-05-22T23:57:30+00:00

Today, while opening Google Chrome, I realized that there is no easy way to

  • 0

Today, while opening Google Chrome, I realized that there is no easy way to enable or disable an extension without going to one of the following locations:

  1. chrome://extensions
  2. clicking on Tools>Extensions>Enable/Disable

The reason why this is so important, is because of the resources it takes up.

For example: I will be starting up my computer, and I immediately want to open Google Chrome quickly. Let’s say, for instance, that I am running 100 processes before I open Chrome. However, once I open Chrome, that number jumps to 160 because of all the extensions that load when it starts.

Here is what I am looking to achieve and the current limitations:

Desired Outcome:
Easily enable/disable/uninstall an extension using the console

Limitations:
There is no way to group many extensions, so that they can easily be enabled/disabled

Please let me know if this portion of the question is not allowed/off topic

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:57:30+00:00Added an answer on May 22, 2026 at 11:57 pm

    Chrome stores extension settings in a JSON file named Preferences in your profile directory (here it is ~/.config/google-chrome/Default/Preferences). The enabled/disabled flag is the “state” key for each extension, with 1 for enabled and 0 for disabled. You could write a script that modified this file before you start Chrome. You could set this script to run on log-in, and even to launch Chrome at the end, if you wanted to auto-start Chrome. Store a list of extensions you want to explicitly disable pre-launch to select only some of them.

    I would make certain you don’t update Preferences while Chrome is running.

    This works for me, and is likely to work on any *nix-like system. Porting to Windows should be fairly straight-forward: chrome_dir and the check for whether Chrome is running or not may be the only changes required.

    #!/usr/bin/env python2.6
    
    import datetime
    import json
    import os
    import sys
    from os import path
    
    chrome_dir = path.expanduser("~/.config/google-chrome")
    if path.lexists(chrome_dir + "/SingletonLock"):
      # there may be a better and portable way to determine if chrome is running
      sys.exit("chrome already running")
    
    prefs_file = chrome_dir + "/Default/Preferences"
    now = datetime.datetime.now()
    prefs_backup_file = prefs_file + now.strftime("-%Y%m%d-%H%M%S")
    
    enable_keys = [
      # list hash keys, you can find from URL given on chrome://extensions
      "aeoigbhkilbllfomkmmilbfochhlgdmh",
      ]
    disable_keys = [
      "hash-like key here",
      ]
    
    default_state = 0
    # 1 to enable, 0 to disable, None to leave alone
    
    with open(prefs_file) as f:
      prefs = json.load(f)
    os.rename(prefs_file, prefs_backup_file)
    
    for key, ext in prefs["extensions"]["settings"].iteritems():
      if not ext.has_key("state"):
        # may be blacklisted
        continue
    
      if key in enable_keys:
        ext["state"] = 1
      elif key in disable_keys:
        ext["state"] = 0
      elif default_state is not None:
        ext["state"] = default_state
    
    with open(prefs_file, "w") as f:
      json.dump(prefs, f)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today while inside a client's production system, I found a SQL Server query that
I got an error today while trying to do some formatting to existing code.
Today I discovered that my fresh installation of Apache HTTP Server is able to
While searching a bug in my code today I found a strange thing. When
I have a php script that comes down to the following: while ($arr =
Today while programming, I suddenly started to get a JVM Error 104 and the
Got this error today while trying to build a project with checkstyle. This works
I've experienced something today while I'm building my app. I've declared a protocol in
I found this today while looking at a library for an API . def
I noticed an unusual issue today while throwing together a quick under construction type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.