mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 19:01:21 +01:00
added version debugger and toggle hover explainer
This commit is contained in:
1 parent
af661431f8
commit
7c9a80a629
3 files changed
+56
-4
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user