// ==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 // @downloadURL https://update.greasyfork.icu/scripts/796/osu%21%20Download%20from%20mirror.user.js // @updateURL https://update.greasyfork.icu/scripts/796/osu%21%20Download%20from%20mirror.meta.js // ==/UserScript== (function($) { var mirrorDown = '
'; $('.beatmapDownloadButton:first').before(mirrorDown); document.getElementById('mirrorBloodcat').onclick = function() { location.href = 'https://bloodcat.com/osu' + $('.beatmapDownloadButton:last a').attr('href').replace('d', 'm'); } })(unsafeWindow.$);