From d59f24caa6acb9acf8f319f44eef6586549adbbc Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 11 Nov 2017 13:10:43 +0800 Subject: [PATCH] Change: a simpler installUpdateFromLabel --- _locales/en/messages.json | 9 ++------- install-usercss/install-usercss.js | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 75bd412f..2c9aff70 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -431,13 +431,8 @@ } }, "installUpdateFromLabel": { - "message": "Install update from $url$", - "description": "Label for the checkbox to save current URL for update check", - "placeholders": { - "url": { - "content": "$1" - } - } + "message": "Check for updates", + "description": "Label for the checkbox to save current URL for update check" }, "license": { "message": "License", diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index b89547cd..80986223 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -243,7 +243,7 @@ // set updateUrl const setUpdate = $('.set-update-url input[type=checkbox]'); const updateUrl = new URL(params.get('updateUrl')); - $('.set-update-url > span').textContent = t('installUpdateFromLabel', updateUrl.href); + $('.set-update-url > span').textContent = t('installUpdateFromLabel'); if (dup && dup.updateUrl === updateUrl.href) { setUpdate.checked = true; // there is no way to "unset" updateUrl, you can only overwrite it.