Greasy Fork is available in English.

BDSMLR - clickable links to original high-res images and display timestamps

This script modifies image posts to link directly to their high-resolution version. The link is available as soon as a box appears around an image. The color of the box indicates the image height. Secondly, the script displays the post timestamp in the upper-right corner.

هذه إصدارات لهذا البرنامج النصي حيث تم تحديث الكود. عرض كل الإصدارات.

  • v4.2.1 10-12-2023

    Add even more alternate image urls to check if the url received from bdsmlr is broken.
    Seems bdsmlr is breaking stuff again, after they did a major cleanup some time ago.

  • v4.2.0 24-07-2023

    Improve endless scrolling on dashboard by triggering the loading new content much sooner.

  • v4.1.0 15-06-2023

    Now bdsmlr is breaking some images directly in the stream - not just the links to the high-res variants.
    The script now attempts to correct such broken image src urls.
    It seems to work for now, but it'll require some more watching in the future, if there are other ways in how bdsmlr might have broken things...

  • v4.0.2 08-02-2023

    remove one image url correction that now doesn't fix an image anymore but instead break it. bdsmlr remains to be weird.

  • v4.0.1 23-10-2022

    Seems some of the old image redirections are still useful - reinstated

  • v4.0.0 23-10-2022

    BDSMLR turned off all old image servers - the old cdn server urls now all redirect to new servers (cdn012, cdn013, cdn101).
    While this appears to solve all issues with incorrect or circular redirects that have plagued BDSMLR before, it now also appears that many image posts from the early days of BDSMLR are now truly defunct.
    Thus, I've removed all image URL checks that used to successfully fix image links for old posts - what's there now from bsdmlr either works unmodified - or it is truly broken.

    I've also transitioned to TamperMonkey for Firefox as GreaseMonkey appears to be dead.
    This invalidates the usage of the (more advanced) fetch API as this only worked with GreaseMonkey due to it ignoring script/site context and thus side-stepping CORS rules.
    This is OK for now with BDSMLR seemingly having fixed all their incorrect redirects (some were circular, ffs). Let's hope that they don't screw them up again, because there currently is now way to deal with them in a way that is compatible to both TamperMonkey and GreaseMonkey.

  • v3.5.0 22-09-2022

    Cleanup and improve the description of the script.

    Switch from fixed color boxes to mark image height to a gradual color transition mechanism.

  • v3.4.0 16-09-2022

    BDSMLR has embedded a script that automatically hides posts that mention the rival site reblog.me.
    This badly coded script can break infinite scrolling - and it apparently hides all posts that simply mention that they also have a blog on reblog.me.

    This version 3.4.0 is the first attempt to prevent these posts from being hidden.
    I'm not quite sure about how well it will continue to work, as the BDSMLR script is a pretty nasty piece of code (it overloads the system-defined set method of "innerHTML").

  • v3.3.6 22-04-2022

    One more fix for invalid image links - cdno05

  • v3.3.5 22-04-2022

    BDSMLR has managed to break some more image links - more attempts to fix them.

  • v3.3.4 06-01-2022

    bugfix

  • v3.3.3 06-01-2022

    one more fix for broken images due to incorrect cdno redirections: cdno012 -> cdn012

  • v3.3.2 01-11-2021

    WORKAROUND: cdno012 seems completely empty and images are on cdn012, instead (i.e.: same workaround as for cdno08 in 3.3 but for different reason).

  • v3.3.1 09-09-2021

    Remove three debug logging lines

  • v3.3 08-09-2021

    FIX: For some image servers, the path part of the URL is case-sensitive
    WORKAROUND: some images refer to http:// URLs which do not seem to work (bdsmlr issue, not browser issue) - script replaces http image references with https.
    WORKAROUND: cdno08 incorrectly redirects to cdn012 which breaks all images references to it.
    FIX: Better detect erroneous image URLs during image sze analysis -> ignore all URLs with payload size small than 5KB (non-http error pages)

  • v3.2 26-03-2021

    Posted previous prematurely - remove dead code

  • v3.2 26-03-2021

    Now also linkify images embedded in comments.

  • v3.1.1 06-03-2021 additional include statements (thanks to Ron Hubbard)
  • v3.1.0 22-11-2020 Add support for images embedded in text-type comments
  • v3.0.0 04-10-2020 Major rewrite - remove need for prior workaround regarding circulr redirections and add capability to "color-code" images according to their height/quality
  • v2.7.1 23-01-2020 fix "likes" URL schema
  • v2.7.0 04-01-2020 Improve performance (reduce time on initial 404 screen for some image urls), try to deal with "bdsmlr-com.cdn.ampproject.org" image urls, improve code comments
  • v2.6.1 02-01-2020 ignore "default_image" results - seems some bdsmlr image servers redirct to this placeholder image if they have issues
  • v2.6.0 16-08-2019 support group streams (include url pattern), tweak description and remove "experimental" note from description (script has been stable for many weeks)
  • v2.5.1 06-08-2019 minor bugfix (remove forgotten logging statement)
  • v2.5.0 09-07-2019 Yet another adaption to new image server urls
  • v2.4.0 26-05-2019 fix the sidebar (right panel) - as I don't use it much myself, the script might not have been working for it for some time
  • v2.3.3 25-05-2019 Nope, I was wrong - settings do NOT allow to turn off nested posts completely - enabled the feature in the script, again
  • v2.3.2 25-05-2019 Disabled automatic unhiddig of nested posts - nested posts can be disabled in the settings (I though this would only disable it for some nested posts (those with text) - but it seems to apply to all)
  • v2.3.1 25-05-2019 fix BDSMLR regression regarding invalid path with double slash (https://bdsmlr.com//<...>)
  • v2.3.0 25-05-2019 automatically unhide images (instead of "show x more images") and adapt script to some site changes
  • v2.2.0 26-03-2019 Yet another workaround for yet another circular redir situation from bdsmlr - this is getting complicated...
  • v2.1.0 25-03-2019 Deal with even more redirect situations that are generated by bdsmlr
  • v2.0.0 22-03-2019 Complete rework of algorithm to find -og images - needed due to circular (never-ending) bdsmlr redirections
  • v1.13.0 16-03-2019 Deal with newer cdn servers (do not apply legacy og logic - posts using new cdn servers have correct links to og image versions)
  • v1.12.1 03-03-2019 minor bugfix (remove forgotten logging statements)
  • v1.12.0 03-03-2019 display timestamps in upper right corner (currently works for dashboard, only)
  • v1.11.0 21-02-2019 Deal with invalid (404) "302 Moved" responses that led to an infinite refresh loop - if more such redirects to 404 appear on bdsmlr I might have to completly rework the script logic :-(
  • v1.10.1 19-02-2019 minor bugfix
  • v1.10.0 18-02-2019 Added support for cdn04 - trust any preexisting links to -og image version on cdn04 server - otherwise apply script logic as before
  • v1.9.0 16-02-2019 Workaround weird invalid blog urls (".bdsmlr.com") that can show up when browsing blogs (xxxx.bdsmlr.com)
  • v1.8.0 15-02-2019 also redirect to next image URL if receiving a "403 Forbidden" (previously only on 404)
  • v1.7.0 28-01-2019 bug in bdsmlr redirection url - fix bdsmlr.com//uploads/...
  • v1.6.0 27-01-2019 Added yet another URL scheme to access -og version of images...
  • v1.5.0 24-01-2019 adapt to site changes (1.5 - fix endless scrolling for blogs xxx.bdsmlr.com / 1.4 - adapt to yet another new bdsmlr schema to access -og images)
  • v1.4.0 24-01-2019
  • v1.3.1 24-01-2019 URL for images changed slightly
  • v1.3.1 24-01-2019
  • v1.3.0 21-01-2019 adapted to bdsmlr site changes
  • v1.2.0 19-01-2019

Show all script versions