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

This script modifies images to link to their original ("-og") high-res version (READ WORKAROUND NOTE!). In addition, it unhides/expands all images of large multi-image posts and displays the timestamp of the post in the upper right corner (dashboard only).

目前為 2020-01-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
marp
評價
0 0 0
版本
2.7.0
建立日期
2019-01-15
更新日期
2020-01-04
尺寸
24.7 KB
授權條款
GNU AGPLv3
腳本執行於

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 approach currently works for:
- bdsmlr dashboard (including group streams)
- 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)


IMPORTANT - WORKAROUND SIDE-EFFECTS:
With this script the inline popup image display does NOT work anymore, currently.
-> The image has to be opened in a new tab (middle-mouse), instead!
The new tab will start out with a 404 error - which will be replaced with the image after a few seconds!
(This behavior is due to a workaround required for faulty circular redirections on some bdsmlr image servers)

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.


As of 2.3.0, the script also automatically unhides all images of larger multi-image posts (instead of having to click manually on "show x more images").


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

The script is presented AS-IS with no guarantees.