mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-02 15:40:13 +00:00
0dad06d5eb
Example: Bypass Paywalls Clean v1.6.4.4 Options | GitHub | New release v1.6.4.x
20 lines
673 B
JavaScript
20 lines
673 B
JavaScript
var manifestData = browser.runtime.getManifest();
|
|
var versionString = 'v' + manifestData.version;
|
|
document.getElementById('version').innerText = versionString;
|
|
|
|
const manifest_new = 'https://raw.githubusercontent.com/magnolia1234/bypass-paywalls-firefox-clean/master/manifest.json';
|
|
fetch(manifest_new)
|
|
.then(response => {
|
|
if (response.ok) {
|
|
response.json().then(json => {
|
|
var version_new = json['version'];
|
|
if (version_new > manifestData.version) {
|
|
versionString_new = 'New release v' + version_new;
|
|
} else {
|
|
versionString_new = 'Latest release';
|
|
}
|
|
document.getElementById('version_new').innerText = versionString_new;
|
|
})
|
|
}
|
|
});
|