diff --git a/4chan_x.js b/4chan_x.js index 109bc2de1..f6b7723ba 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1590,8 +1590,9 @@ titlePost = { init: function() { var tc; - tc = $('span.filetitle').textContent || $('blockquote').textContent; - return d.title = "/" + g.BOARD + "/ - " + tc; + if (tc = $('span.filetitle').textContent || $('blockquote').textContent) { + return d.title = "/" + g.BOARD + "/ - " + tc; + } } }; quickReport = { diff --git a/script.coffee b/script.coffee index 38dc97490..ca6a86b69 100644 --- a/script.coffee +++ b/script.coffee @@ -1245,8 +1245,8 @@ localize = titlePost = init: -> - tc = $('span.filetitle').textContent or $('blockquote').textContent - d.title = "/#{g.BOARD}/ - #{tc}" + if tc = $('span.filetitle').textContent or $('blockquote').textContent + d.title = "/#{g.BOARD}/ - #{tc}" quickReport = init: ->