mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-22 01:17:09 +02:00
Formatting
This commit is contained in:
parent
c5684c52df
commit
7c804a2b9a
@ -137,11 +137,11 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
const childItems = document.querySelector('.article__body').getElementsByTagName('*');
|
const childItems = document.querySelector('.article__body').getElementsByTagName('*');
|
||||||
let classHidden = '';
|
let classHidden = '';
|
||||||
for (const el of childItems) {
|
for (const el of childItems) {
|
||||||
if (el.getAttribute('class')!=null && classHidden=='') {
|
if (el.getAttribute('class') !== null && classHidden === '') {
|
||||||
classHidden = el.getAttribute('class');
|
classHidden = el.getAttribute('class');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (classHidden!='') {
|
if (classHidden !== '') {
|
||||||
for (const el of childItems) {
|
for (const el of childItems) {
|
||||||
el.classList.remove(classHidden);
|
el.classList.remove(classHidden);
|
||||||
el.removeAttribute('style');
|
el.removeAttribute('style');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user