您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Perform base processing
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/532854/1595984/hinatazaka46-process.js
// ==UserScript== // @name hinatazaka46-process // @namespace https://greasyfork.org/ja/users/1328592-naoqv // @description Perform base processing // @description:ja 基底処理を実行 // @version 0.14 // @icon https://cdn.hinatazaka46.com/files/14/hinata/img/favicons/favicon-32x32.png // @grant none // @license MIT // ==/UserScript== const pageTypeMatch = (x = location.href) => (x).match(/(news|media|detail|search|formation|diary\/member\/list|diary\/member|diary\/detail|artist\/00|artist|greeting|biography|video|contents|discography|aimashou|event|about_fanclub)/); const getPageType = (x = location.href) => (x).match(/contents_list/) ? "contents" : pageTypeMatch(x) ? pageTypeMatch(x)[0] : "other"; let id; let count = 0; const replaceLang = () => { const langSelect = document.getElementById('wovn-translate-widget'); if (count >= 10) { clearInterval(id); } if (langSelect) { langSelect.style.top = "5px"; document.querySelector('.wovn-lang-selector').style.height = "25px"; document.querySelector('.wovn-lang-selector-links').style.paddingTop = "5px"; clearInterval(id); } count++; }; const doProcess = (proc, scriptName) => { handleException(proc, scriptName); handleException(() => { const colorMode = getColorMode(); initializeColorToggle(colorMode); analyzeDefaultColor(); setColor(getPageType(), colorMode); }, "HinatazakaBaseProcessor"); id = setInterval(replaceLang, 200); };