Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@观察者@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuinguWvn+iAhSIsImF1dGhvciI6Inh4cyIsInVybCI6Imhpa2VyOi8vZW1wdHkjZnlwYWdlI2Z5QWxsI2h0dHBzOi8vd3d3Lmd1YW5jaGEuY24iLCJ2ZXJzaW9uIjo0LCJjb2xfdHlwZSI6Im1vdmllXzFfbGVmdF9waWMiLCJjbGFzc19uYW1lIjoi6aaW6aG1JuaXtuivhCbmnIvlj4vlnIgm5rua5YqoJuWbvemZhSbotKLnu48m5Yab5LqLJuenkeaKgCbkuqfnu48iLCJ0eXBlIjoibmV3cyIsImNsYXNzX3VybCI6IjEmMiYzJjQmR3VvSmnCt1poYW5MdWUmQ2FpSmluZyZKdW5TaGkmR29uZ1llwrdLZUppJkNoYW5KaW5nIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgcmVzID0ge307XG52YXIgZCA9IFtdO1xuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoXCJoaWtlcjovL3BhZ2UvdXNlc1wiKSkucnVsZSk7XG52YXIgcGFnZSA9IE1ZX1VSTC5zcGxpdCgnIycpWzFdO1xudmFyIGNsYXNzaWZpY2F0aW9uID0gTVlfVVJMLnNwbGl0KCcjJylbMl07XG52YXIgbVVybCA9IE1ZX1VSTC5zcGxpdCgnIycpWzNdO1xudHJ1ZV91cmwgPSAnJztcbi8vY2xhc3NpZmljYXRpb24gPU1ZX1VSTC5tYXRjaCgvbmV3c3R5cGU9KFxcZCspLylbMV07XG5pZiAoL1xcZC8udGVzdChjbGFzc2lmaWNhdGl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IGRhdGUuZ2V0U2Vjb25kcygpO1xcbiAgICAgICAgLy/lsI/kuo4xMOeahOWcqOWJjemdouihpTBcXG4gICAgICAgIGlmIChNIDwgMTApIHtcXG4gICAgICAgICAgICAgICAgTSA9ICcwJyArIE07XFxuICAgICAgICB9XFxuICAgICAgICBpZiAoRCA8IDEwKSB7XFxuICAgICAgICAgICAgICAgIEQgPSAnMCcgKyBEO1xcbiAgICAgICAgfVxcbiAgICAgICAgaWYgKEggPCAxMCkge1xcbiAgICAgICAgICAgICAgICBIID0gJzAnICsgSDtcXG4gICAgICAgIH1cXG4gICAgICAgIGlmIChtIDwgMTApIHtcXG4gICAgICAgICAgICAgICAgbSA9ICcwJyArIG07XFxuICAgICAgICB9XFxuICAgICAgICBpZiAocyA8IDEwKSB7XFxuICAgICAgICAgICAgICAgIHMgPSAnMCcgKyBzO1xcbiAgICAgICAgfVxcbiBcXG4gICAgICAgIGQgPSB0aW1lTm93IC0gcHVibGlzaFRpbWU7XFxuICAgICAgICBkX2RheXMgPSBwYXJzZUludChkIC8gODY0MDApO1xcbiAgICAgICAgZF9ob3VycyA9IHBhcnNlSW50KGQgLyAzNjAwKTtcXG4gICAgICAgIGRfbWludXRlcyA9IHBhcnNlSW50KGQgLyA2MCk7XFxuICAgICAgICBkX3NlY29uZHMgPSBwYXJzZUludChkKTtcXG4gXFxuICAgICAgICBpZiAoZF9kYXlzID4gMCAmJiBkX2RheXMgPCAzKSB7XFxuICAgICAgICAgICAgICAgIHJldHVybiBkX2RheXMgKyAn5aSp5YmNJztcXG4gICAgICAgIH0gZWxzZSBpZiAoZF9kYXlzIDw9IDAgJiYgZF9ob3VycyA+IDApIHtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIGRfaG91cnMgKyAn5bCP5pe25YmNJztcXG4gICAgICAgIH0gZWxzZSBpZiAoZF9ob3VycyA8PSAwICYmIGRfbWludXRlcyA+IDApIHtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIGRfbWludXRlcyArICfliIbpkp/liY0nO1xcbiAgICAgICAgfSBlbHNlIGlmIChkX3NlY29uZHMgPCA2MCkge1xcbiAgICAgICAgICAgICAgICBpZiAoZF9zZWNvbmRzIDw9IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ+WImuWImic7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRfc2Vjb25kcyArICfnp5LliY0nO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICB9IGVsc2UgaWYgKGRfZGF5cyA+PSAzICYmIGRfZGF5cyA8IDMwKSB7XFxuICAgICAgICAgICAgICAgIHJldHVybiBNICsgJy0nICsgRCArICcgJyArIEggKyAnOicgKyBtO1xcbiAgICAgICAgfSBlbHNlIGlmIChkX2RheXMgPj0gMzApIHtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIFkgKyAnLScgKyBNICsgJy0nICsgRCArICcgJyArIEggKyAnOicgKyBtO1xcbiAgICAgICAgfVxcbn1cXG4gXFxuZnVuY3Rpb24gZ2V0RGF0ZVRpbWVTdGFtcChkYXRlU3RyKSB7XFxuICAgICAgICAgIC8vIOWmguaenOaXtumXtOagvOW8j+S4ujIwMjAvMDcvMDkgMjE6NDM6MTkuMDAwICDpnIDopoHljrvmjokuMDAwIOS4jeeEtmlvc+WSjGZpcmVmb3jkvJrmnInpl67pophcXG5yZXR1cm4gRGF0ZS5wYXJzZShkYXRlU3RyLnJlcGxhY2UoLy0vZ2ksIFxcXCIvXFxcIikpO1xcbn3jgIDjgIBcXG5cXG4vL2NvbnNvbGUubG9nKHRoaXMuZ2V0RGF0ZURpZmYoXFxcIjIwMjAtMDctMDMgMTA6MDM6MTkuMDAwXFxcIikpO1wifV0iLCJpY29uIjoiaHR0cDovLzQ3LjEwNS43OS4yNDUvZ3VhbmNoYS5qcGciLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment