This commit is contained in:
fofolee 2020-04-21 18:43:22 +08:00
parent 9b3e60810e
commit ca00c83d86
529 changed files with 149 additions and 72 deletions

BIN
ProcessKiller-0.1.0.upx Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -57,7 +57,7 @@
## 下载
[百度网盘](https://pan.baidu.com/s/1nfBnFLMdXisWATVYBKqONw) 提取码: `fmc6`
[百度网盘](https://pan.baidu.com/s/1Q4I6LTRgrHgWm67F_xqv0A) 提取码: `nw4p`
[项目地址](https://github.com/fofolee/uTools-ProcessKiller/)

78
src/README.md Normal file
View File

@ -0,0 +1,78 @@
# ProcessKiller V0.1.0
## 简介
- 列出当前进程,按内存占用从高到低排序
- 支持关闭,重启,复制进程路径,在文件夹内显示等功能
- 支持 window 和 macOS
- 有些进程是否能结束、路径是否能获取取决于uTools是否以管理员权限运行
## 更新日志
**v0.1.0**
- 增加两个功能:复制进程路径和在文件管理器中显示
- 在输入框内增加快捷键提示
- 支持使用 Command/Alt + 数字键快速操作
- 重写了获取进程图标的方法
- 重写了 window下获取进程的方法,大幅提升进入插件的速度
- 重写多出代码,大幅压缩插件体积
![UTOOLS1587431167767.png](https://user-gold-cdn.xitu.io/2020/4/21/1719a4559a6f0ac4?w=804&h=610&f=png&s=170496)
**v0.0.6**
- 更新`windos`下显示`内存`百分比及`用户`的功能,以及默认按照内存占用率进行排序
- 微调获取进程的相关命令语句
**v0.0.5**
- 更新了对`macOS`的支持,`macOS`相比`window`多了显示`CPU`,`内存`百分比及`用户`的功能,以及默认按照内存占用率进行排序
- 增加插件更新检测的功能
- 修复了`windows`下可能导致无法显示进程列表的`bug`,强烈建议`windows`用户也进行升级
- `windows`下一些`UI`微调
- 优化重写了部分程序逻辑和代码
**v0.0.4**
- 进入插件后列出所有进程
- 通过方向键进行列表选择,`enter`关闭进程,`shift+enter`重启进程
- 更改插件描述
- 重新进行`upx`打包
**v0.0.3**
- 增加右键重启进程的功能
**v0.0.2**
- 对界面重新排版,和`uTools`统一风格,增加进程图标,同时根据进程条目调整下拉框长度
- 获取进程命令由tasklist更换为powershell的get-process可以获取到进程的绝对地址和描述含中文相对直接显示进程名更加友好通过搜索进程名称和描述皆可以搜索到相应进程
## 预览
![0.0.2.gif](https://i.loli.net/2019/03/27/5c9ae3d193b1d.gif)
## 下载
[百度网盘](https://pan.baidu.com/s/1Q4I6LTRgrHgWm67F_xqv0A) 提取码: `nw4p`
[项目地址](https://github.com/fofolee/uTools-ProcessKiller/)
[插件发布页](https://yuanliao.info/d/296)
## 安装方法
`upx`文件拖入`uTools`输入框中安装即可
## 关键字
`kill` `关闭进程`
## 类似插件
[窗口管理 WindowManager](https://yuanliao.info/d/1461)
[软件卸载 AppUninstaller]( https://yuanliao.info/d/317 )

View File

@ -1,71 +1,71 @@
/*
highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !!
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery.fn.highlight = function(pat, hlclass) {
function innerHighlight(node, pat) {
var skip = 0;
if (node.nodeType == 3) {
var pos = node.data.toUpperCase().indexOf(pat);
if (pos >= 0) {
var spannode = document.createElement('span');
spannode.className = hlclass;
var middlebit = node.splitText(pos);
var endbit = middlebit.splitText(pat.length);
var middleclone = middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip = 1;
}
}
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
for (var i = 0; i < node.childNodes.length; ++i) {
i += innerHighlight(node.childNodes[i], pat);
}
}
return skip;
}
return this.each(function() {
innerHighlight(this, pat.toUpperCase());
});
};
jQuery.fn.removeHighlight = function(hlclass) {
function newNormalize(node) {
for (var i = 0, children = node.childNodes, nodeCount = children.length; i < nodeCount; i++) {
var child = children[i];
if (child.nodeType == 1) {
newNormalize(child);
continue;
}
if (child.nodeType != 3) { continue; }
var next = child.nextSibling;
if (next == null || next.nodeType != 3) { continue; }
var combined_text = child.nodeValue + next.nodeValue;
new_node = node.ownerDocument.createTextNode(combined_text);
node.insertBefore(new_node, child);
node.removeChild(child);
node.removeChild(next);
i--;
nodeCount--;
}
}
return this.find("span." + hlclass).each(function() {
var thisParent = this.parentNode;
thisParent.replaceChild(this.firstChild, this);
newNormalize(thisParent);
}).end();
/*
highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !!
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery.fn.highlight = function(pat, hlclass) {
function innerHighlight(node, pat) {
var skip = 0;
if (node.nodeType == 3) {
var pos = node.data.toUpperCase().indexOf(pat);
if (pos >= 0) {
var spannode = document.createElement('span');
spannode.className = hlclass;
var middlebit = node.splitText(pos);
var endbit = middlebit.splitText(pat.length);
var middleclone = middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip = 1;
}
}
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) {
for (var i = 0; i < node.childNodes.length; ++i) {
i += innerHighlight(node.childNodes[i], pat);
}
}
return skip;
}
return this.each(function() {
innerHighlight(this, pat.toUpperCase());
});
};
jQuery.fn.removeHighlight = function(hlclass) {
function newNormalize(node) {
for (var i = 0, children = node.childNodes, nodeCount = children.length; i < nodeCount; i++) {
var child = children[i];
if (child.nodeType == 1) {
newNormalize(child);
continue;
}
if (child.nodeType != 3) { continue; }
var next = child.nextSibling;
if (next == null || next.nodeType != 3) { continue; }
var combined_text = child.nodeValue + next.nodeValue;
new_node = node.ownerDocument.createTextNode(combined_text);
node.insertBefore(new_node, child);
node.removeChild(child);
node.removeChild(next);
i--;
nodeCount--;
}
}
return this.find("span." + hlclass).each(function() {
var thisParent = this.parentNode;
thisParent.replaceChild(this.firstChild, this);
newNormalize(thisParent);
}).end();
};

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
src/imgs/window.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Some files were not shown because too many files have changed in this diff Show More