Syrics Home Button

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

安装此脚本?
作者推荐脚本

您可能也喜欢Remove Youtube Yoodle

安装此脚本
  1. // ==UserScript==
  2. // @name Syrics Home Button
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Add a home button to the lyrics download page for better workflow
  6. // @author Marcer_f
  7. // @match https://syrics-web-akashrchandran.vercel.app/spotify
  8. // @license MIT
  9. // @match https://syrics-web.vercel.app/spotify
  10. // @icon https://i.ibb.co/jWKPhXh/favicon.png
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // Container für den Button erstellen
  18. const container = document.createElement('div');
  19. container.style.position = 'absolute';
  20. container.style.top = '10px';
  21. container.style.left = '10px';
  22. container.style.zIndex = '1000';
  23. container.style.width = '175px';
  24. container.style.height = '100px';
  25.  
  26. // Button erstellen
  27. const button = document.createElement('button');
  28. button.style.backgroundColor = 'transparent';
  29. button.style.border = 'none';
  30. button.style.cursor = 'pointer';
  31. button.style.width = '100%';
  32. button.style.height = '100%';
  33.  
  34. // Icon hinzufügen
  35. const icon = document.createElement('img');
  36. icon.src = 'https://ik.imagekit.io/gyzvlawdz/Projects/syrics/Black_Modern_Business_Logo__600___500_px___2240___1260_px__cYRO9HGTQ.png';
  37. icon.style.width = '100%';
  38. icon.style.height = '100%';
  39. icon.alt = 'Syrics Icon';
  40.  
  41. button.appendChild(icon);
  42.  
  43. // Button-Klick-Ereignis
  44. button.addEventListener('click', () => {
  45. window.location.href = 'https://syrics-web.vercel.app/';
  46. });
  47.  
  48. // Button in den Container einfügen
  49. container.appendChild(button);
  50.  
  51. // Container in den Header einfügen
  52. document.body.appendChild(container);
  53. })();