Skip to content

Commit

Permalink
📦 NEW: Jio-Saavn
Browse files Browse the repository at this point in the history
  • Loading branch information
ortoniKC committed Oct 25, 2020
1 parent 47abc73 commit 77dcfee
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 2 deletions.
Binary file added Jio music.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# Jio-Saavn---Dark-theme
A tiny project to convert JioSaavn UI into a dark theme using Chrome Extension.
# Jio Saavn - Dark Theme

A tiny project to convert JioSaavn UI into a dark theme using Chrome Extension.

## Tutorial - click to watch

[![Jio-Saavn](https://raw.githubusercontent.com/ortoniKC/Jio-Saavn-Dark-Theme/main/dark.png)](https://youtu.be/IATY7GHPS0g)

## API Reference

- https://developer.chrome.com/extensions/tabs

## Support

While learning it is very common to have doubts, to enhnance your learning I am ready to support you as much as I can do.

1. Join our Gitter channel
[Gitter](https://gitter.im/letcode-selenium/)
2. Join our Facebook group
[Facebook](https://www.facebook.com/groups/letcode)
11 changes: 11 additions & 0 deletions bg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo.status === "loading") {
if (tab.url === "https://www.jiosaavn.com/") {
chrome.tabs.insertCSS(tabId, {
file: "dark.css"
}, () => {
console.log("Inserted");
})
}
}
})
82 changes: 82 additions & 0 deletions dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
:root {
--bg: #2a2d36!important;
--text: #e9e9e9!important;
}
body{
background: var(--bg)
}
.u-color-js-gray{
color: white!important;
}
div.o-block__body h4 a{
color: white!important;

}
a.u-color-js-gray:hover{

color: white!important;
}
header.c-header{
background: var(--bg)
}
h2.u-h4{
color: var(--text)
}
a.u-ellipsis{
color: var(--text)

}
a.c-nav__link{
color: var(--text)
}
#root > div.home > div.u-4\/5-min-vh{
background: var(--bg);
}
aside.c-aside.c-aside--fixed{
background: var(--bg);
}
aside.c-aside.c-aside--flyout{
background: var(--bg);
color: var(--text);
}
ol[data-rbd-droppable-id=sidebar-queue] li{
background: var(--bg);
color: var(--text);
}
aside.c-aside.c-aside--fixed > nav > ul >li span.u-color-js-gray{
color: var(--text);
}
span.o-list-block__item.u-color-js-gray{
color: var(--text)!important;
}
#root > div.home.banner > aside.c-player > div.c-player__panel > figure > figcaption > h4 > a {
color: var(--text);
}
span.c-nav__link{
color: var(--text)
}
div.c-dropdown__header{
color: var(--text)

}
a.c-logo>svg{
fill: var(--text)
}
span.c-dropdown__type{
color: var(--text)
}
aside.c-player{
background: var(--bg);
color: var(--text);
}
div.c-player__panel{
background: var(--bg);
color: var(--text);
}
div.c-player__panel ul{
background: var(--bg);
color: var(--text);
}
figure.c-player__current figcaption h4 a.u-color-js-gray{
color: white!important;
}
19 changes: 19 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Jio Music Dark",
"description": "Convert the Jio music to dark theme",
"version": "1.0",
"manifest_version": 2,
"icons": {
"128": "Jio music.png"
},
"background": {
"scripts": [
"bg.js"
],
"persistent": false
},
"permissions": [
"https://www.jiosaavn.com/",
"tabs"
]
}

0 comments on commit 77dcfee

Please sign in to comment.