diff --git a/CHANGELOG.md b/CHANGELOG.md index e641c7612..304ed3d52 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,13 @@ The links to individual versions below are to copies of the script with the upda - Fix bug in Firefox version causing lost data (e.g. watched threads, posts which are yours) when HTTP and HTTPS versions of 4chan are open at the same time. +### v1.9.4.2 +*2014-09-30* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.2/builds/4chan-X-noupdate.crx "Chromium version")] + +**ccd0** +- Support party hats in the JSON-built index. +- Fix party hats blocking the links behind them. + ### v1.9.4.1 *2014-09-23* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.1/builds/4chan-X-noupdate.crx "Chromium version")] diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 5d0877815..e5dfd0158 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -94,7 +94,12 @@ Index = $.on @selectSort, 'change', @cb.sort @update() - $.asap (-> $('.board', doc) or d.readyState isnt 'loading'), -> + $.asap (-> $('.board > .thread > .postContainer', doc) or d.readyState isnt 'loading'), -> + Index.hat = $ '.board > .thread > img:first-child' + if Index.hat and Index.nodes + for threadRoot in Index.nodes + $.prepend threadRoot, Index.hat.cloneNode false + board = $ '.board' $.replace board, Index.root $.event 'PostsInserted' @@ -443,6 +448,7 @@ Index = for threadData, i in Index.liveThreadData try threadRoot = Build.thread g.BOARD, threadData + $.prepend threadRoot, Index.hat.cloneNode false if Index.hat if thread = g.BOARD.threads[threadData.no] thread.setCount 'post', threadData.replies + 1, threadData.bumplimit thread.setCount 'file', threadData.images + !!threadData.ext, threadData.imagelimit diff --git a/src/General/css/style.css b/src/General/css/style.css index df81f2124..2bfd50fbd 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -99,6 +99,10 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { unicode-bidi: -moz-isolate; unicode-bidi: -webkit-isolate; } +/* party hats */ +.thread > img:first-child { + pointer-events: none; +} /* fixed, z-index */ #overlay,