您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hover on Recent Activities to see score details
当前为
// ==UserScript== // @name osu! Activity Hover Details // @description Hover on Recent Activities to see score details // @author JebwizOscar // @icon http://osu.ppy.sh/favicon.ico // @include https://osu.ppy.sh/u/* // @include http://osu.ppy.sh/u/* // @require http://code.jquery.com/ui/1.10.4/jquery-ui.js // @copyright 2014, Jeb // @version 0.1.0.6 // @namespace https://greasyfork.org/users/3079 // ==/UserScript== $(function() { $( document ).tooltip({ items: ".event, .h", content: function() { var element = $( this ); if ( element.is( ".event" ) ) { if (typeof(element.attr("title"))=="undefined"){ u=userId; b=element.children(0).last()[0].outerHTML.replace(/((.|\n)+)\/b\/(\d+)((.|\n)+)/,"$3"); m=element.children(0).last()[0].outerHTML.replace(/((.|\n)+)\/b\/(\d+)\?m=(\d+)((.|\n)+)/,"$4"); console.log("http://wa.vg/tooltip.php?m="+m+"&u="+u+"&b="+b); $.get("http://wa.vg/tooltip.php", { 'm':m,'u':u,'b':b }, function(data) { element.attr("title",data); return data; }); return "Loading..."; }else return element.attr("title"); }else if ( element.is( ".h" ) ) { if (typeof(element.attr("title"))=="undefined"){ u=userId; m=element.children(0)[1].innerHTML.replace(/<a href="\/b\/.*?\?m=(.*?)">.*/,"$1"); b=element.children(0)[1].innerHTML.replace(/<a href="\/b\/(.*?)\?m=.*?">.*/,"$1"); console.log("http://wa.vg/tooltip.php?u="+u+"&b="+m); $.get("http://wa.vg/tooltip.php", { 'm':m,'u':u,'b':b }, function(data) { element.attr("title",data); return data; }); return "Loading..."; }else return element.attr("title"); }else return element.attr("title"); } }); });