osu! Download from mirror

Download beatbaps from mirror site

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

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

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        osu! Download from mirror
// @namespace   http://www.icycat.com
// @description Download beatbaps from mirror site
// @author      冻猫
// @include     *osu.ppy.sh/b*
// @include     *osu.ppy.sh/s*
// @version     1.6
// ==/UserScript==

(function($) {

	var mirrorDown = '<div id="mirroDown" style="float:right;width:100px;"><button id="mirrorBloodcat" style="background-color:#78AB23;border:1px solid;border-radius:5px;color:#FFFFFF;cursor:pointer;font-size:1.5em;font-weight:bold;height:130px;margin:4px 1px 0 5px;width:96px;">Download from bloodcat</button></div>';

	$('.beatmapDownloadButton:first').before(mirrorDown);

	document.getElementById('mirrorBloodcat').onclick = function() {
		location.href = 'https://bloodcat.com/osu' + $('.beatmapDownloadButton:last a').attr('href').replace('d', 'm');
	}

})(unsafeWindow.$);