Syrics Home Button

Add a home button to the lyrics download page for better workflow

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Syrics Home Button
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Add a home button to the lyrics download page for better workflow
// @author       Marcer_f
// @match        https://syrics-web-akashrchandran.vercel.app/spotify
// @license      MIT
// @match        https://syrics-web.vercel.app/spotify
// @icon         https://i.ibb.co/jWKPhXh/favicon.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Container für den Button erstellen
    const container = document.createElement('div');
    container.style.position = 'absolute';
    container.style.top = '10px';
    container.style.left = '10px';
    container.style.zIndex = '1000';
    container.style.width = '175px';
    container.style.height = '100px';

    // Button erstellen
    const button = document.createElement('button');
    button.style.backgroundColor = 'transparent';
    button.style.border = 'none';
    button.style.cursor = 'pointer';
    button.style.width = '100%';
    button.style.height = '100%';

    // Icon hinzufügen
    const icon = document.createElement('img');
    icon.src = 'https://ik.imagekit.io/gyzvlawdz/Projects/syrics/Black_Modern_Business_Logo__600___500_px___2240___1260_px__cYRO9HGTQ.png';
    icon.style.width = '100%';
    icon.style.height = '100%';
    icon.alt = 'Syrics Icon';

    button.appendChild(icon);

    // Button-Klick-Ereignis
    button.addEventListener('click', () => {
        window.location.href = 'https://syrics-web.vercel.app/';
    });

    // Button in den Container einfügen
    container.appendChild(button);

    // Container in den Header einfügen
    document.body.appendChild(container);
})();