Fix update check (GitLab CORS issue or BitBucket http error 429)
parent
d9e2405ac9
commit
e983d63d1f
|
@ -123,10 +123,8 @@ function setDefaultOptions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_sites_updated() {
|
function check_sites_updated() {
|
||||||
let url = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/-/raw/master/sites_updated.json';
|
let sites_updated_json = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/-/raw/master/sites_updated.json';
|
||||||
//let url = 'https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/raw/master/sites_updated.json';
|
fetch(sites_updated_json)
|
||||||
let proxyurl = 'https://bpc2-cors-anywhere.herokuapp.com/';
|
|
||||||
fetch(proxyurl + url, {headers: {"Content-Type": "text/plain", "X-Requested-With": "XMLHttpRequest"} })
|
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
response.json().then(json => {
|
response.json().then(json => {
|
||||||
|
@ -1131,10 +1129,8 @@ function updateBadge(activeTab) {
|
||||||
|
|
||||||
var ext_version_new;
|
var ext_version_new;
|
||||||
function check_update() {
|
function check_update() {
|
||||||
let url = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/raw/master/manifest.json';
|
let manifest_new = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/raw/master/manifest.json';
|
||||||
//let url = 'https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/raw/master/manifest.json';
|
fetch(manifest_new)
|
||||||
let proxyurl = 'https://bpc2-cors-anywhere.herokuapp.com/';
|
|
||||||
fetch(proxyurl + url, {headers: {"Content-Type": "text/plain", "X-Requested-With": "XMLHttpRequest"} })
|
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
response.json().then(json => {
|
response.json().then(json => {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Chrome
|
Changelog Bypass Paywalls Clean - Chrome
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix update check (GitLab CORS issue or BitBucket http error 429)
|
||||||
|
|
||||||
* v2.5.7.0 (2022-02-20)
|
* v2.5.7.0 (2022-02-20)
|
||||||
Remove Ruhr Nachrichten (fix obsolete)
|
Remove Ruhr Nachrichten (fix obsolete)
|
||||||
|
|
|
@ -39,5 +39,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"<all_urls>"
|
"<all_urls>"
|
||||||
],
|
],
|
||||||
"version": "2.5.7.0"
|
"version": "2.5.7.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -591,6 +591,7 @@
|
||||||
"*://*.epimg.net/*",
|
"*://*.epimg.net/*",
|
||||||
"*://*.flip-pay.com/*",
|
"*://*.flip-pay.com/*",
|
||||||
"*://*.gannett-cdn.com/*",
|
"*://*.gannett-cdn.com/*",
|
||||||
|
"*://*.gitlab.com/magnolia1234/*",
|
||||||
"*://*.hearstnp.com/*",
|
"*://*.hearstnp.com/*",
|
||||||
"*://*.jsdelivr.net/*",
|
"*://*.jsdelivr.net/*",
|
||||||
"*://*.lightboxcdn.com/*",
|
"*://*.lightboxcdn.com/*",
|
||||||
|
@ -607,5 +608,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.5.7.0"
|
"version": "2.5.7.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,9 +44,7 @@ function show_update(ext_version_new, check = true) {
|
||||||
function check_version_update(ext_version_new, popup) {
|
function check_version_update(ext_version_new, popup) {
|
||||||
if (!popup) {
|
if (!popup) {
|
||||||
let manifest_new = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/raw/master/manifest.json';
|
let manifest_new = 'https://gitlab.com/magnolia1234/bypass-paywalls-' + url_loc + '-clean/raw/master/manifest.json';
|
||||||
//let manifest_new = 'https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/raw/master/manifest.json';
|
fetch(manifest_new)
|
||||||
let proxyurl = 'https://bpc2-cors-anywhere.herokuapp.com/';
|
|
||||||
fetch(proxyurl + manifest_new, {headers: {"Content-Type": "text/plain", "X-Requested-With": "XMLHttpRequest"} })
|
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
response.json().then(json => {
|
response.json().then(json => {
|
||||||
|
|
Loading…
Reference in New Issue