Greasy Fork

Greasy Fork is available in English.

osu my download

osu beatmap镜像站下载

当前为 2014-08-05 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name       osu my download
// @namespace  
// @version    0.3
// @description  osu beatmap镜像站下载
// @include        *://osu.ppy.sh/s/*
// @include        *://osu.ppy.sh/b/*
// @homepageURL  http://greasyfork.icu/scripts/3916
// updateURL     http://greasyfork.icu/scripts/3916-osu-my-download/code/osu%20my%20download.user.js
// downloadURL   http://greasyfork.icu/scripts/3916-osu-my-download/code/osu%20my%20download.user.js
// @copyright  2014+, dazzulay
// ==/UserScript==

// css样式 设置
GM_addStyle('.my_container{position:fixed;top:140px;right:0px;}');
GM_addStyle('.my_btn{width:150px;height:111px;display:table-cell;vertical-align:middle;margin:0 0 10px 0;padding:10px;font-family:Haettenschweiler,Aril;font-size:40px;font-weight:normal;letter-spacing:2px;color:#fff;border: 4px solid #fff;border-radius:6px;}.my_btn:hover{text-shadow:0 0 20px floralwhite; color:#fff;}'); 
GM_addStyle('.my_orange{background:linear-gradient(to bottom,darkorange,orange,darkorange);}.my_blue{background:linear-gradient(to bottom,darkblue,blue,darkblue);}.my_green{background:linear-gradient(to bottom,darkgreen,green,darkgreen);}');
GM_addStyle('.my_btn span{display:inline-block;vertical-align:middle;text-align:center}'); 

// 获取beatmapid
var bmsrc = $('.bmt').attr('src');
var bmid = bmsrc.substring(bmsrc.indexOf("thumb/")+6,bmsrc.lastIndexOf("l"));

// 添加按钮
$('body').append('<div class="my_container"></div>');
$('.my_container').append('<a class="my_btn my_orange" href="http://bloodcat.com/osu/m/'+bmid+'"><span>DOWNLOAD BLOODCAT</span></a><br/>');
$('.my_container').append('<a class="my_btn my_blue" href="http://loli.al/s/'+bmid+'"><span>DOWNLOAD LOLI.AL</span></a><br/>');
$('.my_container').append('<a class="my_btn my_green" href="http://osu.mengsky.net/d.php?id='+bmid+'"><span>DOWNLOAD MENGSKY</span></a>');