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