Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@✨无限流量节点✨@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi4pyo5peg6ZmQ5rWB6YeP6IqC54K54pyoIiwiYXV0aG9yIjoiQXJpZXMiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IiwidmVyc2lvbiI6MjAyNDEwMDYsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidG9vbCIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIHJlcyA9IFtdXG5sZXQgdGltZV9zdGFtcCA9IERhdGUubm93KClcblxubGV0IHBhc3Nfd29yZCA9IGdldE15VmFyKCd0aW1lX3N0YW1wJywgJycpXG5pZiAoIXBhc3Nfd29yZCkge1xuICAgIHB1dE15VmFyKCd0aW1lX3N0YW1wJywgRGF0ZS5ub3coKS50b1N0cmluZygpKVxufVxuXG52YXIge1xuICAgIHNhdmVfZGF5X3NheV9jYWNoZSxcbiAgICBnZXRfYV9ub2RlLFxuICAgIGdldF9yYW5kb21faWNvblxufSA9ICQucmVxdWlyZSgnaGlrZXI6Ly9wYWdlL0FQSScpXG52YXIge1xuICAgIHN0eWxlX2NvbG9yXG59ID0gJC5yZXF1aXJlKCdoaWtlcjovL3BhZ2UvRGVidWcnKVxuXG5cblxudmFyIGFfbm9kZV9hcnIgPSBnZXRfYV9ub2RlKClcblxudmFyIGFfbm9kZV9yZXMgPSBhX25vZGVfYXJyWzFdXG5cbnZhciBhX25vZGVfbGlzdCA9IGFfbm9kZV9yZXMuc3BsaXQoJ1xcbicpXG5cbi8vIOavj+aXpeS4gOWPpVxubGV0I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