ちなみにinjectしているコードはこんな感じ(www.googl.comの例)
AdGuard有効にしていないと見れないです念のため
https://local.adguard.com/?type=content-script&;dmn=www.google.com&css=1&js=1&gcss=1&rel=1&rji=1
※tsってパラメーターもありましたが削ってます

cosmetic rulesはstyle elementを生成して{display:none!important;}くっつけてDOM挿入
JavaScriptはeval()に渡しておしまい
って感じでしょうか
ExtendedCSSは、、なんか難しいことやってる