xiaomianao666

小程序:巨魔

May 9th, 2024
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@巨魔@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuW3qOmtlCIsImF1dGhvciI6IkBMb3lEZ0lrIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnljbGFzcyIsInZlcnNpb24iOjAsImNvbF90eXBlIjoiaWNvbl9yb3VuZF80IiwiY2xhc3NfbmFtZSI6IummlumhtSbmianlsZUm57u85ZCIIiwidHlwZSI6ImFsbCIsImNsYXNzX3VybCI6IummlumhtSbmianlsZUm57u85ZCIIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5sZXQgc3AgPSAoaXQsIHMsIGUpID0+IFN0cmluZyhpdC5zcGxpdChzKVsxXSkuc3BsaXQoZSlbMF07XG5sZXQgZCA9IFtdO1xuXG5pZiAoTVlfQ0xBU1NfVVJMID09PSBcIummlumhtVwiKSB7XG4gICAgbGV0IHNvdXJjZSA9IGZldGNoKFwiaHR0cDovL2FwaS54a2ExLnRvcC9xaWV6aS9zaG91eWUudHh0XCIsIHtcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgJ2NvbnRlbnQtdHlwZSc6ICdjaGFyc2V0PUdCSydcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgZnVuY3Rpb24gZ2V0Vmlldyh0aXRsZSwgdHlwZSkge1xuICAgICAgICBpZiAodHlwZSA9PT0gXCLlv6vnjKtcIikge1xuICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9wYWdlL2t1YWltYW8udj9wYWdlPWZ5cGFnZVwiO1x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XRhLmRhdGE7XFxuICAgIGZvciAobGV0IGl0IG9mIGxpc3QpIHtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IGl0LnVwZGF0ZV9hdCArIFxcXCJcXFxcblxcXCIgKyBpdC52aWRlb19uYW1lLFxcbiAgICAgICAgICAgIHBpY191cmw6IGl0LmltYWdlLFxcbiAgICAgICAgICAgIHVybDogaXQudmlkZW9faWQrbGF6eSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogXFxcInBpY18yX2NhcmRcXFwiLFxcbiAgICAgICAgICAgIGV4dHJhOntcXG4gICAgICAgICAgICAgICAgaW5oZXJpdFRpdGxlOiBmYWxzZVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICB9XFxufSBjYXRjaCAoZSkge1xcblxcbn1cXG5zZXRSZXN1bHQoZCk7XCJ9XSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment