-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Added functions.js. Fixed styling on some websites. Added 2li…
…b.org to dark mode websites. Functions.js is a central place for storing functions used when converting any website to dark mode. Added dark mode for 2lib.org. Fixed styling for: dw.com, bbc.com, theguardian.com.
- Loading branch information
Showing
7 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
addStyle(` | ||
.jscommentsCommentBox, .dropdown-menu > li > a, .moreBtn > div > span { | ||
color: #000000!important; | ||
} | ||
.dropdown-menu .dropdown-menu-muted { | ||
color: #888!important; | ||
} | ||
#searchModeTabs li.active, #searchModeTabs li.active a, #advSearch, .cBox1 a, button span { | ||
color: #000000!important; | ||
} | ||
.b-search-input .button input, .b-search-input .button button > span, { | ||
color: #000000!important; | ||
} | ||
#searchResultBox { | ||
background: #000000; | ||
color: #ffffff!important; | ||
} | ||
div.resItemFuzzyMatch h3 a:link, div.resItemFuzzyMatch h3 a:visited { | ||
color: #ffffff!important; | ||
} | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
addStyle(` | ||
.article__body-content, .author-unit__container { | ||
background-color: #000000; | ||
} | ||
[class$="MenuListContainer"] { | ||
background-color: #000000!important; | ||
} | ||
.lx-c-sticky { | ||
color: #000000; | ||
} | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
addStyle(` | ||
div#footerSection { | ||
border-left: none; | ||
border-right: none; | ||
border-bottom: none; | ||
} | ||
div.adsContainer { | ||
background-color: transparent; | ||
} | ||
div#navMain ul#navLevel1 li div.flyout ul.sitemap li a { | ||
color: #000000!important; | ||
} | ||
div#navMain ul#navLevel1 li a:hover { | ||
color: #000000!important; | ||
} | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
function addStyle(styleString) { | ||
const style = document.createElement('style'); | ||
style.textContent = styleString; | ||
document.head.append(style); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
addStyle(` | ||
.u-faux-block-link--hover { | ||
background-color: rgba(255,255,255,0.2)!important; | ||
} | ||
.most-viewed-right ~ a { | ||
color: #ffffff!important; | ||
} | ||
body { | ||
color: #ffffff!important; | ||
} | ||
a:-webkit-any-link { | ||
color: #ffffff!important; | ||
} | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters