Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jengajam authored Aug 15, 2023
1 parent d54ae2c commit 1887125
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$( window ).on( "load", function() {
$('[role="navigation"]').find("span:contains('Images')").parent('div.GKS7s').addClass("obvbg-images");
$('[role="navigation"]').find("span:contains('Videos')").parent('div.GKS7s').addClass("obvbg-video");
$('[role="navigation"]').find("span:contains('Maps')").parent('div.GKS7s').addClass("obvbg-maps");
$('[role="navigation"]').find("span:contains('Shopping')").parent('div.GKS7s').addClass("obvbg-shop");
$('[role="navigation"]').find("span:contains('News')").parent('div.GKS7s').addClass("obvbg-news");
});
2 changes: 2 additions & 0 deletions jquery-3.7.0.min.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"manifest_version": 3,

"name": "Obvious Filter Buttons",
"version": "0.1.0",
"description": "Makes the Search Filter Buttons more obvious on Google Search Results",

"content_scripts": [{
"css": ["styles.css"],
"js": ["jquery-3.7.0.min.js", "content.js"],
"matches": ["https://www.google.com/*"]
}]

}
24 changes: 24 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
div.obvbg-images {
background-color: #4286f480;
transition: background-color 0.5s ease;
}

div.obvbg-video {
background-color: #DB443780;
transition: background-color 0.5s ease;
}

div.obvbg-maps {
background-color: #F4B40080;
transition: background-color 0.5s ease;
}

div.obvbg-shop {
background-color: #0F9D5880;
transition: background-color 0.5s ease;
}

div.obvbg-other {
background-color: #a0a0a050;
transition: background-color 0.5s ease;
}

0 comments on commit 1887125

Please sign in to comment.