diff --git a/libs/modelParser.js b/libs/modelParser.js index 100668818..60aa15ca9 100644 --- a/libs/modelParser.js +++ b/libs/modelParser.js @@ -383,6 +383,9 @@ var parseScript = function (aScript) { parseDateProperty(script, 'updated'); parseDateProperty(script, '_since'); // Virtual + // Hash + script.hashShort = script.hash.substr(0, 7); + if (script._since && script.updated && script._since.toString() !== script.updated.toString()) { script.isUpdated = true; } diff --git a/views/pages/newScriptPage.html b/views/pages/newScriptPage.html index 3b9bc85eb..5b5ae5f38 100644 --- a/views/pages/newScriptPage.html +++ b/views/pages/newScriptPage.html @@ -166,7 +166,7 @@

Enables the ability to use automatic script updates in most .user.js engines.

-

Usually major dot minor dot build (or Patch). May utilize the Toolkit version format or Semantic Versioning (SemVer).

+

Usually major dot minor dot build (or Patch). May utilize the Toolkit version format.

Last value shown.

diff --git a/views/pages/scriptPage.html b/views/pages/scriptPage.html index c84ca973f..9094c6b53 100644 --- a/views/pages/scriptPage.html +++ b/views/pages/scriptPage.html @@ -27,14 +27,7 @@

Published:

- {{#script.meta.UserScript.version}} -

Version: {{value}}{{#script.isUpdated}} updated {{/script.isUpdated}}

- {{/script.meta.UserScript.version}} - {{^script.meta.UserScript.version}} - {{#script.isUpdated}} -

Updated:

- {{/script.isUpdated}} - {{/script.meta.UserScript.version}} +

Version: {{script.meta.UserScript.version.0.value}}+{{script.hashShort}}{{#script.isUpdated}} updated {{/script.isUpdated}}

{{#script.description}}

Summary: {{script.description}}

{{/script.description}} {{#script.hasGroups}}