Fix-update El Mercurio (Chile)

This commit is contained in:
magnolia1234 2021-05-04 20:14:56 +02:00
parent 52cb539c24
commit b0623d76ad
4 changed files with 12 additions and 7 deletions

View file

@ -205,6 +205,7 @@ var use_google_bot_default = [
'di.se',
'dn.se',
'editorialedomani.it',
'elmercurio.com',
'euobserver.com',
'eurekareport.com.au',
'finance.si',

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add The Economic Times (text/India)
Fix-update El Mercurio (Chile)
* v2.1.9.0 (2021-05-02)
Add GenomeWeb, 360Dx & Precision Oncology News

View file

@ -371,7 +371,7 @@ else if (matchDomain('faz.net')) {
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-ZÖÜ\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n");
str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
// exceptions: names with alternating lower/uppercase (no general fix)
let str_rep_arr = ['BaFin', 'BerlHG', 'BfArM', 'BilMoG', 'DiGA', 'EuGH', 'eWpG', 'FinTechRat', 'GlaxoSmithKline', 'gGmbH', 'IfSG', 'iMessage', 'iOS', 'iPad', 'iPhone', 'medRxiv', 'mRNA', 'PlosOne', 'StVO'];
let str_rep_arr = ['BaFin', 'BerlHG', 'BfArM', 'BilMoG', 'DiGA', 'EuGH', 'eWpG', 'FinTechRat', 'GlaxoSmithKline', 'gGmbH', 'IfSG', 'iMessage', 'iOS', 'iPad', 'iPhone', 'iShares', 'medRxiv', 'mRNA', 'PlosOne', 'StVO'];
let str_rep_split,
str_rep_src;
for (let str_rep of str_rep_arr) {
@ -1497,6 +1497,12 @@ else if (matchDomain('elmercurio.com')) {
let elem_hidden = document.querySelectorAll('[style="visibility:hidden"]');
for (let elem of elem_hidden)
elem.removeAttribute('style');
let cont_articlelight = document.querySelector('div.cont_articlelight:not([style])');
if (cont_articlelight)
cont_articlelight.setAttribute('style', 'height: 100% !important; width: 90% !important');
let page_pdf_content = document.querySelector('div.page_pdf_content');
let close_html = document.querySelector('div.close_html');
removeDOMElement(page_pdf_content, close_html)
}, 1000); // Delay (in milliseconds)
}
@ -1935,11 +1941,8 @@ else if (matchDomain('nationalgeographic.com')) {
body.removeAttribute('style');
}
}
if (!div_bpc_done) {
let selector = 'div[id^="fittPortal"]';
waitDOMElement(selector, 'DIV', natgeo_func, false);
addDivBpcDone();
}
waitDOMElement('div[id^="fittPortal"]', 'DIV', natgeo_func, false);
csDone = true;
}
else if (matchDomain('nationalreview.com')) {

View file

@ -509,5 +509,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.9.1"
"version": "2.1.9.2"
}