Skip to content

Instantly share code, notes, and snippets.

@NZDev0
Last active January 2, 2023 01:08
Show Gist options
  • Save NZDev0/00555bda2dca3ce00413edd4155b56d4 to your computer and use it in GitHub Desktop.
Save NZDev0/00555bda2dca3ce00413edd4155b56d4 to your computer and use it in GitHub Desktop.
Adds dark mode on game pages for GoG.com
// ==UserScript==
// @name GoG game page dark mode
// @namespace https://gist.github.com/NZDev0/
// @author Dev0 NZ
// @description Adds dark mode on game pages
// @updateURL https://gist.github.com/NZDev0/00555bda2dca3ce00413edd4155b56d4/raw/
// @downloadURL https://gist.github.com/NZDev0/00555bda2dca3ce00413edd4155b56d4/raw/
// @match https://www.gog.com/*/game/*
// @match https://www.gog.com/game/*
// @run-at document-end
// @version 1.0.8
// ==/UserScript==
(function() {
var styleSheetContent = `
body {
background: #d9d9d9;
background-color: #222;
color: #fff;
font-family: Lato GOG,Lato GOG Latin,sans-serif;
font-size: 100%;
font-weight: 400;
line-height: 1;
letter-spacing: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.productcard-basics__title {
color: #fff;
}
.system-requirements__minimum-header {
color: #fff;
}
.table__row-label {
color: #B8B8B8;
}
.review__item {
box-sizing: border-box;
margin: 0;
margin-bottom: 0px;
border: 0;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: 0px;
padding: 0;
background-color: hsla(0,0%,100%,.2);
color: inherit;
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
line-height: inherit;
}
.review__extra {
box-sizing: border-box;
margin: 0;
border: 0;
padding: 0;
background-color: transparent;
color: black;
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
line-height: inherit;
}
.product-actions__coming-soon{
color: #3F3F3F;
}
.wishlist-button__state-default{
color: #3F3F3F;
}
.wishlist-button__state-on-wishlist{
color: #3F3F3F;
}
.productcard-os-support{
color: #B8B8B8;
}
.productcard-basics__languages{
color: #B8B8B8;
}
.productcard-rating__score{
color: #B8B8B8;
}
.productcard-rating__votes{
color: #B8B8B8;
}
.review-new__add-button{
color: #B8B8B8;
}
.average-item__textline{
color: #B8B8B8;
}
.reviews__info{
color: #B8B8B8;
}
.edition-picker__label{
color: #3F3F3F;
}
.edition-picker-list__edition-name{
color: #3F3F3F;
}
.edition-picker-list__includes{
color: #3F3F3F;
}
.edition-picker-list__price{
color: #3F3F3F;
}
.go-to-library-button__wrapper{
color:black;
}
.product-tile--list:not(:hover) .product-tile__title{
color:whitesmoke;
}
.product-tile--list:not(:hover) .product-tile__price-discounted{
color:whitesmoke;
}
.details__feature-icon{
background-color:darkgrey;
left: -12px;
}
.details__languages-icon {
background-color:darkgrey;
}
.details__languages-row--unavailable {
opacity: 0.5;
}
.enhanced-gog-container{
color:#3F3F3F
}`;
var head = document.head;
var style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(styleSheetContent));
head.appendChild(style);
if(document.querySelector(".module")){
document.querySelector(".module").style.backgroundColor = "transparent";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment