From 318cea2e9a03d8e8fea14ec9b8122aff5c8749fc Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 29 Oct 2013 02:09:41 +0000 Subject: [PATCH] add a list of the active plugins to the about dialog, listing the version, etc from the new plugin interface changes also use the new versin data supplied by grease/tampermonkey for the main script version display --- code/utils_misc.js | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/code/utils_misc.js b/code/utils_misc.js index fa34ee5e..762e5fa1 100644 --- a/code/utils_misc.js +++ b/code/utils_misc.js @@ -1,9 +1,38 @@ // UTILS + MISC /////////////////////////////////////////////////////// -window.aboutIITC = function(){ - var v = '@@BUILDNAME@@-@@BUILDDATE@@'; +window.aboutIITC = function() { + var v = (script_info.script && script_info.script.version || script_info.dateTimeVersion) + ' ['+script_info.buildName+']'; + if (typeof android !== 'undefined' && android && android.getVersionCode) { + v += '[IITC Mobile '+android.getVersionCode()+']'; + } + + var plugins = ''; + var attrib = '@@INCLUDEMD:ATTRIBUTION.md@@'; var contrib = '@@INCLUDEMD:CONTRIBS.md@@' + var a = '' + '
About IITC
' + '
Ingress Intel Total Conversion
' @@ -23,10 +52,12 @@ window.aboutIITC = function(){ + ' ' + '
' + '
Version: ' + v + '
' + + '
Plugins: ' + plugins + '
' + '
' + '
' + attrib + '
' + '
' + '
' + contrib + '
'; + dialog({ title: 'IITC ' + v, html: a,