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