temporary change to the bad-version plugin, using internal list of fixes rather than externally loaded one
let's see if this works better for users...
This commit is contained in:
parent
bf586282e6
commit
ef9f26dc5e
@ -2,7 +2,7 @@
|
|||||||
// @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 Tweaks
|
||||||
// @version 0.1.0.@@DATETIMEVERSION@@
|
// @version 0.2.0.@@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@@
|
||||||
@ -15,11 +15,37 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
|
||||||
// NOTE: non-standard plugin - designed to work with both IITC *and* the standard intel site
|
@@PLUGINSTART@@
|
||||||
|
|
||||||
// do NOT use as a template for other IITC plugins
|
// PLUGIN START ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var fixUrl = (window.location.protocol!=='https:'?'http://iitc.jonatkins.com':'https://secure.jonatkins.com/iitc')+'/bad-version-code-fix.js';
|
|
||||||
var script = document.createElement('script');
|
// use own namespace for plugin
|
||||||
script.setAttribute('src', fixUrl);
|
window.plugin.badVersionCodeFix = function() {};
|
||||||
(document.body || document.head || document.documentElement).appendChild(script);
|
|
||||||
|
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) {
|
||||||
|
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');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var setup = window.plugin.badVersionCodeFix.setup;
|
||||||
|
|
||||||
|
// PLUGIN END //////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@@PLUGINEND@@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user