您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enable audio downloads on all Rai Play Radio contents
当前为
// ==UserScript== // @name Rai Play Radio - Audio download // @namespace https://andrealazzarotto.com/ // @version 1.0 // @description Enable audio downloads on all Rai Play Radio contents // @author Andrea Lazzarotto // @match https://www.raiplayradio.it/* // @match https://www.rai.it/* // @match http://www.rai.it/* // @require http://code.jquery.com/jquery-latest.min.js // @grant none // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // ==/UserScript== (function() { 'use strict'; $('[data-mediapolis]').attr('data-download', true); $('.ico.options').attr({ 'aria-label': 'Opzioni', }); if (window['audioUrl']) { let audioUrl = window['audioUrl']; $('.Player').after(`<p id="audio-url"><a href="${audioUrl}" target="_blank" download>Scarica audio</a></p>`); $('#audio-url a').css({ 'display': 'inline-block', 'margin': '1rem 0', 'font-size': '1rem', 'color': 'white', 'text-decoration': 'underline' }); } })();