HinatazakaStyleSetting

日向坂46サイト向けスタイル設定

Ovu skriptu ne treba izravno instalirati. To je biblioteka za druge skripte koje se uključuju u meta direktivu // @require https://update.greasyfork.org/scripts/510022/1453515/HinatazakaStyleSetting.js

// ==UserScript==
// @name        HinatazakaStyleSetting
// @name:ja     日向坂サイト向けスタイル設定
// @namespace   naoqv.hinatazaka
// @description	日向坂46サイト向けスタイル設定
// @version     1.5
// @match       https://www.hinatazaka46.com/s/official/news/*
// @match       https://www.hinatazaka46.com/s/official/media/*
// @icon        https://cdn.hinatazaka46.com/files/14/hinata/img/favicons/favicon-32x32.png
// @compatible  chrome
// @compatible  firefox
// @grant       none
// @license     MIT
// ==/UserScript==

const menuBarSetting = () => {
  const styleElem = document.createElement("style");
  styleElem.setAttribute("rel", "stylesheet");
  const styleText = `.l-header {
    height: 60px;
  }
  .p-header-wrap.is-fixed .p-header {
    height: 30px;
  }
  .c-header__logo {
    top: 0;
  }`;
  styleElem.textContent = styleText;
  document.head.appendChild(styleElem);
};

const DEFAULT_CL = "#eeeeee";
const DEFAULT_BG_CL = "#202040";
const MENU_BG_CL ="#404070";
const DFAULT_BG_CL = "#202050";
const LIST_BG_BG_CL = "#202030";

const darkMode = () => {
  const styleElem = document.createElement("style");
  styleElem.setAttribute("rel", "stylesheet");
  const styleText = `.pages, .module-modal.js-member-filter .mordal-box {
    background-color: ${DEFAULT_BG_CL};        
  }
  .l-header, .p-header-wrap, .p-header-wrap.is-fixed {
    background-color: ${MENU_BG_CL};
  }`;
  styleElem.textContent = styleText;
  document.head.appendChild(styleElem);
};