Skip to content

Instantly share code, notes, and snippets.

@dolpen
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save dolpen/09b4958455ac3546fca7 to your computer and use it in GitHub Desktop.

Select an option

Save dolpen/09b4958455ac3546fca7 to your computer and use it in GitHub Desktop.
ingress intelでレゾネータの残りEnergy表示するやつ
// ==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