Joe's Quality To Value for Popmundo

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)

目前為 2016-03-29 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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;">&nbsp;&nbsp;&nbsp;' + 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;">&nbsp;&nbsp;&nbsp;' + value + '%</span>';
    if ( value >= 0) {
        jisQuery( this ).children( "div" ).eq( 1 ).children().append( span );
    } else {
        jisQuery( this ).children( "div" ).eq( 0 ).children().append( span );
    }
});