mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
Add script to modify image sizes for TechCrunch links
This commit is contained in:
1 parent
bb78080f1f
commit
515441a29b
1 file changed
+12
@@ -26,3 +26,15 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// TechCrunch → Reader View
|
||||
const feedLink = document.querySelector('.feedlink');
|
||||
|
||||
if (feedLink.href.includes('techcrunch.com')) {
|
||||
|
||||
document.querySelectorAll('img[sizes^="auto"]').forEach((img) => {
|
||||
img.sizes = img.sizes.split(',').slice(1).join(',').trim();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user