From 86250225d10e31a67eefd28e75a1c73c678505e1 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Thu, 10 Dec 2020 10:39:41 +0800 Subject: [PATCH] rebuilding site Thu Dec 10 10:39:41 AM CST 2020 --- searchurl/cmds.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchurl/cmds.html b/searchurl/cmds.html index 77530c24..e9190180 100644 --- a/searchurl/cmds.html +++ b/searchurl/cmds.html @@ -9,7 +9,7 @@

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

清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete

VPN::am start -a android.settings.VPN_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

备份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

tgz install::cd /;toybox tar -xzf %f

下面配置需要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:

cd:termux/*:cd %f;exit 1

vim:termux/*:vim %f

历史去重::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:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS

剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'

剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'

+

清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete

VPN::am start -a android.settings.VPN_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

备份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

tgz install::/system/bin/toybox tar -xzf %f -C /

下面配置需要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:

cd:termux/*:cd %f;exit 1

vim:termux/*:vim %f

历史去重::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:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS

剪贴板_至PC:clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -i'

剪贴板_从PC:/clip:ssh fengcao@192.168.2.102 'DISPLAY=:0 xsel -o'

代理8888需要安装有tinyproxy(apt install tinyproxy),端口为8888。用户可配置为允许外部PC使用。
剪贴板_PC需更改用户名,PC端安装有xsel,termux安装有ssh (apt install openssh),且配置好ssh无密码登录。