From 51ca72eaf10f77f6b4e9f9110164d81662019540 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 7 Aug 2014 13:48:19 +0100 Subject: [PATCH] mark the plugin as 'deleted' and remove all code will be really deleted before the next release build, but as a fair few probably installed it from the test builds it seems a good idea for this intermediate state --- plugins/bad-version-code-fix.user.js | 37 ++-------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/plugins/bad-version-code-fix.user.js b/plugins/bad-version-code-fix.user.js index f10319f5..3d5b6252 100644 --- a/plugins/bad-version-code-fix.user.js +++ b/plugins/bad-version-code-fix.user.js @@ -1,12 +1,12 @@ // ==UserScript== // @id iitc-plugin-fix-bad-version-code@jonatkins // @name IITC plugin: Fix bad version codes -// @category Tweaks +// @category Deleted // @version 0.2.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ -// @description [@@BUILDNAME@@-@@BUILDDATE@@] Sometimes Niantic deployments break, causing an old version of the gen_dashboard.js to be served. This has an out-of-date version code. This plugin overrides known bad codes with the one that should be current. +// @description Deleted plugin. Not useful for fixing the actual issue with Niantic servers. // @include https://www.ingress.com/intel* // @include http://www.ingress.com/intel* // @match https://www.ingress.com/intel* @@ -15,36 +15,3 @@ // ==/UserScript== -@@PLUGINSTART@@ - -// PLUGIN START //////////////////////////////////////////////////////// - - -// use own namespace for plugin -window.plugin.badVersionCodeFix = function() {}; - -window.plugin.badVersionCodeFix.setup = function() { - - var fixes = { - // 2014-08-02 - broken for 24h+ - '81ad679ab5bc219ef3bcf7ca9b760e917cf0c558': 'afdb91368730a906bae38b2837cc411f880350fa', - }; - - - var fixed = fixes[nemesis.dashboard.config.CURRENT_VERSION]; - - if (fixed !== undefined) { - console.warn('IITC VersionCodeFixer: bad nemesis.dashboard.config.CURRENT_VERSION is "'+nemesis.dashboard.config.CURRENT_VERSION+'", should be "'+fixed+'"'); - nemesis.dashboard.config.CURRENT_VERSION = fixed; - } else { - console.log('IITC VersionCodeFixer: no known fixes needed, current nemesis.dashboard.config.CURRENT_VERSION is "'+nemesis.dashboard.config.CURRENT_VERSION+'"'); - } - - -}; - -var setup = window.plugin.badVersionCodeFix.setup; - -// PLUGIN END ////////////////////////////////////////////////////////// - -@@PLUGINEND@@