Anonymous 11/30/2023 (Thu) 07:01 No.40106 del
(140.29 KB 821x774 new counter.png)
(122.65 KB 713x774 solution.png)
I corrected post counter a little. Posts should be counted from first reply. Bump limit is 500 replies, lock is 1000, this is how they are displayed in catalog. OP shouldn't be counted, or should be 0. Counting .innerPost elements to avoid placing counter on OP post sounds like a good idea until it turns into .markedPost when you select it, but only after refreshing the page or coming from another thread. Whatever, Lynxchan is such a shitware.

Solution
counter-reset: postnum -1 turns OP counter into 1-1=0. Styling .linkQuote keeps counter numbers clickable for quoting purpose, styling .linkSelf ("No." part) makes them usable as jump anchors. Additionally new style does not interfere with manual quoting in case someone's (me) visiting this board without JavaScript and tries to select post numbers as opposed to how hard it is to perform with previous style.

.opCell {
counter-reset: postnum -1;
}
.linkQuote:before {
font-weight:bold;
counter-increment:postnum 1;
content:counter(postnum);
border-radius:4px;
background-color:#d6dbbb;
padding-left:2px;
padding-right:2px;
margin-left:2px;

Message too long. Click here to view full text.