WebSpotify

Make spotify web player working on mobile device.

  1. // ==UserScript==
  2. // @name WebSpotify
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Make spotify web player working on mobile device.
  6. // @run-at document-start
  7. // @author gvvad
  8. // @include http*://open.spotify.com/*
  9. // @license MIT; https://opensource.org/licenses/MIT
  10. // @copyright 2020, gvvad
  11. // @grant none
  12. // @namespace https://greasyfork.org/users/100160
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. 'use strict';
  17. let _scr = {};
  18. for (const key in window.screen) {
  19. _scr[key] = window.screen[key];
  20. }
  21. Object.setPrototypeOf(_scr, Object.getPrototypeOf(window.screen));
  22.  
  23. _scr.width = 1080;
  24. _scr.height = 1920;
  25.  
  26. window.screen = _scr;
  27. })();