soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

Customized behaviour for question/answer list on 10k tools page #505

Open miken32 opened 9 months ago

miken32 commented 9 months ago

Describe the feature you'd like 10k users get access to site tools which include a list of questions and answers with recent delete and undelete votes. It would be helpful to be able to customize these lists. DOM on page load looks like this:

<table class="summary-table collapsed">
  <tbody>
    <tr>
      <td class="cnt">2</td>
      <td>
        <a class="question-hyperlink" href="...">Title</a>
        <span title="1 more vote needed to delete this question">(1)</span>
      </td>
    </tr>
      <td class="cnt">1</td>
      <td>
        <a class="answer-hyperlink" href="...">Title</a>
        <span title="2 more votes needed to delete this answer">(1)</span>
      </td>
    <tr>
      <td class="cnt">1</td>
      <td class="tagged-ignored" title="you can't vote to delete/undelete this post">
        <a class="answer-hyperlink" href="...">Title</a>
        <span title="2 more votes needed to delete this answer">(1)</span>
      </td>
    </tr>
    <tr class="collapsing">...</tr>
    <tr class="collapsing">...</tr>
    ...
  </tbody>
</table>

In SO stylesheet .collapsed .collapsing are hidden. There are 45 total rows in the table, with 3 shown initially.

Things that could be done with these lists include:

Use case These lists are collapsed by default, and do not maintain state between page views, making navigating from the list to a question and back aggravating. In addition space is wasted showing posts you're unable to vote on.

Suggested descriptions Main option could be "Customize 10k tools lists" and clicking the settings icon could show 3 options: "Show ____ posts by default," "Show post type: ( ) questions ( ) answers ( ) all," and "[ ] Show posts you can't vote to delete/undelete."