Fanicon Style Mod

Faniconの画面構成を最適化します。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Fanicon Style Mod
// @namespace    https://github.com/AyeBee/FaniconStyleMod
// @version      0.1
// @description  Faniconの画面構成を最適化します。
// @author       ayebee
// @match        https://fanicon.net/web/*
// @match        https://fanicon.net/web/fancommunities/*/live/*
// @icon         https://www.google.com/s2/favicons?domain=fanicon.net
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
    style.id = '__userStyle';
    style.textContent =`
    .main {
        max-width: inherit !important;
    }
    .main-container {
        width: auto !important;
    }
    div.main > div.live-view.main-container > div > div > div > div > div.control-area {
        background: rgba(0,0,0,.5);
        border-radius: 5px;
        padding: 0 !important;
    }
    div.main > div.live-view.main-container > div > div > div > div > div.control-area,
    div.main > div.live-view.main-container > div > div > div > div > div.overlay-area > div.info-area,
    div.main > div.live-view.main-container > div > div > div > div > div.overlay-area > div.input-area {
        opacity: 0;
        transition: all 300ms 0s ease;
    }
    div.main > div.live-view.main-container > div > div > div > div > div.control-area:hover,
    div.main > div.live-view.main-container > div > div > div > div > div.overlay-area > div.info-area:hover,
    div.main > div.live-view.main-container > div > div > div > div > div.overlay-area > div.input-area:hover {
        opacity: 1;
    }
    body > main > .live-view > .wrap {
        min-width: 100%;
        height: 100%;
    }
    ::-webkit-scrollbar {
        width: 10px;
    }
    ::-webkit-scrollbar-track {
        border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,.25);
        border-radius: 10px;
        box-shadow:0 0 0 1px rgba(0,0,0,.3);
    }
    `;
})();