Show Deleted Answers/Questions at head for StackExchange

138 Aspen
2023-09-21T02:55:56Z

Swap two divs inside a parent

脚本练习。

查看你自己在某个StackExchange账号的已删除回答/问题，每次都需要翻到最底下才能看到"Deleted anwsers"，我打算把这个标签移动上来。我写了一个脚本来处理这个问题。如果你和我一样不想按Home/End键

适用URL模式：

// @match        https://*.stackexchange.com/users/*/*?tab=answers*
// @match        https://*.stackexchange.com/users/*/*?tab=questions*
// @match        https://mathoverflow.net/users/*/*?tab=answers*
// @match        https://mathoverflow.net/users/*/*?tab=questions*
// @match        https://stackoverflow.com/users/*/*?tab=answers*
// @match        https://stackoverflow.com/users/*/*?tab=questions*

TODO:

✅ 支持三个TAB：newest，activity，score

✅ 切换到另一个TAB再切换回来原TAB，脚本仍然生效。

Script practice.

To view your own deleted answers/questions on a StackExchange account, you always need to scroll all the way down to see the "Deleted answers" tag. I've written a script to address this issue. If you, like me, don't want to press the Home/End keys

Applicable URL patterns:

// @match https://.stackexchange.com/users//?tab=answers
// @match https://.stackexchange.com/users//?tab=questions
// @match https://mathoverflow.net/users/*/*?tab=answers*
// @match https://mathoverflow.net/users/*/*?tab=questions*
// @match https://stackoverflow.com/users/*/*?tab=answers*
// @match https://stackoverflow.com/users/*/*?tab=questions*

TODO:

✅ Support three TABs: newest, activity, score

✅ When switching to another TAB and then back to the original TAB, the script still works.