Fix-update NyTeknik (images)

master
magnolia1234 2021-04-19 18:27:07 +02:00
parent 1901452e35
commit 864296faac
4 changed files with 11 additions and 1 deletions

View File

@ -15,6 +15,12 @@ function bpc_count_daily_users(dateStr) {
});
let count_json = 'https://bitbucket.org/bpc_redux/bpc-chrome-daily-users/downloads/bpc-daily-users-' + dateStr + '.json';
fetch(count_json, {mode: 'no-cors'});
let count_mobile_json = 'https://bitbucket.org/bpc_redux/bpc-chrome-mobile-daily-users/downloads/bpc-daily-users-' + dateStr + '.json';
let count_desktop_json = 'https://bitbucket.org/bpc_redux/bpc-chrome-desktop-daily-users/downloads/bpc-daily-users-' + dateStr + '.json';
if (window.navigator && window.navigator.userAgent.match(/(mobile|android)/i))
fetch(count_mobile_json, {mode: 'no-cors'});
else
fetch(count_desktop_json, {mode: 'no-cors'});
}
});
}

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome
Post-release
Fix-update NyTeknik (images)
* v2.1.7.0 (2021-04-18)
Add NyTeknik (Sweden)

View File

@ -2019,6 +2019,9 @@ else if (matchDomain('nyteknik.se')) {
let locked_article = document.querySelector('div.locked-article');
if (locked_article)
locked_article.classList.remove('locked-article');
let hidden_images = document.querySelectorAll('img[src=""][data-proxy-image]');
for (let hidden_image of hidden_images)
hidden_image.setAttribute('src', hidden_image.getAttribute('data-proxy-image').replace('_320', '_640'));
}
else if (matchDomain('nytimes.com')) {

View File

@ -491,5 +491,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.7.0"
"version": "2.1.7.1"
}