NeteaseMusic Resolution Upgrader

Force playing high quality music in Netease cloud music Website

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         NeteaseMusic Resolution Upgrader
// @namespace    https://github.com/nondanee
// @version      0.2.1
// @description  Force playing high quality music in Netease cloud music Website
// @author       nondanee
// @match        https://music.163.com/*
// @grant        none
// ==/UserScript==

(() => {
	let _asrsea
	const asrsea_ = (...payload) => {
		const data = JSON.parse(payload[0])
		if ('level' in data) data.level = 'exhigh'
		payload[0] = JSON.stringify(data)
		return _asrsea.apply(window, payload)
	}
	if (window.asrsea) {
		_asrsea = window.asrsea
		window.asrsea = asrsea_
	}
	else {
		Object.defineProperty(window, 'asrsea', {
			get: () => asrsea_,
			set: value => _asrsea = value
		})
	}
})()