diff --git a/index.html b/index.html index aca3e74..6fdf355 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + diff --git a/searchurl/cmds.html b/searchurl/cmds.html index df3b51b..9c1f78f 100644 --- a/searchurl/cmds.html +++ b/searchurl/cmds.html @@ -9,5 +9,5 @@

配置文件"/sdcard/uweb/default.cmds"示例:
-

备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.

恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.

清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache

清空logcat::logcat -c

输出logcat.log::logcat -d > /sdcard/uweb/logcat.log

下面配置需要root权限:

解冻微信::su -c 'pm enable com.tencent.mm'

冻结微信::su -c 'pm disable com.tencent.mm'

解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'

冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'

下面配置需要termux:

历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log

书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html

hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts

网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf

+

备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.

恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.

清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache

清空logcat::logcat -c

输出logcat.log::logcat -d > /sdcard/uweb/logcat.log

下面配置需要root权限:

解冻微信::su -c 'pm enable com.tencent.mm'

冻结微信::su -c 'pm disable com.tencent.mm'

解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'

冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'

下面配置需要termux:

历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.log>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.log

书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html

hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts

网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf

代理8888::tinyproxy;am start -a android.settings.WIFI_SETTINGS

代理8888需要安装有tinyproxy(apt install tinyproxy),端口为8888。用户可配置为允许外部PC使用。

diff --git a/searchurl/txt/cmds.cfg b/searchurl/txt/cmds.cfg index 1fd5aa9..c5d9a58 100644 --- a/searchurl/txt/cmds.cfg +++ b/searchurl/txt/cmds.cfg @@ -1,6 +1,6 @@ 清空浏览数据::/system/bin/toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete VPN::am start -a android.settings.VPN_SETTINGS -wireless::am start -a android.settings.WIRELESS_SETTINGS +无线::am start -a android.settings.WIRELESS_SETTINGS 合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc 打开剪贴板链接:clip/uweb:/system/bin/toybox grep -m1 -Eo '(http|https)://[^ "'\'']+' 行编辑器:text/html:cat %f|while read LINE; do echo "$LINE
";done