Everyone Piano

Download pdf version of the music sheet on everyone piano

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Everyone Piano
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Download pdf version of the music sheet on everyone piano
// @author       You
// @match        *://www.everyonepiano.com/*
// @match        *://www.everyonepiano.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=everyonepiano.cn
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    // Inject buttons into the body
    const downloadButton = document.createElement('button');
    downloadButton.id = 'downloadButton';
    downloadButton.textContent = 'Download and Pack Images';

    const generatePDFButton = document.createElement('button');
    generatePDFButton.id = 'generatePDFButton';
    generatePDFButton.textContent = 'Generate Images PDF';

    document.body.appendChild(downloadButton);
    document.body.appendChild(generatePDFButton);

    // Inject script dependencies into the header
    const dependencies = [
        'https://cdnjs.cloudflare.com/ajax/libs/jszip/3.6.0/jszip.min.js',
        'https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js',
        'https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js'
    ];

    dependencies.forEach(src => {
        const script = document.createElement('script');
        script.src = src;
        document.head.appendChild(script);
    });

    // Inject your custom script at the end
    const customScript = document.createElement('script');
    customScript.src = 'https://share.273803761.xyz/files/renren-download.js';
    document.body.appendChild(customScript);
})();