tempermonkey
tampermonkey
マッチの構文
https://sleepygamersmemo.blogspot.com/2018/12/match-patterns.html
外部CSSを読み込ませる
CSSの適用に再読み込みが必要
外部のCSSを編集しても読み込まれない
scrapboxのCSSを読み込ませると同期も取れて良き
https://yuipro.jp/blog/loading-external-javascript-and-css-files-in-tampermonkey
code:.js
// @grant GM_addStyle
// @grant GM_getResourceText
// @resource hoge.css https://scrapbox.io/api/code/untitled/replace/.css
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(GM_getResourceText("hoge.css"));
})();
resourceのURLを置き換えれば汎用可能