diff --git a/config.js.example b/config.js.example index 9c73866..00a96d6 100644 --- a/config.js.example +++ b/config.js.example @@ -1,7 +1,8 @@ var config = { - shlinkUrl: 'https://example.com', // Base url of your shlink server - shlinkOutUrl: 'https://example.com', // The most cases this is the same as shlinkUrl - shlinkAppUrl: 'https://app.shlink.io/server/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', // Base url for shlink app. See example. Selfhosted or app.shlink.io - shlinkApiKey: 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', // Shlink API Key - shlinkAppOpenMode: 'edit' // Changes the use of the Open App button to the shortUrl settings (edit) or visits info. Choose 'visits' or 'edit'. + customName: 'Redirect Extention',// Custom name for the extention + shlinkUrl: 'https://example.com',// Base url of your shlink server + shlinkOutUrl: 'https://example.com',// The most cases this is the same as shlinkUrl + shlinkAppUrl: 'https://app.shlink.io/server/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',// Base url for shlink app. See example. Selfhosted or app.shlink.io + shlinkApiKey: 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',// Shlink API Key + shlinkAppOpenMode: 'edit'// Changes the use of the Open App button to the shortUrl settings (edit) or visits info. Choose 'visits' or 'edit'. } \ No newline at end of file diff --git a/popup-func.js b/popup-func.js index 219624b..ae3e5f4 100644 --- a/popup-func.js +++ b/popup-func.js @@ -17,6 +17,8 @@ function newRedirect () { var responseData = JSON.parse(request.response); shortUrlOut.value = `${config.shlinkOutUrl}/${responseData.shortCode}`; shlinkAppBtnRdUrl = `${config.shlinkAppUrl}/short-code/${responseData.shortCode}/${config.shlinkAppOpenMode}`; + document.getElementById("newButton").style.display = 'none'; + document.getElementById("cancelButton").style.display = 'block'; document.getElementById("p1qr-code").src = `${config.shlinkUrl}/${responseData.shortCode}/qr-code?size=160&format=png&margin=2&errorCorrection=L`; } }); diff --git a/popup.css b/popup.css index 0439837..9204d00 100644 --- a/popup.css +++ b/popup.css @@ -4,5 +4,5 @@ .title { font-size: 16px; font-weight: bold; - padding: 12px; + padding: 8px 24px 2px; } \ No newline at end of file diff --git a/popup.html b/popup.html index d6bf9b3..88f3de4 100644 --- a/popup.html +++ b/popup.html @@ -2,11 +2,9 @@
...
+