Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@水果派@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5rC05p6c5rS+IiwiYXV0aG9yIjoi5rWB6IuPIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMje1wiYnVuZGxlX2lkXCI6XCJjb20uc2dwLnh4eC5vcmdcIixcImxpbWl0XCI6XCIxNVwiLFwib2F1dGhfdHlwZVwiOlwid2ViXCIsXCJwX3R5cGVcIjpcIjFcIixcIm9hdXRoX2lkXCI6XCJiYWU3ODA5NTYxMWMxNjM4ZDQ2NjQ2MzhjNjE2NDQ2NVwiLFwibGFuZ3VhZ2VcIjpcInpoXCIsXCJwYWdlXCI6XCJmeXBhZ2VcIixcInZlcnNpb25cIjpcIjEuMC4wXCIsXCJ2aWFcIjpcInB3YVwiLFwidG9rZW5cIjpcIlwifSIsInZlcnNpb24iOjEsImNvbF90eXBlIjoibW92aWVfMiIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczogXG52YXIgZCA9IFtdO1xuaWYgKE1ZX1BBR0UgPT0gMSkge1xuICAgIGQucHVzaCh7wqDCoMKgXG4gICAgICAgIHRpdGxlOiBcIuaQnOe0olwiLFxuICAgICAgICDCoMKgwqB1cmw6IFwiJ2hpa2VyOi8vc2VhcmNoP3M9JytpbnB1dCsnJnJ1bGU9JysgTVlfUlVMRS50aXRsZVwiLFxuICAgICAgICDCoMKgwqBkZXNjOiBcIuivt+i+k+WFpeaQnOe0ouWFs+mUruivjVwiLFxuICAgICAgICDCoMKgwqBjb2xfdHlwZTogXCJpbnB1dFwiLFx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iYzJmYmUxJztcXG5mdW5jdGlvbiBpbWdEZWMoa2V5LGl2LGEsYil7XFxuXFx0aWYoIWIpe1xcbiBcXHRcXHRiPSdQS0NTNVBhZGRpbmcnO1xcbiBcXHR9XFxuICAgIFxcdHZhciBzc3MgPSBgXFxuICAgICAgICAgICAgZnVuY3Rpb24gaW1nRGVjcnlwdCgpIHtcXG4gICAgICAgICAgICAgICAgdmFyIGphdmFJbXBvcnQgPSBuZXcgSmF2YUltcG9ydGVyKCk7XFxuICAgICAgICAgICAgICAgIGphdmFJbXBvcnQuaW1wb3J0UGFja2FnZShcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmNvbS5leGFtcGxlLmhpa2Vydmlldy51dGlscyxcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmphdmEubGFuZyxcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmphdmEuc2VjdXJpdHksXFxuICAgICAgICAgICAgICAgICAgICBQYWNrYWdlcy5qYXZhLnV0aWwsXFxuICAgICAgICAgICAgICAgICAgICBQYWNrYWdlcy5qYXZhLmlvLFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YS50ZXh0LFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YXguY3J5cHRvLFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YXguY3J5cHRvLnNwZWMsXFxuICAgICAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgICAgIHdpdGgoamF2YUltcG9ydCkge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IGJ5dGVzID0gRmlsZVV0aWwudG9CeXRlcyhpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBkZWNyeXB0RGF0YShiQXJyKSB7XFxuXFx0XFx0ICAgIGlmKC9CQC8udGVzdChcXFwiJHtrZXl9XFxcIikpe1xcbiAgICAgIFxcdFxcdFxcdHZhciBzZWNyZXRLZXlTcGVjID0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oL1xcXFwvXFxcXC8uKnBsYXlcXFxcLi8sJy8vbG9uZy4nKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3BpY18xJyxcXG4gICAgICAgIH0pO1xcbmlmKEpTT04ucGFyc2UoaHRtbDIpLm1zZyE9J+inhumikeS4jeWtmOWcqCcpe1xcbnZhciBsaXN0ID0gSlNPTi5wYXJzZShodG1sMikuZGF0YTtcXG52YXIgdGl0bGUgPSBsaXN0LnRpdGxlO1xcbnZhciB1cmwwID0gbGlzdC5wbGF5X3VybDtcXG5kLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiAn5Y6f54mHJyxcXG4gICAgICAgICAgIGltZzogY292ZXIgKyBsYXp5LFxcbiAgICAgICAgICAgLy8gaW1nOiBjb3ZlciArICAnQGpzPScgKyBpbWdEZWMoa2V5LCBpdiwgJ0FFUycpLFxcbiAgICAgICAgICAgZGVzYzogdGl0bGUsXFxuICAgICAgICAgICAgdXJsOiB1cmwwLnJlcGxhY2UoL1xcXFwvXFxcXC8uKnBsYXlcXFxcLi8sJy8vbG9uZy4nKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3BpY18xJyxcXG4gICB9KVxcbn1cXG5zZXRSZXN1bHQoZClcIn1dIiwiaWNvbiI6IiIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment