Created
February 11, 2023 15:39
-
-
Save Marco3jp/76ae6bfa604cef32587701560844c309 to your computer and use it in GitHub Desktop.
Custom style template
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 Custom style template | |
// @description template for adding custom style | |
// @version 0.1 | |
// @author Marco | |
// @homepage https://marco.plus | |
// @namespace https://marco.plus | |
// @website https://twitter.com/Marco_utau | |
// @match https://example.com | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=example.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const style = ` | |
/* write css */ | |
` | |
const styleElement = document.createElement("style"); | |
styleElement.textContent = style; | |
document.body.appendChild(styleElement); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment