mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:51:58 +01:00
Fix Times of India (amp-images)
This commit is contained in:
parent
405abe5fde
commit
9d1e738961
2 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,7 @@ Post-release
|
|||
Fix LeScienze.it
|
||||
Fix LeTelegramme.fr (css)
|
||||
Fix The Athletic (timing)
|
||||
Fix Times of India (amp-images)
|
||||
|
||||
* v3.2.1.0 (2023-06-05)
|
||||
Add Boersen-zeitung.de
|
||||
|
|
|
@ -4652,6 +4652,18 @@ else if (matchDomain(timesofindia_domains)) {
|
|||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
} else {
|
||||
let amp_images = document.querySelectorAll('div.inline-image > div.inline-imgecontent > amp-img[src]');
|
||||
for (let amp_image of amp_images) {
|
||||
amp_image.parentNode.removeAttribute('class');
|
||||
amp_image.parentNode.parentNode.removeAttribute('class');
|
||||
let elem = document.createElement('img');
|
||||
Object.assign(elem, {
|
||||
src: amp_image.getAttribute('src'),
|
||||
alt: amp_image.getAttribute('alt')
|
||||
});
|
||||
amp_image.parentNode.replaceChild(elem, amp_image);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue