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
This commit is contained in:
parent
5163b1407b
commit
51ca72eaf1
@ -1,12 +1,12 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-fix-bad-version-code@jonatkins
|
// @id iitc-plugin-fix-bad-version-code@jonatkins
|
||||||
// @name IITC plugin: Fix bad version codes
|
// @name IITC plugin: Fix bad version codes
|
||||||
// @category Tweaks
|
// @category Deleted
|
||||||
// @version 0.2.1.@@DATETIMEVERSION@@
|
// @version 0.2.1.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @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 https://www.ingress.com/intel*
|
||||||
// @include http://www.ingress.com/intel*
|
// @include http://www.ingress.com/intel*
|
||||||
// @match https://www.ingress.com/intel*
|
// @match https://www.ingress.com/intel*
|
||||||
@ -15,36 +15,3 @@
|
|||||||
// ==/UserScript==
|
// ==/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@@
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user