module.exports.parse = ({ content, name, url }, { yaml, axios, notify }) => { if (content && content.rules) { const targets = ["国外流量"] for (const target of targets) { const hasTarget = content.rules.some((ele) => ele.includes(target)) if (hasTarget) { const domainSuffixes = [ "rs", "io", "npmjs.org", "notion.so", "etherscan.io", ] for (const domain of domainSuffixes) { content.rules.unshift(`DOMAIN-SUFFIX,${domain},${target}`) } } } } return content }