From 23595c9b64f4986359e3f8530b6c30e73eb80d77 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 10 Jan 2015 12:59:46 -0800 Subject: [PATCH] Remove page number from title in JSON index. --- src/General/Index.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 77226d325..788429d1d 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -82,6 +82,10 @@ Index = $.on @selectSize, 'change', @cb.size @update() + + $.asap (-> $('title + *', doc) or d.readyState isnt 'loading'), -> + d.title = d.title.replace /\ -\ Page\ \d+/, '' + $.asap (-> $('.board > .thread > .postContainer', doc) or d.readyState isnt 'loading'), -> return unless Main.isThisPageLegit() Index.hat = $ '.board > .thread > img:first-child'