您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Слушай радио прямо на Lolzteam
当前为
// ==UserScript== // @name Lolzteam Radio // @namespace http://tampermonkey.net/ // @version 1.6 // @description Слушай радио прямо на Lolzteam // @author https://lolz.live/gokent // @match https://lolz.live/* // @icon https://www.google.com/s2/favicons?sz=64&domain=lolz.live // @grant GM_setValue // @grant GM_getValue // ==/UserScript== (function(){ let new_field = document.createElement('li'); let button = document.createElement('button'); let selectList = document.createElement('select'); let audio = document.createElement('audio'); let selected_radio = 'Европа Плюс'; let div = document.createElement('div'); var radios = ['Европа Плюс', 'Авторадио', 'Хит FM', 'Русское радио', 'Дорожное радио', 'DFM']; audio.id = 'radio-audio'; selectList.id = 'select-radio'; button.innerHTML = 'Play'; button.className = 'radio-player'; button.setAttribute('status', 'stop'); selectList.style.width = '120px'; button.style.width = '41px'; selectList.style.padding = '6px'; button.style.padding = '6px'; selectList.style.background = '#2d2d2d'; button.style.background = '#2d2d2d'; button.style.color = '#d6d6d6'; selectList.style.color = '#d6d6d6'; button.style.border = 'none'; selectList.style.border = 'none'; selectList.style.fontWeight = 'bold'; button.style.fontWeight = 'bold'; button.style.marginLeft = '5px'; button.style.borderRadius = '6px'; selectList.style.borderRadius = '6px'; selectList.style.outline = '0'; selectList.style.cursor = 'pointer'; button.style.cursor = 'pointer'; div.appendChild(selectList); div.appendChild(button); div.appendChild(audio); div.className = 'radio-class' new_field.id = 'radio-block' new_field.appendChild(div); for (var i = 0; i < radios.length; i++) { var option = document.createElement('option'); option.value = radios[i]; option.text = radios[i]; option.className = 'user-radio'; selectList.appendChild(option); } let field = document.querySelector('.secondaryContent'); field.append(new_field); let listOnchange = document.querySelector('#select-radio').onchange = function(event){ selected_radio = event.target.value; } var get_audio = document.querySelector('#radio-audio'); var radio_value = GM_getValue('radio'); if (radio_value){ docx = document.querySelector('.radio-player') if (radio_value == 'Европа Плюс'){ get_audio.src = 'https://europaplus.hostingradio.ru:8014/europaplus320.mp3?5b8b3595'; get_audio.play(); } else if (radio_value == 'Авторадио'){ get_audio.src = 'https://ic7.101.ru:8000/v3_1?f474e85'; get_audio.play(); } else if (radio_value == 'Хит FM'){ get_audio.src = 'https://hitfm.hostingradio.ru/hitfm128.mp3?6823dbe'; get_audio.play(); } else if (radio_value == 'Русское радио'){ get_audio.src = 'https://rusradio.hostingradio.ru/rusradio96.aacp?e88b'; get_audio.play(); } else if (radio_value == 'Дорожное радио'){ get_audio.src = 'https://dorognoe.hostingradio.ru:8000/dorognoe?747b3618'; get_audio.play(); } else if (radio_value == 'DFM'){ get_audio.src = 'https://dfm.hostingradio.ru/dfm96.aacp?2f85ca10'; get_audio.play(); } GM_setValue('radio', radio_value); docx.innerHTML = 'Stop'; docx.setAttribute('status', 'play'); selectList.disabled = true; selectList.style.cursor = 'default'; user_radio = document.querySelectorAll('.user-radio').forEach(function(element){ if (element.value == radio_value){ select_radio = document.querySelector(`.user-radio[value="${radio_value}"]`) select_radio.setAttribute('selected', true) } }) } let radio_play = document.querySelector('.radio-player').onclick = start_radio; function start_radio(){ docx = document.querySelector('.radio-player') attr = docx.getAttribute('status'); if (attr == 'stop'){ var get_audio = document.querySelector('#radio-audio'); if (selected_radio == 'Европа Плюс'){ get_audio.src = 'https://europaplus.hostingradio.ru:8014/europaplus320.mp3?5b8b3595'; get_audio.play(); } else if (selected_radio == 'Авторадио'){ get_audio.src = 'https://ic7.101.ru:8000/v3_1?f474e85'; get_audio.play(); } else if (selected_radio == 'Хит FM'){ get_audio.src = 'https://hitfm.hostingradio.ru/hitfm128.mp3?6823dbe'; get_audio.play(); } else if (selected_radio == 'Русское радио'){ get_audio.src = 'https://rusradio.hostingradio.ru/rusradio96.aacp?e88b'; get_audio.play(); } else if (selected_radio == 'Дорожное радио'){ get_audio.src = 'https://dorognoe.hostingradio.ru:8000/dorognoe?747b3618'; get_audio.play(); } else if (selected_radio == 'DFM'){ get_audio.src = 'https://dfm.hostingradio.ru/dfm96.aacp?2f85ca10'; get_audio.play(); } GM_setValue('radio', selected_radio); docx.innerHTML = 'Stop'; docx.setAttribute('status', 'play'); selectList.disabled = true; selectList.style.cursor = 'default'; } else { var get_audio = document.querySelector('#radio-audio'); get_audio.pause(); get_audio.currentTime = 0; get_audio.removeAttribute('src'); docx.innerHTML = 'Play'; docx.setAttribute('status', 'stop'); selectList.disabled = false; selectList.style.cursor = 'pointer'; GM_setValue('radio', null); } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址