madebydanny.uk written in html, css, and a lot of JavaScript I don't understand madebydanny.uk
html css javascript
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

added img proxy

+10 -1
+10 -1
rssloader/textbites.js
··· 1 1 async function loadArticles() { 2 2 const RSS_URL = "/textbites/feed.xml"; // your local file 3 + const PROXY = "https://corsproxy.io/?"; // proxy base 4 + 3 5 try { 4 6 const response = await fetch(RSS_URL); 5 7 const text = await response.text(); ··· 43 45 image = media.getAttribute("url"); 44 46 } 45 47 48 + // Wrap image with proxy if found 49 + if (image) { 50 + image = PROXY + encodeURIComponent(image); 51 + } else { 52 + image = "https://placehold.co/300x200?text=No+Image"; 53 + } 54 + 46 55 // Build card 47 56 const card = document.createElement("div"); 48 57 card.className = "card"; 49 58 card.innerHTML = ` 50 59 <a href="${link}" target="_blank"> 51 - <img src="${image || 'https://placehold.co/300x200?text=No+Image'}" alt="${title}"> 60 + <img src="${image}" alt="${title}"> 52 61 </a> 53 62 <div class="card-content"> 54 63 <a href="${link}" target="_blank">