TuxedoTako / 4chan-xt

Adds various features to anonymous imageboards.
Other
91 stars 8 forks source link

bug: selected image to upload only showing a preview in quick reply window in 1 out of 3 cases (and after) #75

Closed nadomodan closed 1 month ago

nadomodan commented 1 month ago

there seem to be 3 ways to select image to add to post

  1. ctrl+v to paste image from clipboard (obtained via right click on any image -> Copy Image)
  2. entering direct image link (chain icon)
  3. system file picker

Method 2 and 3 doesn't show image preview. Method 1 does. After selecting an image using method 1, method 2 and 3 will also start showing the preview. 2 and 3 seems to be missing some preview activation code that 1 has.

2024-07-13 22:30:57 screenshot

saxamaphone69 commented 1 month ago

image

All 3 methods work on my machine.

What OS, browser, and userscript manager are you using?

nadomodan commented 1 month ago

Arch Linux, Firefox, Violentmonkey All 3 methods work for me too but only after priming with 1, if I refresh page 2 and 3 stops working, then work again after using 1 again if I wasn't clear

nadomodan commented 1 month ago

Looking more into it the preview is a part of "Dump list" functionality, besides pasting from clipboard it can be opened by clicking the plus icon at the bottom of QR window () => nodes.el.classList.toggle('dump') Still, would be useful if the file picker and url import method also enabled it to get the image preview

TuxedoTako commented 1 month ago

Can you try 2.11.0?

nadomodan commented 1 month ago

2.11.0 fixed this