看到这提肛20并点赞 (@remoteman)自用Clash Meta(Mihomo)覆写脚本更新 中发帖

上接前文: 

为函数添加了一些更多的配置项,直接贴出来了:
// 增加/删除 DNS
// 传入参数:config, dnsMappings("["proxy-server-nameserver", "121.251.251.251"]"), del(boolean, 是否删除)
function updateDNS(config, dnsMappings, del = false) {
if (config.dns) {
dnsMappings.forEach(([dnsKey, dnsValue]) => {
if (config.dns[dnsKey]) {
if (del) {
// 删除操作
config.dns[dn...