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