YouTube mp3 Conv

The YouTube mp3 Conv generates a Download on YouTube.com. Convert YouTube to mp3 and download the file to your device.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name            YouTube mp3 Conv
// @namespace       https://www.rcyoutube.com/
// @author          Addon Developer
// @license         MIT
// @version         2.0
// @icon            https://www.rcyoutube.com/userscript/icon.png
// @description     The YouTube mp3 Conv generates a Download on YouTube.com. Convert YouTube to mp3 and download the file to your device.
// @match           http://www.youtube.com/*
// @match           https://www.youtube.com/*
// @grant           none
// ==/UserScript==

(function() {
    const div = document.createElement('div');
    div.innerHTML = 'Download';
    div.style.backgroundColor = '#ff0000';
    div.style.color = '#ffffff';
    div.style.border = 'none';
    div.style.borderRadius = '5px';
    div.style.padding = '4px 8px';
    div.style.fontSize = '14px';
    div.style.height = '20px';
    div.style.width = '70px';
    div.style.zIndex = '9999';
    div.style.position = 'fixed';
    div.style.top = '15px';
    div.style.left = '190px';
    div.style.cursor = 'pointer';
    div.style.display = 'flex';
    div.style.justifyContent = 'center';
    div.style.alignItems = 'center';
    div.onclick = function() {
        window.open("https://www.rcyoutube.com/convert?v=" + window.location.href, '_blank');
    }

    document.body.appendChild(div);
})();