diff options
author | Dmitrii Selivanov <selivano.d@gmail.com> | 2021-12-27 11:04:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 11:04:00 +0300 |
commit | 2339b461015ad9323f4c20e14332a26bee7224a6 (patch) | |
tree | b71a2a73c2b1b4c28588916091e98a6c9ee6a450 | |
parent | afae1b346f1d9faa7acb79033a6e2ddbe0a2f308 (diff) | |
parent | 559a2e8305fad68500f2b5c96b34a051994d4cef (diff) |
Merge pull request #351 from UnderscoreX5/patch-1
Add version number to extension's menu
-rw-r--r-- | Extensions/combined/popup.html | 1 | ||||
-rw-r--r-- | Extensions/combined/popup.js | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Extensions/combined/popup.html b/Extensions/combined/popup.html index 1bf8737..27910d2 100644 --- a/Extensions/combined/popup.html +++ b/Extensions/combined/popup.html @@ -13,6 +13,7 @@ <svg width="48" viewBox="0 0 24 24"><path d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z" fill="red"/><path d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff"/></svg> <h1>Return YouTube Dislike</h1> <p>by Dmitrii Selivanov & Community</p> + <p id="ext-version"></p> <button id="link_website">Website</button> <button id="link_github">GitHub</button> diff --git a/Extensions/combined/popup.js b/Extensions/combined/popup.js index 1f2a7e3..c0e7b78 100644 --- a/Extensions/combined/popup.js +++ b/Extensions/combined/popup.js @@ -4,7 +4,17 @@ const config = { showAdvancedMessage: "Show Settings", hideAdvancedMessage: "Hide Settings", disableVoteSubmission: false, +} + + function initConfig() { + initializeVersionNumber(); + } + function initializeVersionNumber() { + const version = chrome.runtime.getManifest().version; + document.getElementById('ext-version').innerHTML = 'v' + version; +} + links: { website: "https://returnyoutubedislike.com", github: "https://github.com/Anarios/return-youtube-dislike", |