您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
dアニメストアの横スクロールを、Firefoxで使用できるようにします
// ==UserScript== // @name dアニメストアで横スクロール // @namespace https://github.com/chimaha/dAnimeScroll // @match https://animestore.docomo.ne.jp/animestore/tp_pc // @match https://animestore.docomo.ne.jp/animestore/CF/search_index // @match https://animestore.docomo.ne.jp/animestore/CR/* // @match https://animestore.docomo.ne.jp/animestore/ci_pc?workId=* // @grant none // @version 2.1 // @author chimaha // @description dアニメストアの横スクロールを、Firefoxで使用できるようにします // @license MIT license // @icon https://animestore.docomo.ne.jp/favicon.ico // @compatible firefox // @supportURL https://github.com/chimaha/dAnimeScroll/issues // ==/UserScript== /*! dアニメストアで横スクロール | MIT license | https://github.com/chimaha/dAnimeScroll/blob/main/LICENSE */ "use strict"; const observer = new MutationObserver(() => { const sliders = document.querySelectorAll(".p-slider__itemList"); for (const slider of sliders) { if (slider.dataset.addScroll == "true") { continue; } slider.dataset.addScroll = "true"; slider.addEventListener('mousedown', e => { if (e.button == 0) { e.preventDefault(); } else if (e.button == 2) { e.stopPropagation(); } }); } }); const config = { childList: true, subtree: true }; observer.observe(document.body, config);