您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
7/19/2023, 11:45:13 AM
// ==UserScript== // @name Prijevodi-online Radio // @namespace Prijevodi-online Radio // @match *://www.prijevodi-online.org/* // @grant none // @version 1.0 // @author den78 // @license MIT // @description 7/19/2023, 11:45:13 AM // ==/UserScript== (function() { var radioStationElement = document.createElement('div'); radioStationElement.className = 'radio-station'; var radioButton = document.createElement('input'); radioButton.type = 'radio'; radioButton.name = 'radio-station'; radioButton.value = 'radio'; var label = document.createElement('label'); label.textContent = 'Radio'; label.style.color = 'white'; label.htmlFor = radioButton.id; radioStationElement.appendChild(radioButton); radioStationElement.appendChild(label); var audioElement = document.createElement('audio'); audioElement.src = 'http://shoutcast.pondi.hr:8000/;'; audioElement.autoplay = false; radioStationElement.appendChild(audioElement); document.body.insertBefore(radioStationElement, document.body.firstChild); radioButton.addEventListener('click', function() { audioElement.play(); }); })();