mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-16 06:13:16 +00:00
7e28649506
Import custom sites only works from add-ons screen (via icon/popup gives CSP-error). Plus some cosmetic updates in options.
20 lines
807 B
JavaScript
20 lines
807 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.link("https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases").replace('a href=', 'a target="_blank" href=');
|
|
} else {
|
|
versionString_new = ''; //'Latest release';
|
|
}
|
|
document.getElementById('version_new').innerHTML = versionString_new;
|
|
})
|
|
}
|
|
});
|