added version debugger and toggle hover explainer

This commit is contained in:
Nikita Krupin committed 2022-01-10 17:12:53 -05:00
1 parent af661431f8
commit 7c9a80a629
3 files changed
+56 -4

No files matched your search

+13
View File
@@ -71,6 +71,19 @@ function initConfig() {
function initializeVersionNumber() {
const version = chrome.runtime.getManifest().version;
document.getElementById('ext-version').innerHTML = 'v' + version;
fetch(
"https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
)
.then((response) => response.json())
.then((json) => {
if (version !== json.version) {
document.getElementById('ext-update').innerHTML = 'update to v' + json.version;
document.getElementById('ext-update').style.padding = '.25rem .5rem';
}
});
// .catch(console.error);
}
function initializeDisableVoteSubmission() {