Last active
August 24, 2023 23:37
-
-
Save mattkrins/d06c7504bf92efe933b50dc3b9308573 to your computer and use it in GitHub Desktop.
Soranews24 Dark
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
// ==UserScript== | |
// @name Kuronews24 | |
// @description Dark theme for SoraNews24 | |
// @version 1.9 | |
// @author Matt Krins | |
// @namespace https://gist.github.com/mattkrins | |
// @icon https://user-images.githubusercontent.com/2367602/78975577-e4aeca00-7b03-11ea-8b33-e860d636b9ad.png | |
// @homepageURL https://gist.github.com/mattkrins/d06c7504bf92efe933b50dc3b9308573 | |
// @match *://soranews24.com/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// @copyright 2018, mattkrins (https://gist.github.com/mattkrins/) | |
// @license MIT | |
// ==/UserScript== | |
GM_addStyle("body { background: #181818; color: #fff; }"); | |
GM_addStyle("a { color: #fff; }"); | |
GM_addStyle("#container { background-image: url(https://user-images.githubusercontent.com/2367602/78979797-1b88de00-7b0c-11ea-8a58-e98a1607e621.png); }"); | |
GM_addStyle("#content { background: #202020; }"); | |
GM_addStyle("#main-page-nav li a { color: #aaaaaa; }"); | |
GM_addStyle("#main-page-nav li a:hover { color: #fff; background: none; }"); | |
GM_addStyle("#main-content .wp-paginate li span.current { background-color: #aaaaaa; }"); | |
GM_addStyle("#main-content .post-header h2 a { color: #fff; }"); | |
GM_addStyle("#footer { background-image: none; }"); | |
GM_addStyle("#main-content .post-footer .post-meta .sprite { background: none; }"); | |
GM_addStyle("#main-content .post-content .more-link { background: none; }"); | |
GM_addStyle("#main-content .post-content .more-link::after { content: '\\21E2'; }"); | |
GM_addStyle("#sub-content #widget_rankings .ranking ol { background: none; }"); | |
GM_addStyle("#sub-content .widget_socio_ranking ol li::before { background: #aaaaaa; }"); | |
// Comments | |
GM_addStyle("#responses #comments fb\:comments, #responses #trackbacks ol { background: #000; }"); | |
GM_addStyle(".post-misc .ranking { background: none; }"); | |
// Trackbacks Fix | |
(function() { 'use strict'; | |
if (document.querySelector("#trackbacks ol")){ document.querySelector("#trackbacks ol").style.background = "none"; } | |
// Remove sharing buttons | |
document.querySelector(".share-btns").remove(); | |
// Remove header | |
document.querySelector("#header .description").remove(); | |
document.querySelector("#header .misc").remove(); | |
})(); | |
// Remove sharing buttons | |
GM_addStyle(".share-btns { display: none; }"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment