diff --git a/4chan_x.user.js b/4chan_x.user.js index 895678e3d..bb3d6d0d3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -386,7 +386,7 @@ return conf[this.name] = this.checked; }, value: function() { - $.set(this.name, this.value); + $.set(this.name, this.value.trim()); return conf[this.name] = this.value; } }, diff --git a/script.coffee b/script.coffee index 561bffa68..690f4f8af 100644 --- a/script.coffee +++ b/script.coffee @@ -313,7 +313,7 @@ $.extend $, $.set @name, @checked conf[@name] = @checked value: -> - $.set @name, @value + $.set @name, @value.trim() conf[@name] = @value addStyle: (css) -> style = $.el 'style',