diff --git a/plugins/portal-highlighter-infrastructure.user.js b/plugins/portal-highlighter-infrastructure.user.js index fece76e8..0a59ed53 100644 --- a/plugins/portal-highlighter-infrastructure.user.js +++ b/plugins/portal-highlighter-infrastructure.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-highlight-portal-infrastructure@vita10gy // @name IITC plugin: highlight portals with infrastructure problems // @category Highlighter -// @version 0.2.0.@@DATETIMEVERSION@@ +// @version 0.2.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -31,15 +31,15 @@ window.plugin.portalInfrastructure.badTitles = ['^statue$', 'no title']; window.plugin.portalInfrastructure.highlight = function(data) { - var d = data.portal.options.details; + var d = data.portal.options.data; var color = ''; var opa = .75; - if(!(d.imageByUrl && d.imageByUrl.imageUrl)) { + if(!(d.image)) { color = 'red'; } - if((new RegExp(window.plugin.portalInfrastructure.badTitles.join("|"),'i')).test(d.portalV2.descriptiveText.TITLE)) { + if((new RegExp(window.plugin.portalInfrastructure.badTitles.join("|"),'i')).test(d.title)) { color = color == 'red' ? 'orange' : 'yellow'; opa = .9; }