据粗略统计:
- 对于绝大部分人,
"的使用频率远大于'。 - 对于开发人员,
Esc键的使用频率远大于Caps Lock键。 - 对于Java系/JavaScript系/C系/C#/Go等程序员,
{/}的使用频率要明显大于[/]。
交换以上键3组按键。
| // ==UserScript== | |
| // @name 东方财富股吧一键拉黑(发言者+点赞者) | |
| // @namespace https://guba.eastmoney.com/ | |
| // @version 1.5 | |
| // @description 在东方财富股吧评论区为每条评论的发言者添加"拉黑"按钮,调用官方拉黑API;支持批量拉黑本页所有发言者、自动隐藏已拉黑用户的评论、点赞者拦截增强、黑名单管理面板。 | |
| // @author You | |
| // @match *://guba.eastmoney.com/* | |
| // @match *://gubaf10.eastmoney.com/* | |
| // @icon https://gbfek.dfcfw.com/project/guba2022/img/favicon.ico | |
| // @grant GM_xmlhttpRequest |
For most people, " is much more frequently used than '.
For most developers,Esc is much more frequently used than Caps Lock.
For programmers of Java/JavaScript/C/C++/C# etc, {/} is more frequently used than [/].
So it's not bad to swap them.
An application can run on multiple hosts and if we want to collect the logs from all clients we can use log4j's socket appender.
Log4j has implemented SimpleSocketServer which calls SocketNode which collects all events from all clients to a single log file so it's difficult to identify them.
Out goal is to collect events from each client to a separate log file with file name xxx-{client}.log where {client} is the client address.