fix #255 (by tpenner)
This commit is contained in:
parent
df708d0b33
commit
71d769c3ec
@ -81,6 +81,7 @@ Please do!
|
|||||||
[saithis](https://github.com/saithis),
|
[saithis](https://github.com/saithis),
|
||||||
[Scrool](https://github.com/Scrool),
|
[Scrool](https://github.com/Scrool),
|
||||||
[sorgo](https://github.com/sorgo),
|
[sorgo](https://github.com/sorgo),
|
||||||
|
[tpenner](https://github.com/tpenner),
|
||||||
[vita10gy](https://github.com/vita10gy),
|
[vita10gy](https://github.com/vita10gy),
|
||||||
[Xelio](https://github.com/Xelio),
|
[Xelio](https://github.com/Xelio),
|
||||||
[ZauberNerd](https://github.com/ZauberNerd)
|
[ZauberNerd](https://github.com/ZauberNerd)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-player-tracker@breunigs
|
// @id iitc-plugin-player-tracker@breunigs
|
||||||
// @name iitc: player tracker
|
// @name iitc: player tracker
|
||||||
// @version 0.4
|
// @version 0.5
|
||||||
// @namespace https://github.com/breunigs/ingress-intel-total-conversion
|
// @namespace https://github.com/breunigs/ingress-intel-total-conversion
|
||||||
// @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
// @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
||||||
// @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
// @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js
|
||||||
@ -76,10 +76,11 @@ window.plugin.playerTracker.processNewData = function(data) {
|
|||||||
$.each(json[2].plext.markup, function(ind, markup) {
|
$.each(json[2].plext.markup, function(ind, markup) {
|
||||||
switch(markup[0]) {
|
switch(markup[0]) {
|
||||||
case 'TEXT':
|
case 'TEXT':
|
||||||
// Destroy link messages depend on how the link was originally
|
// Destroy link and field messages depend on where the link or
|
||||||
// created. Therefore it’s not clear which portal the player is
|
// field was originally created. Therefore it’s not clear which
|
||||||
// at, so ignore it.
|
// portal the player is at, so ignore it.
|
||||||
if(markup[1].plain.indexOf('destroyed the Link') !== -1) {
|
if(markup[1].plain.indexOf('destroyed the Link') !== -1
|
||||||
|
|| markup[1].plain.indexOf('destroyed a Control Field') !== -1) {
|
||||||
skipThisMessage = true;
|
skipThisMessage = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user