Fix Caixin Global
parent
33ac563133
commit
f82b1c0564
|
@ -161,12 +161,21 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.href.indexOf("nytimes.com") !== -1) {
|
if (window.location.href.indexOf("nytimes.com") !== -1) {
|
||||||
|
|
||||||
const preview_button = document.querySelector('.css-3s1ce0');
|
const preview_button = document.querySelector('.css-3s1ce0');
|
||||||
if (preview_button)
|
if (preview_button)
|
||||||
preview_button.click();
|
preview_button.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.href.indexOf("caixinglobal.com") !== -1) {
|
||||||
|
const appContent = document.getElementById('appContent');
|
||||||
|
if (appContent) {
|
||||||
|
const p_hidden = document.querySelectorAll('p:not([style="display:block;"]');
|
||||||
|
for (var i = 0; i < p_hidden.length; i++) {
|
||||||
|
p_hidden[i].setAttribute('style', 'display:block;');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
if (element) element.remove();
|
if (element) element.remove();
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"*://*.bizjournals.com/*",
|
"*://*.bizjournals.com/*",
|
||||||
"*://*.bloomberg.com/*",
|
"*://*.bloomberg.com/*",
|
||||||
"*://*.businessinsider.com/*",
|
"*://*.businessinsider.com/*",
|
||||||
|
"*://*.caixinglobal.com/*",
|
||||||
"*://*.ed.nl/*",
|
"*://*.ed.nl/*",
|
||||||
"*://*.haaretz.co.il/*",
|
"*://*.haaretz.co.il/*",
|
||||||
"*://*.lemonde.fr/*",
|
"*://*.lemonde.fr/*",
|
||||||
|
|
Loading…
Reference in New Issue