您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds numeric values to the level bars and quality names. Any problems, please contact Joe Isaacs (http://www.popmundo.com/World/Popmundo.aspx/Character/3248185)
当前为
// ==UserScript== // @name Joe's Quality To Value for Popmundo // @namespace http://popmundo-diaries.com/ // @Author Joe Isaacs CharId #3248185 <[email protected]> // @description Adds numeric values to the level bars and quality names. Any problems, please contact Joe Isaacs (http://www.popmundo.com/World/Popmundo.aspx/Character/3248185) // @version 1.0.1 // @include http://*.popmundo.com/World/Popmundo.aspx/* // @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js // @grant GM_info // ==/UserScript== //jQuery var jisQuery = jQuery.noConflict(); //Add value to quality jisQuery( "a[href*='Scoring']" ).each( function() { value = jisQuery( this ).attr('title'); value = value.substr( 0, value.lastIndexOf("/") ); value = jisQuery( this ).text() + " (" + value + ")"; jisQuery( this ).text( value ); }); //Add value to progress bar type jisQuery( 'div[class*="rogressBar"]' ).each( function() { value = jisQuery( this ).attr('title'); value = value.substr( 0, value.indexOf("%") ); span = '<span style=" text-align: center; font-weight: 400; font-size: smaller;"> ' + value + '%</span>'; value = jisQuery( this ).children( "div:first" ).append( span ); }); //Add value to negative progress bar type jisQuery( '.plusMinusBar' ).each( function() { value = jisQuery( this ).attr('title'); value = value.substr( 0, value.indexOf("%") ); span = '<span style=" text-align: center; font-weight: 400; font-size: smaller;"> ' + value + '%</span>'; if ( value >= 0) { jisQuery( this ).children( "div" ).eq( 1 ).children().append( span ); } else { jisQuery( this ).children( "div" ).eq( 0 ).children().append( span ); } });