Created
March 13, 2020 15:15
-
-
Save HelloWorld017/8a3f91975d8db122996383cd58280bf7 to your computer and use it in GitHub Desktop.
osu! download from mirror
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name osu! Download From Mirror | |
// @namespace https://gist.github.com/HelloWorld017/8a3f91975d8db122996383cd58280bf7 | |
// @version 0.1 | |
// @description Download beatmap from mirror | |
// @author Khinenw | |
// @match *://osu.ppy.sh/* | |
// @grant none | |
// ==/UserScript== | |
setInterval(() => { | |
document.querySelectorAll('.js-beatmapset-download-link').forEach(v => { | |
if(!v.$BloodCatInjected) { | |
v.$BloodCatInjected = true; | |
v.href = v.href.replace(/^.*\/beatmapsets\//, 'https://bloodcat.com/osu/s/').replace('/download', ''); | |
} | |
}); | |
}, 200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment