From 4559857380317d768ff8394db711eb5c894aa1f8 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 8 Aug 2023 03:09:47 -0400 Subject: added brave image+video support --- static/client.js | 17 +++++++++++++++++ static/icon/amazon.png | Bin 2485 -> 1228 bytes static/icon/appstore.png | Bin 2841 -> 1763 bytes static/icon/facebook.png | Bin 1575 -> 574 bytes static/icon/gamespot.png | Bin 2434 -> 1739 bytes static/icon/github.png | Bin 1250 -> 511 bytes static/icon/googleplay.png | Bin 1469 -> 1046 bytes static/icon/imdb.png | Bin 2626 -> 1287 bytes static/icon/instagram.png | Bin 3309 -> 1827 bytes static/icon/itunes.png | Bin 3016 -> 1725 bytes static/icon/microsoft.png | Bin 2147 -> 1218 bytes static/icon/quora.png | Bin 1716 -> 841 bytes static/icon/reddit.png | Bin 2009 -> 1086 bytes static/icon/rottentomatoes.png | Bin 1084 -> 468 bytes static/icon/sciencedirect.png | Bin 585 -> 354 bytes static/icon/soundcloud.png | Bin 1289 -> 602 bytes static/icon/spotify.png | Bin 2114 -> 689 bytes static/icon/steam.png | Bin 1875 -> 629 bytes static/icon/twitter.png | Bin 1361 -> 698 bytes static/icon/w3html.png | Bin 1542 -> 1000 bytes static/icon/website.png | Bin 2854 -> 1792 bytes static/icon/wikipedia.png | Bin 1363 -> 1085 bytes static/icon/youtube.png | Bin 2363 -> 1335 bytes 23 files changed, 17 insertions(+) (limited to 'static') diff --git a/static/client.js b/static/client.js index 545f0bc..89e9a5e 100644 --- a/static/client.js +++ b/static/client.js @@ -360,6 +360,23 @@ if(image_class !== null){ elem.getAttribute("data-json") ); + var imagesize = elem.getElementsByTagName("img")[0]; + + if(imagesize.complete){ + + var imagesize_w = imagesize.naturalWidth; + var imagesize_h = imagesize.naturalHeight; + } + + for(var i=0; i