WebSpotify

Make spotify web player working on mobile device.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         WebSpotify
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Make spotify web player working on mobile device.
// @run-at       document-start
// @author       gvvad
// @include      http*://open.spotify.com/*
// @license      MIT; https://opensource.org/licenses/MIT
// @copyright    2020, gvvad
// @grant        none
// @namespace    https://greasyfork.org/users/100160
// ==/UserScript==

(function () {
    'use strict';
    let _scr = {};
    for (const key in window.screen) {
        _scr[key] = window.screen[key];
    }
    Object.setPrototypeOf(_scr, Object.getPrototypeOf(window.screen));

    _scr.width = 1080;
    _scr.height = 1920;

    window.screen = _scr;
})();