thumbnail-zoom icon indicating copy to clipboard operation
thumbnail-zoom copied to clipboard

Add support for danbooru powered image boards SUG

Open wightwulf1944 opened this issue 13 years ago • 1 comments

check these imageboards. They use or are based off of danbooru so they might have the same underlying code.

warning, links are NSFW

http://chan.sankakucomplex.com/ http://danbooru.donmai.us/post http://konachan.com/post

wightwulf1944 avatar Nov 08 '12 15:11 wightwulf1944

There is a user script for (chan|idol).sankakucomplex.com. It still works but not without issues:

  • the script sometimes triggers Thumbnail Zoom Plus zooming
  • doesn't work with idol.sankakucomplex.com (white rectangle)
  • original image loads too slowly unlike resized version (absurdres tag)
  • with recent site update both galleries often show redirect.png if you hover over thumbnails too fast

So, the most common case is probably thumbnail.jpg -> resized.jpg e.g.,

// (chan|idol).sankakucomplex.com
// http://c4.sankakustatic.com/data/preview/47/1f/471fefb740c98c9657e7dfc6c0148cbb.jpg becomes
// http://c4.sankakustatic.com/data/sample/47/1f/preview471fefb740c98c9657e7dfc6c0148cbb.jpg
aImageSrc = aImageSrc.replace(new RegExp(
          "(sankakustatic.com/data)/preview" +
          "((/[0-9a-f]{2}){2})" +
          "/([0-9a-f]+" +
          EXTS + ")", "i"),
          "$1/sample$2/preview$4");

GIFs and lowres images need a fallback method to fetch original as there is no resized version.

bugmen0t avatar Jan 04 '13 10:01 bugmen0t