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.

Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn

  • v4.2.2 2024/05/04

    Adapt to BDSMLR changed CORS policy (now need to add "bdsmlr.com" referer to image requests).

    Inner workings of bdsmlr have changed - seems there now always is a valid link to the full-resolution image.
    If this holds true, I'll be able to deactivate/remove significant parts of this script, reducing the background network traffic somewhat.
    But first, I'm going to monitor the situation a bit more as the current script works reliably as-is.

  • v4.2.1 2023/12/10

    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 2023/07/24

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

  • v4.1.0 2023/06/15

    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 2023/02/08

    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 2022/10/23

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

  • v4.0.0 2022/10/23

    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 2022/09/22

    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 2022/09/16

    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 2022/04/22

    One more fix for invalid image links - cdno05

  • v3.3.5 2022/04/22

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

  • v3.3.4 2022/01/06

    bugfix

  • v3.3.3 2022/01/06

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

  • v3.3.2 2021/11/01

    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 2021/09/09

    Remove three debug logging lines

  • v3.3 2021/09/08

    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 2021/03/26

    Posted previous prematurely - remove dead code

  • v3.2 2021/03/26

    Now also linkify images embedded in comments.

  • v3.1.1 2021/03/06 additional include statements (thanks to Ron Hubbard)
  • v3.1.0 2020/11/22 Add support for images embedded in text-type comments
  • v3.0.0 2020/10/04 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 2020/01/23 fix "likes" URL schema
  • v2.7.0 2020/01/04 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 2020/01/02 ignore "default_image" results - seems some bdsmlr image servers redirct to this placeholder image if they have issues
  • v2.6.0 2019/08/16 support group streams (include url pattern), tweak description and remove "experimental" note from description (script has been stable for many weeks)
  • v2.5.1 2019/08/06 minor bugfix (remove forgotten logging statement)
  • v2.5.0 2019/07/09 Yet another adaption to new image server urls
  • v2.4.0 2019/05/26 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 2019/05/25 Nope, I was wrong - settings do NOT allow to turn off nested posts completely - enabled the feature in the script, again
  • v2.3.2 2019/05/25 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 2019/05/25 fix BDSMLR regression regarding invalid path with double slash (https://bdsmlr.com//<...>)
  • v2.3.0 2019/05/25 automatically unhide images (instead of "show x more images") and adapt script to some site changes
  • v2.2.0 2019/03/26 Yet another workaround for yet another circular redir situation from bdsmlr - this is getting complicated...
  • v2.1.0 2019/03/25 Deal with even more redirect situations that are generated by bdsmlr
  • v2.0.0 2019/03/22 Complete rework of algorithm to find -og images - needed due to circular (never-ending) bdsmlr redirections
  • v1.13.0 2019/03/16 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 2019/03/03 minor bugfix (remove forgotten logging statements)
  • v1.12.0 2019/03/03 display timestamps in upper right corner (currently works for dashboard, only)
  • v1.11.0 2019/02/21 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 2019/02/19 minor bugfix
  • v1.10.0 2019/02/18 Added support for cdn04 - trust any preexisting links to -og image version on cdn04 server - otherwise apply script logic as before
  • v1.9.0 2019/02/16 Workaround weird invalid blog urls (".bdsmlr.com") that can show up when browsing blogs (xxxx.bdsmlr.com)
  • v1.8.0 2019/02/15 also redirect to next image URL if receiving a "403 Forbidden" (previously only on 404)
  • v1.7.0 2019/01/28 bug in bdsmlr redirection url - fix bdsmlr.com//uploads/...
  • v1.6.0 2019/01/27 Added yet another URL scheme to access -og version of images...
  • v1.5.0 2019/01/24 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 2019/01/24
  • v1.3.1 2019/01/24 URL for images changed slightly
  • v1.3.1 2019/01/24
  • v1.3.0 2019/01/21 adapted to bdsmlr site changes

Show all script versions