diff --git a/4chan_x.user.js b/4chan_x.user.js index e991fc2a7..bc072f9ba 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2231,7 +2231,7 @@ sauce = { init: function() { - if (!(sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm)).length) return; + if (!(sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm))) return; sauce.names = sauce.prefixes.map(function(prefix) { return prefix.match(/(\w+)\./)[1]; }); diff --git a/script.coffee b/script.coffee index 0a0394d2d..b703a1350 100644 --- a/script.coffee +++ b/script.coffee @@ -1790,7 +1790,7 @@ anonymize = sauce = init: -> - return unless (sauce.prefixes = conf['flavors'].match /^[^#].+$/gm).length + return unless sauce.prefixes = conf['flavors'].match /^[^#].+$/gm sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1] g.callbacks.push (root) -> return if root.className is 'inline' or not span = $ '.filesize', root