Created
September 30, 2022 12:56
-
-
Save Marco3jp/321f00383cf4e41220ec8f7dddfe9d24 to your computer and use it in GitHub Desktop.
nico-thum-cleaner
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 nico-thum-cleaner | |
// @description remove muted thumbnails in search page | |
// @namespace https://marco.plus | |
// @version 1.0 | |
// @author Marco | |
// @homepage https://marco.plus | |
// @website https://twitter.com/Marco_utau | |
// @match https://www.nicovideo.jp/search/* | |
// @match https://www.nicovideo.jp/tag/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=nicovideo.jp | |
// @grant none | |
// ==/UserScript== | |
// TODO: 最後の行が満たない場合にきれいではないので左から詰めるようにしたさ | |
(function() { | |
'use strict'; | |
const style = ` | |
.video .list { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: space-between; | |
} | |
.video .list:before, .video .list:after{ | |
content: unset; | |
} | |
.video .list .item { | |
margin-right: unset; | |
} | |
.video .list .item[data-video-item-muted] { | |
display: none; | |
} | |
` | |
const elm = document.createElement("style"); | |
elm.textContent = style; | |
document.body.appendChild(elm) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment