diff --git a/4chan_x.user.js b/4chan_x.user.js
index bf9032389..2e87b86a0 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1992,6 +1992,7 @@
These variables will be replaced by the corresponding url:\
- $1: Thumbnail.
\
- $2: Full image.
\
+ - $3: MD5 hash.
\
\
\
\
@@ -2604,6 +2605,8 @@
return img.src;
case '$2':
return img.parentNode.href;
+ case '$3':
+ return img.getAttribute('md5').replace(/\=+$/, '');
}
});
}
diff --git a/changelog b/changelog
index c8aa80bbb..b08c04753 100644
--- a/changelog
+++ b/changelog
@@ -1,7 +1,7 @@
master
- Mayhem
Increase Sauce linking possibilites:
- Thumbnails, full images.
+ Thumbnails, full images, MD5 hashes.
2.25.5
- Mayhem
diff --git a/script.coffee b/script.coffee
index fe6ceecff..490d44a46 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1533,6 +1533,7 @@ options =
These variables will be replaced by the corresponding url:
- $1: Thumbnail.
- $2: Full image.
+ - $3: MD5 hash.
@@ -2054,6 +2055,8 @@ sauce =
img.src
when '$2'
img.parentNode.href
+ when '$3'
+ img.getAttribute('md5').replace /\=+$/, ''
revealSpoilers =
init: ->