Change Feedbin Twitter images to use the canonical source instead of Feedbin image servers.

This commit is contained in:
Maurice Parker 2020-01-17 11:41:04 -07:00
parent df1b483996
commit 539722d685
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}