Last active
December 22, 2015 16:29
-
-
Save berlysia/6500038 to your computer and use it in GitHub Desktop.
覚醒値をパーセント表示するやつ
This file contains 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 imas_ml_awnscouter.user.js | |
// @namespace http://twitter.com/berlysia | |
// @include http://imas.gree-apps.net/app/index.php/* | |
// @version 1.0.0.0 | |
// ==/UserScript== | |
(function(){ | |
var getSiblings = function(self){ | |
var ret = []; | |
for (var n = self.parentNode.firstChild; n; n = n.nextSibling) { | |
if(n.nodeType === 1 && n != self) ret.push(n); | |
}; | |
return ret; | |
} | |
awn = document.querySelector('.awn'); | |
if(awn){ | |
per = awn.style.cssText.match(/[0-9]+/)[0]; | |
li = getSiblings(awn.parentNode.parentNode)[0].getElementsByTagName('li')[1]; | |
li.innerText = per+'%'; | |
} | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
公式に覚醒値表示が徹底されたのでお役御免となりました。