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

  • SEARCH
  • Home
  • 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 9150067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:33:47+00:00 2026-06-17T11:33:47+00:00

I am creating a simple Chrome extension that blocks the Google logo image on

  • 0

I am creating a simple Chrome extension that blocks the “Google” logo image on the Google homepage using a content script. I followed the directions on the content-script page, but it still does not seem to be working. Can anyone spot what I’m doing wrong?


EDIT: I have tested it with other website like flickr.com and it works perfectly. I’ve also searched through the Google homepage CSS and cannot figure out which CSS rule is overriding my CSS. Any ideas? How can I make a stronger CSS injection so that no other CSS can override mine?


manifest.json:

{
  "manifest_version": 2,
  "name": "Google Logo Blocker",
  "description": "This extension blocks the Google logo image.",
  "version": "1.0",

  "content_scripts": [
   {
     "matches": ["http://www.google.com/"],
     "css": ["blocker.css"]
   }
  ],

  "browser_action": {
    "default_icon": "icon.png"
  }
}

blocker.css:

img {
    display: none !important;
}
  • 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-06-17T11:33:47+00:00Added an answer on June 17, 2026 at 11:33 am

    Your code works for me. You are using straight USA Google, not an international version, right?

    Just in case, change your matches to:

    "matches": ["http://*.google.com/", "https://*.google.com/"],
    

    And target the logo more directly. This will work in most cases:

    #hplogo {
        display: none !important;
    }
    


    For full-on, international Google support, change the content_scripts portion of your manifest to:

    "content_scripts": [ {
        "matches":          ["http://*/*", "https://*/*"],
        "include_globs":    ["http://*.google.*/*", "https://*.google.*/*"],
        "css":              ["blocker.css"]
    } ],
    

    Optionally also using exclude_matches and/or exclude_globs as desired.



    If it still doesn’t work, state the usual:

    1. Exact URL
    2. Chrome version
    3. OS
    4. Other extensions active
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Google Chrome extension that provides import/export functionality and I ran
I'm creating (learning) an extension for Google Chrome. To debug some code, I inserted
I'm creating simple script to convert mp3 files using shell script. I decided to
I'm creating my first chrome extension. My aim is simple, on a certain webpage,
I'm creating my first Chrome extension, a relatively simple one with some ajax calls.
Creating a simple RPG game, first time using XNA. Trying to get my character
I have a very simple script that slides a message down from the top
I'm creating simple image viewer, but I want to make a sorting of pictures
I am creating simple blog web application using play framework and i want to
I recently noticed over the past few weeks that Google Chrome appears to be

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.