From 0bbf0d3dfc8c3ae3584108fb2387e9e35c2c635a Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 24 Dec 2013 04:52:20 +0000 Subject: [PATCH] players-resonators plugin: permanant removal due to lack of data --- plugins/broken/players-resonators.user.js | 107 ---------------------- plugins/players-resonators.user.js | 4 +- 2 files changed, 2 insertions(+), 109 deletions(-) delete mode 100644 plugins/broken/players-resonators.user.js diff --git a/plugins/broken/players-resonators.user.js b/plugins/broken/players-resonators.user.js deleted file mode 100644 index 5fae8adb..00000000 --- a/plugins/broken/players-resonators.user.js +++ /dev/null @@ -1,107 +0,0 @@ -// ==UserScript== -// @id iitc-plugin-players-resonators@rbino -// @name IITC plugin: Player's Resonators -// @version 0.1.5.@@DATETIMEVERSION@@ -// @namespace https://github.com/jonatkins/ingress-intel-total-conversion -// @updateURL @@UPDATEURL@@ -// @downloadURL @@DOWNLOADURL@@ -// @description [@@BUILDNAME@@-@@BUILDDATE@@] The plugins finds the resonators of a given player. The input is in the sidebar. -// @include https://www.ingress.com/intel* -// @include http://www.ingress.com/intel* -// @match https://www.ingress.com/intel* -// @match http://www.ingress.com/intel* -// @grant none -// ==/UserScript== - -@@PLUGINSTART@@ - -// PLUGIN START //////////////////////////////////////////////////////// - -/********************************************************************************************************* -* Changelog: -* -* 0.1.5 Added portal and reso counter and reso details (Thanks BJT) -* 0.1.4 Added focus link in the toolbox. Some renaming. Removed div to use sidebar style. -* 0.1.3 Effective player name (with wrong capitalization) if it finds some reso -* 0.1.2 Made nickname case insensitive -* 0.1.1 Added mouseover for portal location. Dirty hack to not show mousehover when the alert is fired. -* 0.1.0 First public release -*********************************************************************************************************/ - -// use own namespace for plugin -window.plugin.playersResonators = function() {}; - -window.plugin.playersResonators.findReso = function(playername) { - var s = ""; - var portalSet = {}; - var effectiveNick = ""; - var portalCounter = 0; - var resoCounter = 0; - // Assuming there can be no agents with same nick with different lower/uppercase - var nickToFind = playername.toLowerCase(); - $.each(window.portals, function(ind, portal){ - var resoLevels = {}; - var r = portal.options.details.resonatorArray.resonators; - $.each(r, function(ind, reso) { - if (!reso) return true; - var nick = getPlayerName(reso.ownerGuid); - if (nick.toLowerCase() === nickToFind){ - resoCounter += 1; - if (!effectiveNick) { - effectiveNick = nick; - } - if (reso.level in resoLevels){ - resoLevels[reso.level] += 1; - } else { - resoLevels[reso.level] = 1; - } - if (!portalSet.hasOwnProperty(portal.options.guid)){ - portalSet[portal.options.guid] = true; - var latlng = [portal.options.details.locationE6.latE6/1E6, portal.options.details.locationE6.lngE6/1E6].join(); - var guid = portal.options.guid; - var zoomPortal = 'window.zoomToAndShowPortal(\''+guid+'\', ['+latlng+']);return false'; - var perma = '/intel?latE6='+portal.options.details.locationE6.latE6+'&lngE6='+portal.options.details.locationE6.lngE6+'&z=17&pguid='+guid; - var a = $('',{ - "class": 'help', - text: portal.options.details.portalV2.descriptiveText.TITLE, - title: portal.options.details.portalV2.descriptiveText.ADDRESS, - href: perma, - onClick: zoomPortal - })[0].outerHTML; - portalCounter += 1; - s += a + ": "; - } - } - }); - if (portalSet.hasOwnProperty(portal.options.guid)){ - for (var i = 8; i>0; i--){ - if (i in resoLevels) - s += resoLevels[i] + "xL" + i + " "; - } - s += "\n"; - } - }); - if (s) { - // Showing the playername as a "fake" link to avoid the auto-mouseover effect on the first portal - fakeLinkPlayer = '' + effectiveNick + '' - s = fakeLinkPlayer + " has " + resoCounter + " resonators on " + portalCounter + " portals:\n\n" + s; - } else { - s = playername + " has no resonators in this range\n"; - } - alert(s); -} - -var setup = function() { - var content = ''; - $('#sidebar').append(content); - $('#toolbox').append(' Player\'s Reso'); - $("#playerReso").keypress(function(e) { - if((e.keyCode ? e.keyCode : e.which) !== 13) return; - var data = $(this).val(); - window.plugin.playersResonators.findReso(data); - }); -} - -// PLUGIN END ////////////////////////////////////////////////////////// - -@@PLUGINEND@@ diff --git a/plugins/players-resonators.user.js b/plugins/players-resonators.user.js index 52a16862..e4267ca6 100644 --- a/plugins/players-resonators.user.js +++ b/plugins/players-resonators.user.js @@ -1,12 +1,12 @@ // ==UserScript== // @id iitc-plugin-players-resonators@rbino // @name IITC plugin: Player's Resonators -// @category Deleted +// @category Deleted // @version 0.1.5.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ -// @description PLUGIN CURRENTLY UNAVAILABLE +// @description The data this plugin needs is no longer available since the late November 2013 intel site update. // @include https://www.ingress.com/intel* // @include http://www.ingress.com/intel* // @match https://www.ingress.com/intel*