diff --git a/4chan_x.user.js b/4chan_x.user.js index d84420db9..7dbe40bdf 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1997,7 +1997,7 @@ _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { s = _ref[_i]; - if (s[0] !== '#') { + if (s && s[0] !== '#') { _results.push(s); } } diff --git a/script.coffee b/script.coffee index 4d2d517fe..ab4ac8cff 100644 --- a/script.coffee +++ b/script.coffee @@ -1590,7 +1590,7 @@ anonymize = sauce = init: -> - sauce.prefixes = (s for s in (conf['flavors'].split '\n') when s[0] != '#') + sauce.prefixes = (s for s in (conf['flavors'].split '\n') when s and s[0] != '#') sauce.names = (prefix.match(/(\w+)\./)[1] for prefix in sauce.prefixes) g.callbacks.push (root) -> return if root.className is 'inline'