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