Last active
August 29, 2015 14:04
-
-
Save dolpen/09b4958455ac3546fca7 to your computer and use it in GitHub Desktop.
ingress intelでレゾネータの残りEnergy表示するやつ
This file contains hidden or 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 ingress resonator viewer | |
| // @namespace http://www.dolpen.net/ | |
| // @description view hp | |
| // @include https://www.ingress.com/intel | |
| // @match https://www.ingress.com/intel | |
| // @exclude | |
| // ==/UserScript== | |
| (function () { | |
| function inject(func) { | |
| location.href = 'javascript:void (' + func + ')()'; | |
| } | |
| setTimeout(function () { | |
| inject(function () { | |
| nemesis.dashboard.soy.portalinfooverlay.resonatorLevel_ = function (a, b) { | |
| var c = b || new soy.StringBuilder; | |
| c.append( | |
| '<div class="resonator_level">', | |
| 'L' + a.level ? soy.$$escapeHtml(a.level) + '-' + soy.$$escapeHtml(('0000' + a.energy).slice(-4)) : '', | |
| '</div>' | |
| ); | |
| return b ? '' : c.toString(); | |
| }; | |
| }); | |
| }, 3000); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment