Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
🎉 Google Doodle Blocker!
Browse files Browse the repository at this point in the history
  • Loading branch information
rzmk committed Nov 21, 2022
0 parents commit e369e7e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Mueez Khan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Google Doodle Blocker

A simple Google Chrome extension that blocks the Google Doodle when you load [https://google.com](https://google.com) on a Google Chrome browser. For removing doodles from opening a new tab, I suggest using a Chrome Extension that changes the new tab page.

## How to Use

1. Using a Google Chrome browser, go to [chrome://extensions](chrome://extensions).
2. Click on "**Load unpacked**" button.
3. Browse to and select the folder with the `manifest.json` and `removal_script.js` files.

You're done! Refresh the page on Google for changes to take effect.

## Notes

This is for experimental purposes.
12 changes: 12 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Google Doodle Blocker",
"description": "Block the doodle!",
"version": "1.0",
"manifest_version": 3,
"content_scripts": [
{
"matches": ["https://www.google.com/"],
"js": ["/removal_script.js"]
}
]
}
5 changes: 5 additions & 0 deletions removal_script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// After the entire page renders, remove the element with id "hplogo"
window.onload = function () {
var element = document.getElementById("hplogo");
element.parentNode.removeChild(element);
};

0 comments on commit e369e7e

Please sign in to comment.