From 523482cfcd2f6f768536729e449a0f88601e0ef2 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 3 Apr 2014 16:25:07 -0700 Subject: [PATCH] Fix Link Title --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Linkification/Linkify.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 045425f35..c50d4e709 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -8429,7 +8429,7 @@ ExpandComment.callbacks.push(this.node); } if (Conf['Embedding'] || Conf['Link Title']) { - this.embedProcess = Function('link', "var data = this.services(link); if (data) { " + ((Conf['Embedding'] ? 'this.embed(data);\n' : '') + (Conf['Title Link'] ? 'this.title(data);' : '')) + " }"); + this.embedProcess = Function('link', "var data = this.services(link); if (data) { " + ((Conf['Embedding'] ? 'this.embed(data);\n' : '') + (Conf['Link Title'] ? 'this.title(data);' : '')) + " }"); } return Post.callbacks.push({ name: 'Linkify', diff --git a/builds/crx/script.js b/builds/crx/script.js index a3b0c275e..55757f3b4 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8446,7 +8446,7 @@ ExpandComment.callbacks.push(this.node); } if (Conf['Embedding'] || Conf['Link Title']) { - this.embedProcess = Function('link', "var data = this.services(link); if (data) { " + ((Conf['Embedding'] ? 'this.embed(data);\n' : '') + (Conf['Title Link'] ? 'this.title(data);' : '')) + " }"); + this.embedProcess = Function('link', "var data = this.services(link); if (data) { " + ((Conf['Embedding'] ? 'this.embed(data);\n' : '') + (Conf['Link Title'] ? 'this.title(data);' : '')) + " }"); } return Post.callbacks.push({ name: 'Linkify', diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 211332e8d..13c969623 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -14,7 +14,7 @@ Linkify = if (data) { #{ (if Conf['Embedding'] then 'this.embed(data);\n' else '') + - if Conf['Title Link'] then 'this.title(data);' else '' + if Conf['Link Title'] then 'this.title(data);' else '' } } "