Skip to content

Instantly share code, notes, and snippets.

@Marco3jp
Created February 11, 2023 15:39
Show Gist options
  • Save Marco3jp/76ae6bfa604cef32587701560844c309 to your computer and use it in GitHub Desktop.
Save Marco3jp/76ae6bfa604cef32587701560844c309 to your computer and use it in GitHub Desktop.
Custom style template
// ==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