Last active
November 3, 2022 09:22
-
-
Save SophiaH67/18ee9031f8363dbce30c6234525c8d8b to your computer and use it in GitHub Desktop.
My b
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 YouTube Fixer | |
// @namespace http://tampermonkey.net/ | |
// @version 8.8 | |
// @description My balls hurt | |
// @author Marnix | |
// @match https://www.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant GM_addStyle | |
// @downloadURL https://gist.githubusercontent.com/marnixah/18ee9031f8363dbce30c6234525c8d8b/raw/fix-yt.js | |
// @updateURL https://gist.githubusercontent.com/marnixah/18ee9031f8363dbce30c6234525c8d8b/raw/fix-yt.js | |
// ==/UserScript== | |
(async function () { | |
"use strict"; | |
const styleUrl = | |
"https://gist.githubusercontent.com/marnixah/18ee9031f8363dbce30c6234525c8d8b/raw/styles.css"; | |
const styleElement = document.createElement("style"); | |
styleElement.innerHTML = await ( | |
await fetch(`${styleUrl}?cachebust=${Math.random() * 1000000}`) | |
).text(); | |
document.head.appendChild(styleElement); | |
console.log(styleElement); | |
})(); |
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
* { | |
border-radius: 0px !important; | |
} | |
/* Lighting around video */ | |
.cinematics { | |
display: none; | |
} | |
/* Shorts & Trending remover */ | |
ytd-rich-section-renderer { | |
display: none !important; | |
} | |
/* Anti Clickbait */ | |
#video-title:first-letter, | |
yt-formatted-string.ytd-watch-metadata:first-letter { | |
text-transform: uppercase; | |
} | |
#video-title, | |
yt-formatted-string.ytd-watch-metadata { | |
text-transform: lowercase; | |
} | |
/* Override variables for doki theme */ | |
html { | |
/* My settings */ | |
--main: #211b2c; | |
--main-dark: #16121e; | |
--accent: #dd2a62; | |
--accent-alternate: #8e7480; | |
/* YouTube's mess */ | |
--yt-spec-badge-chip-background: rgba(0, 0, 0, 0.1); | |
--yt-spec-base-background: var(--main) !important; | |
--yt-spec-brand-background-primary: var(--main) !important; | |
--ytd-searchbox-background: var(--main) !important; | |
----yt-spec-brand-background-solid: var(--main) !important; | |
--yt-spec-raised-background: var(--main) !important; | |
--yt-spec-general-background-a: var(--main-dark) !important; | |
--yt-spec-text-primary: var(--accent) !important; | |
--yt-endpoint-color: var(--accent) !important; | |
--yt-spec-wordmark-text: var(--accent) !important; | |
--ytd-searchbox-legacy-border-color: var(--accent) !important; | |
--ytd-searchbox-legacy-button-border-color: var(--accent) !important; | |
--ytd-searchbox-legacy-border-shadow-color: var(--accent) !important; | |
--yt-spec-brand-icon-active: var(--accent) !important; | |
--yt-spec-call-to-action: var(--accent) !important; | |
--yt-spec-touch-response: var(--accent) !important; | |
--yt-spec-static-brand-red: var(--accent) !important; | |
--yt-spec-icon-active-other: var(--accent-alternate) !important; | |
--yt-spec-icon-inactive: var(--accent-alternate) !important; | |
--yt-spec-brand-icon-inactive: var(--accent-alternate) !important; | |
--ytd-metadata-line-color: var(--accent-alternate) !important; | |
--yt-spec-text-secondary: var(--accent-alternate) !important; | |
--yt-spec-icon-disabled: var(--accent-alternate) !important; | |
} | |
button.ytd-searchbox, | |
yt-chip-cloud-chip-renderer:hover, | |
yt-chip-cloud-chip-renderer.iron-selected, | |
#voice-search-button, | |
a.yt-spec-button-shape-next:hover { | |
color: var(--main) !important; | |
background-color: var(--accent) !important; | |
--yt-spec-text-primary: var(--main) !important; | |
} | |
button.ytd-searchbox:hover, | |
yt-chip-cloud-chip-renderer, | |
#voice-search-button:hover, | |
a.yt-spec-button-shape-next { | |
color: var(--accent) !important; | |
background-color: var(--main) !important; | |
--yt-spec-text-primary: var(--accent) !important; | |
} | |
ytd-rich-grid-renderer.style-scope.ytd-two-column-browse-results-renderer { | |
background-color: var(--main-dark) !important; | |
} | |
.yt-spec-icon-badge-shape { | |
color: var(--accent-alternate) !important; | |
} | |
.ytp-svg-fill, | |
path[fill="#fff"] { | |
fill: var(--accent-alternate) !important; | |
} | |
.ytp-swatch-background-color { | |
background-color: var(--accent) !important; | |
} | |
svg g g path:first-child { | |
fill: var(--accent) !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment