From 5d65027b5d9a8b377d352c2666a0bbb3674d4a02 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 18 May 2012 05:23:24 +0200 Subject: [PATCH] Fix #456, #43 --- 4chan_x.user.js | 2 +- script.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dd992f7a4..c82cefcbc 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2682,7 +2682,7 @@ if (link[0] === '#') { continue; } - this.links.push(this.createSauceLink(link)); + this.links.push(this.createSauceLink(link.trim())); } if (!this.links.length) { return; diff --git a/script.coffee b/script.coffee index 32737f029..9c07b4f26 100644 --- a/script.coffee +++ b/script.coffee @@ -2099,7 +2099,8 @@ Sauce = @links = [] for link in Conf['sauces'].split '\n' continue if link[0] is '#' - @links.push @createSauceLink link + # .trim() is there to fix Opera reading two different line breaks. + @links.push @createSauceLink link.trim() return unless @links.length Main.callbacks.push @node