From 37156c79ad9bd76390c8134ff98f8a08829a8832 Mon Sep 17 00:00:00 2001 From: GregTheMadMonk Date: Tue, 27 Sep 2022 01:59:33 +0300 Subject: [PATCH] Remove underline from image links --- data/home/assets/js/util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data/home/assets/js/util.js b/data/home/assets/js/util.js index ecf7b37..8fd37a9 100644 --- a/data/home/assets/js/util.js +++ b/data/home/assets/js/util.js @@ -584,4 +584,9 @@ }; -})(jQuery); \ No newline at end of file + // Remove `border-bottom` from all `` elements that also contain an `` + document.querySelectorAll("a > img").forEach( + imgEl => { imgEl.parentElement.style.borderBottom = "none" } + ); + +})(jQuery);