mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change Feedbin Twitter images to use the canonical source instead of Feedbin image servers.
This commit is contained in:
@@ -25,8 +25,8 @@ function stripStyles() {
|
||||
// Convert all Feedbin proxy images to be used as src, otherwise change image locations to be absolute
|
||||
function convertImgSrc() {
|
||||
document.querySelectorAll("img").forEach(element => {
|
||||
if (element.hasAttribute("data-camo-src")) {
|
||||
element.src = element.getAttribute("data-camo-src")
|
||||
if (element.hasAttribute("data-canonical-src")) {
|
||||
element.src = element.getAttribute("data-canonical-src")
|
||||
} else {
|
||||
element.src = new URL(element.src, document.baseURI).href;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user