From 1383f6d548ea62ba3f6b467e0896573e266574aa Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 16 Feb 2012 16:30:09 +0100 Subject: [PATCH] Add a reply counter in the dump list. Close #225. --- 4chan_x.user.js | 11 +++++++++++ changelog | 1 + script.coffee | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index ccdefdaa1..59f3699ec 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3745,6 +3745,7 @@ a[href="javascript:;"] {\ user-select: none;\ }\ #replies > div {\ + counter-reset: previews;\ top: 0; right: 0; bottom: 0; left: 0;\ margin: 0; padding: 0;\ overflow: hidden;\ @@ -3784,6 +3785,16 @@ a[href="javascript:;"] {\ .preview#selected {\ opacity: 1;\ }\ +.preview::before {\ + counter-increment: previews;\ + content: counter(previews);\ + color: #FFF;\ + font-weight: 700;\ + padding: 3px;\ + position: absolute;\ + top: 0;\ + right: 0;\ +}\ .preview.drag {\ box-shadow: 0 0 10px rgba(0,0,0,.5);\ }\ diff --git a/changelog b/changelog index a68751591..60b35fe87 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,7 @@ master - Mayhem Ensure fresh captcha on QR load. + There is now a reply counter in the dump list. Fix unXXXifier on pages starting with not XXXed numbers. Update image limit notifier for /vg/. diff --git a/script.coffee b/script.coffee index da261005d..87d7aa785 100644 --- a/script.coffee +++ b/script.coffee @@ -3005,6 +3005,7 @@ a[href="javascript:;"] { user-select: none; } #replies > div { + counter-reset: previews; top: 0; right: 0; bottom: 0; left: 0; margin: 0; padding: 0; overflow: hidden; @@ -3044,6 +3045,17 @@ a[href="javascript:;"] { .preview#selected { opacity: 1; } +.preview::before { + counter-increment: previews; + content: counter(previews); + color: #FFF; + font-weight: 700; + padding: 3px; + position: absolute; + top: 0; + right: 0; + text-shadow: 0 0 3px #000, 0 0 8px #000; +} .preview.drag { box-shadow: 0 0 10px rgba(0,0,0,.5); }