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 Sep 1, 2024
1 parent 2f4ab8c commit 904c0cc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
10 changes: 5 additions & 5 deletions content.js
Original file line number Diff line number Diff line change
@@ -1,7 +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");
$('[role="listitem"]').find("div:contains('Images')").addClass("obvbg-images");
$('[role="listitem"]').find("div:contains('Videos')").addClass("obvbg-video");
$('[role="listitem"]').find("div:contains('Maps')").addClass("obvbg-maps");
$('[role="listitem"]').find("div:contains('Shopping')").addClass("obvbg-shop");
$('[role="listitem"]').find("div:contains('News')").addClass("obvbg-news");
});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,

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

"content_scripts": [{
Expand Down
20 changes: 15 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
div.obvbg-images {
background-color: #4286f480;
border-bottom: 3px solid #4286f480;
transition: background-color 0.5s ease;
padding-top: 2px;
padding-bottom: 8px;
}

div.obvbg-video {
background-color: #DB443780;
border-bottom: 3px solid #DB443780;
transition: background-color 0.5s ease;
padding-top: 2px;
padding-bottom: 8px;
}

div.obvbg-maps {
background-color: #F4B40080;
border-bottom: 3px solid #F4B40080;
transition: background-color 0.5s ease;
padding-top: 2px;
padding-bottom: 8px;
}

div.obvbg-shop {
background-color: #0F9D5880;
border-bottom: 3px solid #0F9D5880;
transition: background-color 0.5s ease;
padding-top: 2px;
padding-bottom: 8px;
}

div.obvbg-news {
background-color: #a0a0a050;
border-bottom: 3px solid #a0a0a050;
transition: background-color 0.5s ease;
padding-top: 2px;
padding-bottom: 8px;
}

0 comments on commit 904c0cc

Please sign in to comment.