Created
January 19, 2024 17:31
-
-
Save xrdPe/f4c066e5476d515ce4cdc492638abd8a to your computer and use it in GitHub Desktop.
Saltar pago en publicaciones de "El Comercio"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
let firstBlock = document.querySelector(".story-contents .story-contents__font-paragraph"); | |
if(firstBlock){ | |
firstBlock.classList.remove("story-contents--fade"); | |
} | |
let premiumBlock = document.querySelector(".story-content__nota-premium.paywall"); | |
if(premiumBlock){ | |
premiumBlock.style.height = 'auto'; | |
premiumBlock.style.opacity = 1; | |
premiumBlock.style.userSelect = 'all'; | |
premiumBlock.style.visibility = 'visible'; | |
} | |
let style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.appendChild(document.createTextNode(` | |
#articulos-premium .tp-container-inner { | |
display: none !important; | |
opacity: 0 !important; | |
} | |
`)); | |
document.getElementsByTagName('head')[0].appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment