mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Fix Lequipe.fr & LesEchos.fr (refresh)
This commit is contained in:
parent
78602c7dfd
commit
5e62fdccfd
2 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add Groupe Sud Ouest (France)
|
||||
Fix Australian Community Media (images)
|
||||
Fix Lequipe.fr & LesEchos.fr (refresh)
|
||||
Fix New York Magazine sites (cookies)
|
||||
Fix TheTimes.co.uk (epaper & archive)
|
||||
Update block general paywall script (limit NewsMemory)
|
||||
|
|
|
@ -1124,7 +1124,7 @@ else if (matchDomain('lequipe.fr')) {
|
|||
let json = json_script.textContent.split('articleObject:')[1].split(',articleType')[0];
|
||||
let url_nuxt = json_script.textContent.split('comment_count_url:"')[1].split('",')[0].replace(/\\u002F/g, '/');
|
||||
if (url_nuxt && !url_nuxt.includes(window.location.pathname))
|
||||
window.location.reload(true);
|
||||
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
||||
let par_type = json.split('paragraphs:[')[1].split(',{__type:')[1].split(',')[0];
|
||||
if (par_type) {
|
||||
article.innerHTML = '';
|
||||
|
@ -1183,7 +1183,7 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
|||
let article = data_article.data.stripes[0].mainContent[0].data.description;
|
||||
let url_loaded = data_article.data.path;
|
||||
if (url_loaded && !url.replace(/%20/g, '').includes(url_loaded))
|
||||
window.location.reload(true);
|
||||
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
||||
let paywallNode = document.querySelector('.post-paywall');
|
||||
if (paywallNode) {
|
||||
let contentNode = document.createElement('div');
|
||||
|
@ -1204,7 +1204,7 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
|||
let styleElem = document.head.appendChild(document.createElement('style'));
|
||||
styleElem.innerHTML = ".post-paywall::after {height: auto !important;}";
|
||||
} catch (err) {
|
||||
window.location.reload(true);
|
||||
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
||||
}
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
|
|
Loading…
Reference in a new issue