From 12b042c268d733de60cc64198e95ec8273d7c89c Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 25 Aug 2011 00:15:18 -0700 Subject: [PATCH] blank post watcher title --- 4chan_x.user.js | 5 ++++- script.coffee | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index fd2bc5414..244dec029 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1898,10 +1898,13 @@ el = $('span.filetitle', thread); if (!el.textContent) { el = $('blockquote', thread); + if (!el.textContent) { + el = $('span.postername', thread); + } } props = { href: "/" + g.BOARD + "/res/" + id, - textContent: el.textContent ? "/" + g.BOARD + "/ - " + ($.innerText(el).slice(0, 25)) : d.title + textContent: "/" + g.BOARD + "/ - " + ($.innerText(el).slice(0, 25)) }; watched = $.get('watched', {}); watched[_name = g.BOARD] || (watched[_name] = {}); diff --git a/script.coffee b/script.coffee index 090d56b5c..949b5250d 100644 --- a/script.coffee +++ b/script.coffee @@ -1561,9 +1561,11 @@ watcher = el = $ 'span.filetitle', thread if not el.textContent el = $ 'blockquote', thread + if not el.textContent + el = $ 'span.postername', thread props = href: "/#{g.BOARD}/res/#{id}" - textContent: if el.textContent then "/#{g.BOARD}/ - #{$.innerText(el)[...25]}" else d.title + textContent: "/#{g.BOARD}/ - #{$.innerText(el)[...25]}" watched = $.get 'watched', {} watched[g.BOARD] or= {}