Greasy Fork

4chan Gallery

4chan grid based Image Gallery for threads that can browse images, images with sounds, webms with sounds (Button on the Bottom Right)

目前为 2024-06-05 提交的版本。查看 最新版本

作者
SkAnon
评分
0 0 0
版本
2024-06-05 (2.0)
创建于
2024-03-26
更新于
2024-06-05
大小
69.9 KB
许可证
GNU GPLv3
适用于

1711457054296

Enhance your browsing experience on 4chan and warosu.org with the ultimate 4chan Gallery Script! This powerful script adds a convenient "Open Image Gallery" button to threads on these imageboards. When clicked, the button opens an image gallery that displays all images, GIFs, and videos (with or without sound) from the thread in a responsive grid format, making it easy to view and navigate through the media content.

Key Features:

  • Automatically detects and loads media content from the thread, including images, GIFs, and videos (WebM).
  • Support for 4chan.org, 4channel.org, and warosu.org imageboards.
  • Dark mode compatibility for a seamless browsing experience.
  • Resizable grid of media with scrollbars for easy navigation.
  • Image, GIF, and video playback with sound support (if available).
  • Play/pause, reset buttons for videos with sound.
  • Ability to toggle between "All" mode (images, GIFs, and videos) and "WebM & Images with Sound" mode.
  • Option to enable auto-play and loop for WebMs without sound (like GIFs).
  • "View Post" button to jump to the original post in the thread.
  • Automatically opens and closes the gallery using the "i" key
  • Support for viewing media from multiple expired threads simultaneously (from the /archive page).
  • Reverse image search buttons (SauceNAO, Google Lens, Yandex) when zooming in on an image.
  • Image/video filename display at the top-left corner when zoomed in.
  • Image/video counter over total display at the bottom-right corner when zoomed in.
  • Download buttons for the current image/video and associated audio file (if available) when zoomed in.
  • Keyboard navigation (left and right arrow keys) to move between images/videos when zoomed in.
  • Lazy loading of media for better performance.
  • Tooltips to display the comment over the media in the gallery (hover over it for a second).

Changelog:

  • 2024-06-05 (2.0): Added support for archive site warosu.org, reverse image search buttons, image/video filenames and media counter display, download buttons for video and audio (if available), gallery like keyboard navigation, darkened background on zoom, and performance optimizations. Removed play/pause button for webms with sound (supported by built in player).

  • 2024-03-30 (1.6): New Improved UI Design, added video thumbnails, Implemented Lazy Loading for Images/Videos which optimizes loading of mass number of media, added Tooltips with the comments embedded in the actual post, videos are unloaded until you hover over them.

  • 2024-03-29 (1.5): Added Gallery for the Archived Section at "https://boards.4chan.org/*/archive" which allows you to select multiple threads to view the media of at the same time, using Checkboxes.

  • 2024-03-26 (1.4): Fixed minor bug with loading WebM sounds when having 4chanX installed at the same time.

  • 2024-03-26 (1.3): Added button for toggling gallery of only WebMs, and another button for autoplaying/looping webms without sound (Turns off play on hover while toggled). Adds ability to seek/change duration bar on WebMs with audio, to sync the audio automatically. Retains scrollbar position, and gallery size upon closing gallery, until you go to another thread, and other major code improvements/optimizations.

  • 2024-03-26 (1.2): Fixed support for various 4chan boards.

  • 2024-03-26 (1.1): Supports Images, and WebMs, adds button for opening/closing gallery which displays a grid of images/webms.

  • 2024-03-26 (1.0): Script Creation.