您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
hayabusaの方
// ==UserScript== // @name Open2chの返信音を変える // @namespace http://tampermonkey.net/ // @version 1.4 // @description hayabusaの方 // @author icchi // @match https://hayabusa.open2ch.net/* // @grant none // ==/UserScript== (function() { 'use strict'; const targetURLs = { 'https://image.open2ch.net/lib/sound/sound.mp3': 'https://raw.githubusercontent.com/Bongocat27/onj-sound-rawlink/main/%E3%83%9A%E3%82%BF%E3%83%83.mp3', 'https://image.open2ch.net/lib/sound/drum-japanese2.mp3': 'https://raw.githubusercontent.com/Bongocat27/onj-sound-rawlink/main/%E3%83%8B%E3%83%A5%E3%833.mp3' }; const originalAudio = window.Audio; window.Audio = function(src) { for (const [target, custom] of Object.entries(targetURLs)) { if (src && src.includes(target)) { console.log(`[Tampermonkey] 音源を置き換え: ${src} → ${custom}`); return new originalAudio(custom); } } return new originalAudio(src); }; const originalPlay = HTMLAudioElement.prototype.play; HTMLAudioElement.prototype.play = function() { for (const [target, custom] of Object.entries(targetURLs)) { if (this.src.includes(target)) { console.log(`[Tampermonkey] 音源を置き換え: ${this.src} → ${custom}`); this.src = custom; } } return originalPlay.call(this); }; })();