spotify.com - Unsupported fix

Creates a button for solving the quiz instantly.

  1. // ==UserScript==
  2. // @grant none
  3. // @version 0.0.0
  4. // @author eye-wave
  5. // @icon https://raw.githubusercontent.com/eye-wave/greasy-fork/main/packages/spotify-unsupported-fix/assets/icon.svg
  6. // @license GPL-3.0+
  7. // @name spotify.com - Unsupported fix
  8. // @namespace spotify.com fix
  9. // @match https://open.spotify.com/*
  10. // @description Creates a button for solving the quiz instantly.
  11. // ==/UserScript==
  12. // ../../utils/src/index.ts
  13. function $s(query) {
  14. return document.querySelector(query);
  15. }
  16.  
  17. // src/index.ts
  18. var btn = $s("a.primary");
  19. if (btn) {
  20. const url = "spotify" + location.pathname.replace("/", ":");
  21. btn.href = url;
  22. btn.textContent = "Open in App";
  23. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址