From 32b020c701f4e570235db2956849cc49922512c6 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 16 Feb 2014 02:27:26 -0700 Subject: [PATCH] Fix titlelink. --- builds/4chan-X.user.js | 2 ++ builds/crx/script.js | 2 ++ src/Linkification/Linkify.coffee | 6 ++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index a5b971ca5..35d337803 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -8259,6 +8259,8 @@ try { $.cache(service.api(uid), function() { return title = Linkify.cb.title(this, data); + }, { + responseType: 'json' }); } catch (_error) { err = _error; diff --git a/builds/crx/script.js b/builds/crx/script.js index a1b6209cc..b931ff4ce 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8250,6 +8250,8 @@ try { $.cache(service.api(uid), function() { return title = Linkify.cb.title(this, data); + }, { + responseType: 'json' }); } catch (_error) { err = _error; diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 12e443dc2..6ee35a01e 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -189,8 +189,10 @@ Linkify = embed.dataset.title = title[0] else try - $.cache service.api(uid), -> - title = Linkify.cb.title @, data + $.cache service.api(uid), + -> title = Linkify.cb.title @, data + , + responseType: 'json' catch err if link link.innerHTML = "[#{key}] Title Link Blocked (are you using NoScript?)"