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

Modifies images to link to their original ("-og") version. Works for (a) the dashboard, (b) blogs displayed on right sidebar in the dashboard, (c) blog streams (xxx.bdsmlr.com) and (d) individual posts (xxx.bdsmlr.com/post/yyyyyyyyyy). It does NOT work for the archive view. The script also displays the timestamp of the post in the upper right corner.

2019-03-25 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

ئاپتورى
marp
باھا نومۇرى
0 0 0
نەشرى
2.1.0
قۇرۇلغان ۋاقتى
2019-01-15
يېڭىلانغان ۋاقتى
2019-03-25
Size
19.5 KB
ئىجازەتنامىسى
GNU AGPLv3
قوللايدىغىنى

WARNING:
========
BDSMLR.com is still changing frequently and rapidly.
Therefore, the script might stop working at any time whenever BDSMLR makes a change that breaks the logic of this script.
I'll try to adapt and update whenever I detect such changes.


This script modifies bdsmlr.com image posts to link to their high-res "-og" version (easily accessible by opening in a new tab via "middle-mouse" click).
On 2019-02-15, bdsmlr added support for accessing the -og original image version themselves - but only for newer posts. As of version 1.10 of this script, any such newer -og links (-og images on cdn04 and higher servers) are kept as is while the script logic is still applied to non-og links (e.g. older posts or posts for which the new support isn't working properly).

This currently works for:
- bdsmlr dashboard
- blogs displayed as overlay on the right side of the dashboard
- blog streams (xxx.bdsmlr.com)
- individual posts (xxx.bdsmlr.com/post/yyyyyyy)
It does NOT work for the archive view of a blog (xxx.bdsmlr.com/archive)

Also, please note that there is NOT always an original high-res ("-og") version available for each and every posted image. In such cases, the script will fallback to the "non-og" version of the image.


In addition, the script also displays the newly introduced (2019-03-01) time-stamp in the upper right corner of each post.
This currently works for the dashboard, only - the other views (individual posts, individual blogs) do not (yet?) contain any time-stamp data.


Feedback as well as technical advice for further script improvement is very welcome.

The script is presented AS-IS with no guarantees.