From 60d071cb3919f41614c2bd4ef456a470f7de5147 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 5 Feb 2012 01:15:58 +0100 Subject: [PATCH] Add MD5 hashes to sauce linking. --- 4chan_x.user.js | 3 +++ changelog | 2 +- script.coffee | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) 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 @@ \ \ \ @@ -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 = @@ -2054,6 +2055,8 @@ sauce = img.src when '$2' img.parentNode.href + when '$3' + img.getAttribute('md5').replace /\=+$/, '' revealSpoilers = init: ->