do this https://watchpeopledie.tv/h/meta/post/61549/megathread-for-bugs-and-suggestions/4014000#context
parent
5da7433425
commit
f822c39652
|
@ -181,7 +181,7 @@ document.addEventListener("click", function(e) {
|
|||
|
||||
if (element instanceof HTMLImageElement && (element.alt.startsWith('![](') || element.classList.contains('img'))) {
|
||||
expandImage(element.dataset.expandedUrl)
|
||||
all_images = element.parentElement.parentElement.parentElement.parentElement.getElementsByClassName('img')
|
||||
all_images = element.parentElement.parentElement.parentElement.parentElement.querySelectorAll('.img, [alt^="![]("]')
|
||||
if (all_images.length != 0) {
|
||||
last_img_index = all_images.length - 1
|
||||
position = [].indexOf.call(all_images, element);
|
||||
|
|
Loading…
Reference in New Issue