diff --git a/plugins/default-intel-detail.user.js b/plugins/default-intel-detail.user.js index 8bcc0ef2..9e17cf32 100644 --- a/plugins/default-intel-detail.user.js +++ b/plugins/default-intel-detail.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-default-intel-detail@jonatkins // @name IITC plugin: Default intel detail level // @category Tweaks -// @version 0.1.0.@@DATETIMEVERSION@@ +// @version 0.1.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -24,22 +24,22 @@ window.plugin.defaultIntelDetail = function() {}; window.plugin.defaultIntelDetail.setup = function() { - var stockIntelDetail = nemesis.dashboard.zoomlevel.ZOOM_TO_LOD_; - - // save the original function - so we can chain to it for levels we don't modify - var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom; - - // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown - - window.getMinPortalLevelForZoom = function(z) { - // for the further out zoom levels, use the stock intel site detail levels - if (z <= 11) { - return stockIntelDetail[z]; - } - // for the closer zoom levels, stock intel and IITC default is the same. falling back - // in this case allows this plugin to work alongside show-more-portals - return origGetMinPortalLevelForZoom(z); - } +// var stockIntelDetail = nemesis.dashboard.zoomlevel.ZOOM_TO_LOD_; +// +// // save the original function - so we can chain to it for levels we don't modify +// var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom; +// +// // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown +// +// window.getMinPortalLevelForZoom = function(z) { +// // for the further out zoom levels, use the stock intel site detail levels +// if (z <= 11) { +// return stockIntelDetail[z]; +// } +// // for the closer zoom levels, stock intel and IITC default is the same. falling back +// // in this case allows this plugin to work alongside show-more-portals +// return origGetMinPortalLevelForZoom(z); +// } }; diff --git a/plugins/show-more-portals.user.js b/plugins/show-more-portals.user.js index 11cc5d99..17212da7 100644 --- a/plugins/show-more-portals.user.js +++ b/plugins/show-more-portals.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-show-more-portals@jonatkins // @name IITC plugin: Show more portals // @category Tweaks -// @version 0.1.6.@@DATETIMEVERSION@@ +// @version 0.1.7.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -24,26 +24,26 @@ window.plugin.showMorePortals = function() {}; window.plugin.showMorePortals.setup = function() { - // save the original function - so we can chain to it for levels we don't modify - var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom; - - // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown - - window.getMinPortalLevelForZoom = function(z) { - var level = origGetMinPortalLevelForZoom(z); - - // as of 2013-10-16... - - // the stock site uses the same tile size for both L1+ portals and all portals - // therefore, changing the L1+ zoom levels into all portals zoom level is not unfriendly to the servers - // and the same applies for L2+ and L3+ detail levels - // (in some ways it's nicer, as IITC caches better) - - if (level == 1) level = 0; - if (level == 3) level = 2; - - return level; - } +// // save the original function - so we can chain to it for levels we don't modify +// var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom; +// +// // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown +// +// window.getMinPortalLevelForZoom = function(z) { +// var level = origGetMinPortalLevelForZoom(z); +// +// // as of 2013-10-16... +// +// // the stock site uses the same tile size for both L1+ portals and all portals +// // therefore, changing the L1+ zoom levels into all portals zoom level is not unfriendly to the servers +// // and the same applies for L2+ and L3+ detail levels +// // (in some ways it's nicer, as IITC caches better) +// +// if (level == 1) level = 0; +// if (level == 3) level = 2; +// +// return level; +// } };