This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "counter" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
[dependencies.windows] | |
version = "0.52" | |
features = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/rand" | |
"fmt" | |
"github.com/babylonchain/babylon/crypto/eots" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
OlderNewer