Created
December 22, 2023 22:38
-
-
Save Nielk1/867b25f4a74557354399320448d5b4aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 GOG Piñata Style Shelf | |
// @namespace http://nielk1.com/ | |
// @version 1.0 | |
// @description Apply Piñata style to your account shelf | |
// @author You | |
// @match https://www.gog.com/*/account | |
// @match https://www.gog.com/*/account/movies | |
// @match https://www.gog.com/*/account/wishlist | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var styleSelector = angular.element(angular.element(document.getElementsByClassName('skin-selector')).children()[0]); | |
styleSelector.children().remove(); | |
styleSelector.append('<b class="skin-selector__current">Piñata</b>'); | |
angular.element(document.querySelector('body')).append( | |
'<style type="text/css">'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/afba626cc146a84fc131c211c25f148161c3a2883988a39f25c7021d09de9a4f.jpg);'+ | |
' }'+ | |
' @media (min-width:481px) {'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/29ffbb61d8d0261929de0c115c5c792b8c0fc0bd5dd0ceed79ba38c1626ae4f9.jpg);'+ | |
' }'+ | |
' }'+ | |
' @media (min-width:801px) {'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/1dcd9386a8ac8e3bf2da12113c0defade63fdff9412627c8e1608fddf31f3b63.jpg);'+ | |
' }'+ | |
' }'+ | |
' @media (min-width:1367px) {'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/7c23c0dbac15686765329d981c03d8348f9a5bf5ab06d44f470da22d68479e37.jpg);'+ | |
' }'+ | |
' }'+ | |
' @media (min-width:1681px) {'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/ca48264fc11deb072030444474a7d271004e03243dd2b1a384f1bd9816216345.jpg);'+ | |
' }'+ | |
' }'+ | |
' @media (min-width:1921px) {'+ | |
' .content {'+ | |
' background-image: none, url(//images.gog.com/516c0d8a01f328537abd56fb9f7cb619fc8e2aaabeefc8a1aa6fa6a44606eba0.jpg);'+ | |
' }'+ | |
' }'+ | |
' .content {'+ | |
' background-color: #021321 !important;'+ | |
' background-repeat: no-repeat;'+ | |
' background-position: center top;'+ | |
' overflow: hidden;'+ | |
' }'+ | |
' .header__dropdown,'+ | |
' .module-header,'+ | |
' .module-header__btn.is-active,'+ | |
' .skin-selector__current {'+ | |
' color: #D9D9D9 !important;'+ | |
' }'+ | |
' .header__switch {'+ | |
' color: grey !important;'+ | |
' }'+ | |
' .module-header__btn {'+ | |
' color: grey;'+ | |
' }'+ | |
' .account__filters {'+ | |
' border-radius: 10px;'+ | |
' background: url(//images.gog.com/63af22d472e99fd1515316c94c1cedf589fc1dd08dfbf6661786553331ce6870.png) no-repeat;'+ | |
' background-size: cover;'+ | |
' background-position-x: 100%;'+ | |
' }'+ | |
' .module--filters {'+ | |
' color: #D9D9D9 !important;'+ | |
' }'+ | |
' .module.module--filters.filters {'+ | |
' background: none;'+ | |
' }'+ | |
' .filter.is-contracted:hover {'+ | |
' background: rgba(26,26,26,0.5);'+ | |
' }'+ | |
' .filters__section~.filters__section>.filter {'+ | |
' border-color: #1A1A1A;'+ | |
' }'+ | |
' .filter.filter--search._search .ic.icon-search._search__icon {'+ | |
' color: #808080;'+ | |
' }'+ | |
' .list--grid .product-row-wrapper:after {'+ | |
' background-image: url(//images.gog.com/20c8c72937e3f6d194f21314d6e575582bdfceeee5f592fc974be29491791d81.png) !important;'+ | |
' }'+ | |
' ._cs-right,'+ | |
' ._cs-left {'+ | |
' border-radius:5px;'+ | |
' }'+ | |
'</style>'); | |
})(); | |
// Pinata Shelf | |
//images.gog.com/20c8c72937e3f6d194f21314d6e575582bdfceeee5f592fc974be29491791d81.png | |
// St Patric's Shelf | |
//images-4.gog.com/54bb846421bb7706daeb066a3b6d6106fe3825b76bec0dffd2fe79151bcc7c83.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment