xiaomianao666

小程序:雏鸟

Aug 15th, 2022
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@雏鸟@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6ZuP6bifIiwiYXV0aG9yIjoiQExveURnSWsiLCJ1cmwiOiJoaWtlcjovL2VtcHR5I2Z5cGFnZSIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmNvbnN0IGltYWdlID0gJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL2ltYWdlXCIpO1xuLy9pbWFnZS5pbWFnZURlY3J5cHQoXCJodHRwOi8vY25jZG4ua2Fmb28ubGl2ZS9pZy90eXBlLzA2MTIwOS8zY2ZhZWEwYzMzYjZmYzZiLmNlYlwiKTtcbmNvbnN0IENyeXB0byA9ICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9DcnlwdG9cIik7XG5jb25zdCBhcGkgPSAkLnJlcXVpcmUoXCJoaWtlcjovL3BhZ2UvQVBJXCIpO1xuXG5sZXQgcmVjb21tZW5kID0gYXBpLnBvc3RBcGkoXCJ2aWRlby9ob21lL3JlY29tbWVuZFwiLCB7XG4gICAgXCJwYWdlXCI6IE1ZX1BBR0UgKyBcIlwiLFxuICAgIFwicGFnZV9zaXplXCI6IFwiNlwiXG59KTtcbmxldCBkID0gW107XG50cnkge1xuICAgIHJlY29tbWVuZCA9IEpTT04ucGFyc2UoQ3J5cHRvLmFlc0RlY3J5cHQocmVjb21tZW5kLmRhdGEpKTtcbn0gY2F0Y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