すぐに使えなくなりそう。
- // ==UserScript==
- // @name NiconicoCommonCSS
- // @version 1
- // @match http://*.nicovideo.jp/*
- // @match https://*.nicovideo.jp/*
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- //large: 1238px
- (()=>{
- function main(){
- let csse = document.createElement("style");
- document.head.appendChild(csse);
- csse.sheet.insertRule(`
- .common-header-1ivnjlh{
- display: none;
- }
- `);
- }
- if(document.head){
- main();
- }else{
- new MutationObserver((mu, obs)=>{
- for(let mr of mu){
- for(let n of mr.addedNodes){
- if(n.tagName == "HEAD"){
- obs.disconnect();
- main();
- }
- }
- }
- }).observe(document, {childList: true, subtree: true});
- }
- })();