Fix Title Link

Fix zixaphir/appchan-x#733, Fix zixaphir/appchan-x#732
This commit is contained in:
Zixaphir 2014-05-29 10:31:01 -07:00
parent f4adf7b72b
commit 6a2b382be4
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.7.33 - 2014-05-27 * 4chan X - Version 1.7.33 - 2014-05-29
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.7.33 - 2014-05-27 * 4chan X - Version 1.7.33 - 2014-05-29
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -8818,7 +8818,7 @@
ExpandComment.callbacks.push(this.node); ExpandComment.callbacks.push(this.node);
} }
if (Conf['Embedding'] || Conf['Link Title']) { if (Conf['Embedding'] || Conf['Link Title']) {
this.embedProcess = Function('link', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); this.embedProcess = Function('link', 'post', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}");
} }
return Post.callbacks.push({ return Post.callbacks.push({
name: 'Linkify', name: 'Linkify',

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.7.33 - 2014-05-27 * 4chan X - Version 1.7.33 - 2014-05-29
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -8834,7 +8834,7 @@
ExpandComment.callbacks.push(this.node); ExpandComment.callbacks.push(this.node);
} }
if (Conf['Embedding'] || Conf['Link Title']) { if (Conf['Embedding'] || Conf['Link Title']) {
this.embedProcess = Function('link', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); this.embedProcess = Function('link', 'post', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}");
} }
return Post.callbacks.push({ return Post.callbacks.push({
name: 'Linkify', name: 'Linkify',

View File

@ -9,7 +9,7 @@ Linkify =
ExpandComment.callbacks.push @node ExpandComment.callbacks.push @node
if Conf['Embedding'] or Conf['Link Title'] if Conf['Embedding'] or Conf['Link Title']
@embedProcess = Function 'link', @embedProcess = Function 'link', 'post',
""" """
var data = this.services(link); var data = this.services(link);
if (data) {#{ if (data) {#{