Created
February 20, 2023 03:05
-
-
Save donal56/dc0da51a51ed70d1d530bc9b812414e3 to your computer and use it in GitHub Desktop.
Display hearth buttons more clearly on https://otakumode.com
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 Custom Tokyo Otaku Mode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Display hearth buttons more clearly | |
// @author Doni | |
// @match https://otakumode.com/* | |
// @icon https://d1u8dm08vp3e0x.cloudfront.net/images/common/apple-touch-icon.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
registerCss("emojiEnlarger", ` | |
.p-product-detail__add-to-wishlist.added .p-product-detail__action-icon:before, | |
.p-product-list__add-to-wishlist.added [class^=icon-]:before { | |
color: red !important; | |
} | |
`); | |
function registerCss(id, rules) { | |
if(!id) return; | |
let style = document.getElementById(id); | |
if(!style) { | |
style = document.createElement('style'); | |
style.id = id; | |
} | |
style.type = 'text/css'; | |
style.innerHTML = rules; | |
document.getElementsByTagName('head')[0].appendChild(style); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment