firefox在新窗口中打开标签页的配置方法

打开 about:config 将以下设置设为true

1
2
3
4
5
browser.urlbar.openintab
browser.search.openintab
browser.tabs.loadBookmarksInTabs
browser.tabs.loadDivertedInBackground
browser.tabs.insertAfterCurrent


follow from:
https://www.jianshu.com/p/1814e0594086

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

不在当前标签页打开书签
browser.tabs.loadBookmarksInTabs
改为 true


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

新标签页打开链接,而不是窗口
browser.link.open_newwindow.restriction
改为 0

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

新标签页打开地址栏
browser.urlbar.openintab
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

新标签页打开搜索栏
browser.search.openintab
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

关闭最后一个标签页的时候同时关闭浏览器
browser.tabs.closeWindowWithLastTab
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

双击关闭标签
browser.tabs.closeTabByDblclick
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

中键书签前台打开
browser.tabs.loadBookmarksInBackground
改为 false

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

后台页面打开外部链接
browser.tabs.loadDivertedInBackground
改为 ture

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

中键点击不关闭书签菜单
browser.bookmarks.openInTabClosesMenu
改为 false

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

支持新的用户脚本 WE API
extensions.webextensions.userScripts.enabled
改成 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

禁用 pocket
extensions.pocket.enabled
改成 false

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

给Firefox设置远程DNS解析,破解DNS劫持与污染
network.proxy.socks_remote_dns
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

紧邻当前标签新建标签页
browser.tabs.insertAfterCurrent
改为 true

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

破解右键限制
dom.event.contextmenu.enabled
改为 false

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

browser.urlbar.trimURLs
默认是true,效果是自动隐藏地址栏中的http(s)://等协议名称
如果不喜欢隐藏,改为false即可。

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

取消标签动画
toolkit.cosmeticAnimations.enabled
改为 false

qbittorrent archlinux vps 搭建方法

pacman -S qbittorrent-nox

首次安装时需使用本地用户身份手动启动一次并手工设置绑定端口,此时相关初始设置会保存在用户本地配置文件中

/usr/bin/qbittorrent-nox –webui-port=8181

~/.config/qBittorrent/qBittorrent.conf

随后指定用户启动服务即可使用

systemctl start qbittorrent-nox@jeremie

systemctl status qbittorrent-nox@jeremie

journalctl -exu qbittorrent-nox@jeremie

systemctl enable qbittorrent-nox@jeremie

WebUI默认账号密码是 admin adminadmin 参考资料: https://github.com/qbittorrent/qBittorrent/wiki/Running-qBittorrent-without-X-server https://github.com/lgallard/qBittorrent-Controller/wiki/How-to-enable-the-qBittorrent-Web-UI https://github.com/qbittorrent/qBittorrent/issues/4532 https://github.com/qbittorrent/qBittorrent/wiki/I-forgot-my-UI-lock-password

SSR客户端配置方法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

pacman -S python-setuptools python-pip python2-m2crypto git libsodium


git clone -b akkariiin/master https://github.com/shadowsocksrr/shadowsocksr


nano /etc/shadowsocks.json


{
"server":"server.ip.addr",
"server_ipv6": "::",
"server_port": 80,
"local_address":"0.0.0.0",
"local_port":1080,
"timeout":300,
"password":"your_server_password",
"method":"chacha20",
"protocol":"auth_chain_b",
"protocol_param": "",
"obfs":"http_simple",
"obfs_param":"",
"fast_open": false
}


mv shadowsocksr/ /usr/bin/shadowsocksr/



nano /etc/systemd/system/shadowsocksRC.service



[Unit]
Description=ShadowsocksR Client Service
Requires=network.target
After=network.target

[Service]
Type=simple
User=nobody
Restart=always

# python version
#ExecStart=/usr/bin/python /usr/bin/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocks.json

# libev version
#WorkingDirectory=/home/pi/shadowsocksr-libev/
#ExecStart=/home/pi/shadowsocksr-libev/src/ss-local -c /etc/shadowsocks.json


[Install]
WantedBy=multi-user.target





systemctl start shadowsocksR.service

systemctl status shadowsocksR.service

journalctl -xeu shadowsocksR

systemctl enable shadowsocksR.service


CentOS 7开放防火墙端口

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

firewall-cmd --list-all

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=80/udp --permanent
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8080/udp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=443/udp --permanent
firewall-cmd --zone=public --add-port=25960-25970/tcp --permanent
firewall-cmd --zone=public --add-port=25960-25970/udp --permanent
firewall-cmd --zone=public --add-port=32760-32770/tcp --permanent
firewall-cmd --zone=public --add-port=32760-32770/udp --permanent
firewall-cmd --zone=public --add-port=57360-57370/tcp --permanent
firewall-cmd --zone=public --add-port=57360-57370/udp --permanent
firewall-cmd --zone=public --add-port=60000-60010/tcp --permanent
firewall-cmd --zone=public --add-port=60000-60010/udp --permanent

firewall-cmd --reload