-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Filter Labels #108
Comments
Released in 2.15.0. |
Another big update, thank you Tako! Can the reason also display for threads, too? For stubbed threads with a subject, perhaps my old PR could be merged? Speaking of stubs, the subject (if added), name, and filter reason(s) being wrapped in <div class="stub">
<a class="show-reply-button" href="javascript:;"><span>➕︎</span> Anonymous (wow what & Filtered comment /from/i)</a><a class="menu-button" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 320 512"><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" fill="currentColor"></path></svg></a>
</div> into <div class="stub">
<a class="show-reply-button" href="javascript:;"><span>➕︎</span><span class="stub-subject">/wdg/<span><span class="stub-name">Anonymous</span><span class="stub-reasons">(<span class="stub-reason">wow what</span> & <span class="stub-reason">Filtered comment /from/i</span>)</span></a><a class="menu-button" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 320 512"><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" fill="currentColor"></path></svg></a>
</div> The brackets and &'s could even be added with CSS instead (something like) .stub-reasons::before { content: '('; }
.stub-reasons::after { content: ')'; }
.stub-reason:not(:last-of-type or maybe :last-child)::after { content: ' & '; } I guess the other option to support is for reasons to be added to the menu, as opposed to inline or on hover. Perhaps like my poor PR attempt, it is a setting within the Menu section and it could override being displayed inline (off by default). Although, in saying that, if a post is I've chucked in a somewhat simple filter: |
I didn't know thread stubs use different code. It's in 2.15.1.
I recreated it. I can't merge pull requests made against the coffeescript version, because that would just lead to git conflicts.
Also in 2.15.1.
Do you really need the reason for highlighted posts? As I understand it, reasons in stubs are so you know why a post was hidden without having to unhide it. |
Mayhem had actually combined Reply and Thread logic around the same time as the Filter Labels.
Thank you.
I'll attempt a PR.
Nah, I agree it isn't needed. I just recall one commenter wanting reasons (hiding or highlighting) as an option in the menu. Again, thank you Tako. |
'Filter Reason' under 'Filtering' |
A long-standing feature request of ccd0's 4chan X was to include filter labels, as in a reason why a post was triggered by a filter (either highlighting or hiding).
Mayhem had it in his version, but it never made it across.
I had tried (to the best of my ability, which is low) to "port" it over (as mentioned in this comment, which links to my original PR attempt and Mayhem's original 2014 commits) but failed.
The text was updated successfully, but these errors were encountered: