Skip to content

Instantly share code, notes, and snippets.

@TheLouisHong
Last active January 27, 2025 09:28
Show Gist options
  • Save TheLouisHong/635ef36978d6468b5f8724fa7f56c6fb to your computer and use it in GitHub Desktop.
Save TheLouisHong/635ef36978d6468b5f8724fa7f56c6fb to your computer and use it in GitHub Desktop.
YouTube OldSchool RuneScape Theme Stylesheet
// ==UserScript==
// @name OSRS Themed YouTube Stylesheet
// @version 1.0
// @author Dawncore/Louis
// @description Injects RuneScape fonts with size rounding on every webpage
// @match *://*.youtube.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
// 1. Inject the CSS rules
GM_addStyle(`
:root *{
--runescape-orange: #FF981F;
--yt-spec-text-secondary: #CCCCCC;
--yt-spec-text-primary: #FFFFFF;
--yt-spec-text-primary-inverse:#FFFFFF;
--yt-spec-base-background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAA8CAYAAADi8H14AAAAAXNSR0IArs4c6QAABNdJREFUeF7lm8FyFDEMRNl8EnCF4kTB//9PQjlVXrxeSd0taXY2kGNmLEvPbdnyeC8/v31++1T8e7lc7ixcXu7/x3Tz9vrXnde3W9esfhibHb7MfpCt6f/0/bIDHkGMhzOYPcjZ0fq8C/AKd/RzJuDdl3UgI8gh4Egha7CMktBIW8qLADN9emrO+DJseZAZwFfFDwUzzq+q7g7EC0YdVMuvbrhRqrAG5D1FMICPzHUW4Am3w7cM5ChFeJBNwL++f5EWueGsaSi5qEXq7YA77GcARynCAuymEwXw7ugwmnV+OnlU3mUXpWhmMipGM/vCAK5C9JyItmSjTYeCu3zPwj4FMNqOdcDtAruKIwP5dMBon42mYOfOgelLhXxXaFjq6VQDo96Kgjt9ZVIbGpSHAmbhPjtgb4E2Z5NVKj9qBfbSw0cBzICGOTg75aJcFYGdTmd3EFl/0VTPbudCwBVnPcBHwo3K2ApApi1daFSgoi3NI+BWKjcGJPPOCvtGwf8C3DNVbC5yv398lc4i1BEc7zPKrSxsnk9dgmFidn04GvBZcJ9FyZcjA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bPXHlsyMgrPx/AFUQpfaquQxGQAAAABJRU5ErkJggg==");
}
html body h1,
html body h1 *,
html body h2,
html body h2 *,
html body h3,
html body h3 *,
html body h4,
html body h4 *,
html body h5,
html body h5 *,
html body h6,
html body h6 *
{
color: var(--runescape-orange) !important;
text-shadow: 1px 1px 0 #000 !important;
}
html body div,
html body div * {
text-shadow: 1px 1px 0 #000 !important;
}
.ytSearchboxComponentInputBoxDark {
background-color: rgb(55 46 34 / 89%) !important;
}
.ytSearchboxComponentSuggestionsContainer {
background-color: rgb(55 46 34 / 99%) !important;
}
.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
background: url(data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAAAWCAYAAACxOdCYAAAAAXNSR0IArs4c6QAABWpJREFUWEftmV1vW0UQhreKXdvko05oSkOLBEJCQki57z0/m3vuIyEkJAQSLSlNSdzEIW7tiOrZk+cw2awdp+Sqyrmx9/jMzsw7M+/MHt9Ld9etI3Cv3HH3u6//vXUtH/mGez/9egnHKqjfP9v9yGG4Pfd++HEvLQTVLAXU/dOVdDI+zdonZ5O0vrGWptNZOp+dp+l0mtedlU46OhrlZ+K6P+inbreTn0eWq9vtppXOSr5/cjy+suaZzc1hmp3P2t+5p66om/ulDmSxpWbnMrLqrdkR7UZv9ndtNe2snidA5YrA5kyNJW+W/vLXJAvOZudXjO0Peml9fT2d/XOWxuPTVK4bp3sZ1PISbO9vbW2mk5OTNDl7m9bWVtPgk0G7xpkmIE2Aanshx4UswGDX4eFR++iyslFvzQ6TgeB1Ok3CffNZA7DACm4Laiz53w4bB8jEs0kD7sHB320W8BsZi9NkItEr129Gx3mPB8ON/MnvXALl2nvlPlFHTT7ur2x8rqZL3TXZef4YVKpre/vTDOag388B5Ppqq9MGUCq4BCpgCqQRNpOQJCvMQH7n6vd6WVFcj0bHuWwBOxrw+uAwPX78qDWI9cPtrZyFBG7ytsk61u5ncF++fJWfjcEGTGhlONzIssq5701k1VuzQ795xk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rvJdRGyk0tVNZW1K0S+Alo5szODyxYP/3lBdefWnU3wC7N1L6ojI4u/XvqQW1OW3vHsSBK79O+UOpv+PwHvhW2RxoNMFcgAAAABJRU5ErkJggg==) !important;
background-repeat: no-repeat !important;
background-size: 100% auto !important;
image-rendering: pixelated !important;
color: #FFFFFF !important;
}
.yt-spec-button-shape-next--size-m {
border-radius: unset !important;
height: 24px !important;
}
yt-chip-cloud-chip-renderer[chip-style=STYLE_DEFAULT][selected] #chip-container.yt-chip-cloud-chip-renderer, yt-chip-cloud-chip-renderer[chip-style=STYLE_HOME_FILTER][selected] #chip-container.yt-chip-cloud-chip-renderer {
background-color: var(--runescape-orange) !important;
}
#cinematics {
display: none !important;
}
`);
})();
@TheLouisHong
Copy link
Author

TheLouisHong commented Jan 27, 2025

Meant to be used in combination with RuneScape Font Changer For All Website

This stylesheet applies img and color overrides. RuneScape Font Changer For All Website applies the fonts.

The RuneScape fonts from the following repos must be installed.

https://github.com/RuneStar/fonts
image

https://github.com/runelite/runelite/tree/master/runelite-client/src/main/resources/net/runelite/client/ui
image

@TheLouisHong
Copy link
Author

TheLouisHong commented Jan 27, 2025

(Optional) Disable Windows Text Antialiasing

What anti-aliasing would look like

image

explorer_2025-01-26_23-43-30

With no anti-aliasing, the font used must be a multiple of 16

@TheLouisHong
Copy link
Author

Desired Result

image
image
image

@TheLouisHong
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment