Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@哔哩有声@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5ZOU5ZOp5pyJ5aOwIiwiYXV0aG9yIjoi57yY5YiGIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnljbGFzcyMjZnlwYWdlIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8yIiwiY2xhc3NfbmFtZSI6IuacieWjsOWwj+ivtCbmnInlo7DmvKvnlLsm5bm/5pKt5YmnJue7j+WFuOiAgeatjCbpn7PkuZDmjqjojZAiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiLmnInlo7DlsI/or7Qm5pyJ5aOw5ryr55S7JuW5v+aSreWJpybpn7PkuZDmjqjojZAm6Z+z5LmQ5o6o6I2QIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5meWNsYXNzID0gTVlfVVJMLnNwbGl0KFwiIyNcIilbMV1cbnZhciBkID0gW107XG52YXIgbGlzdCA9ICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9hcGlcIikuZ2V0U2VhcmNoUmVzKCd2aWRlbycsZnljbGFzcyxNWV9QQUdFLDQwKTtcbiAgICBcbiAgICBsaXN0LnJlc3VsdC5mb3JFYWNoKGRhdGEgPT4geyAgICAgICBcbiAgICAgICAgdGl0bGUgPSBkYXRhLnRpdGxlLnJlcGxhY2UoLzxlbSBjbGFzcz1cXFwia2V5d29yZFxcXCI+L2csICcnKS5yZXBsYWNlKC88XFwvZW0+L2csICcnKVxuICAgICAgICBcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiB0aXRsZSxcbiAgICAgICAgICA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q3mlL4nKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oTVlfSE9NRSwgJzAnKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGlucHV0ID09ICfop4bpopHmkq3mlL4nKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oTVlfSE9NRSwgJzEnKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+aooeW8j+W3suWIh+aNoic7XG4gICAgICAgICAgICB9LCBNWV9IT01FKVxuICAgICAgICB9LCBNWV9IT01FKSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1cicsXG4gICAgICAgICAgICBleHRyYToge2dyYWRpZW50OiB0cnVlfVxuICAgICAgICB9KVxufSBjYXRjaCAoZSkge31cbiBkLnB1c2goe1xuICAgICAgICB0aXRsZTogKGdldFZhcignc2hzb3J0JykgPT0gJzEnKSA/ICfigJzigJzigJ3igJ08Yj48c3BhbiBzdHlsZT1cImNvbG9yOiAjRkYwMDAwXCI+6YCG5bqPPC9zcGFuPjwvYj4nIDogJ+KAnOKAnOKAneKAnTxiPjxzcGFuIHN0eWxlPVwiY29sb3I6ICMxYWFkMTlcIj7mraPluo88L3NwYW4+PC9iPicsXG4gICAgICAgIHVybDogYEBsYXp5UnVsZT0uanM6bGV0IGNvbmYgPSBnZXRWYXIoJ3Noc29ydCcpO2lmKGNvbmY9PScxJyl7cHV0VmFyKHtrZXk6J3Noc29ydCcsIHZhbHVlOicwJ30pO31lbHNle3B1dFZhcih7a2V5OidzaHNvcnQnLCB2YWx1ZTonMSd9KX07cmVmcmVzaFBhZ2UoKTsndG9hc3Q6Ly/liIfmjaLmjpLluo/miJDlip8nYCxcbiAgICAgICAgY29sX3R5cGU6ICdmbGV4X2J1dHRvbidcbiAgICB9KVxudmFyIGxpc3QgPSBodG1scy5wYWdlc1xuaWYgKGdldFZhcignc2hzb3J0JykgPT0gJzEnKSB7XG4gICAgICAgIHZhciBsaXN0ID0gbGlzdC5yZXZlcnNlKCk7XG4gICAgfVxuXG52YXIgYXZpZCA9IGh0bWxzLmFpZFxudHJ5IHtcbiAgICBsaXN0LmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogZGF0YS5wYXJ0LFxuICAgICAgICAgICAgLy9kZXNjOiBkYXRhLnZvZF9yZW1hcmtzLFxuICAgICAgICAgICAgLy9pbWc6IGRhdGEuZmlyc3RfZnJhbWUgKyAnQFJlZmVyZXI9JyxcbiAgICAgICAgICAgIHVybDogJ2h0dHBzOi8vYXBpLmJpbGliaWxpLmNvbS94L3BsYXllci9wbGF5dXJsP2F2aWQ9JythdmlkKycmY2lkPScrZGF0YS5jaWQrJyZxbj0xNiZ0eXBlPW1wNCZwbGF0Zm9ybT1odG1sNScgKyAkKFwiXCIpLmxhenlSdWxlKChNWV9IT01FKSA9PiB7XG4gICB2YXIgdXJsID0gSlNPTi5wYXJzZShyZXF1ZXN0KGlucHV0KSkuZGF0YS5kdXJsWzBdLnVybDtcbnN3aXRjaCAoZ2V0SXRlbShNWV9IT01FLCAnMCcpKSB7XG4gICAgICAgICAgICBjYXNlICcwJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gdXJsKycjaXNNdXNpYz10cnVlIydcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJzEnOiAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIHJldHVybiB1cmw7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH0gICAgICAgXG59LCBNWV9IT01FKSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8zJyxcbiAgICAgICAgfSlcbiAgICB9KVxufSBjYXRjaCAoZSkge31cbnNldFJlc3VsdChkKSIsInNkZXRhaWxfY29sX3R5cGUiOiJtb3ZpZV8xIiwic2RldGFpbF9maW5kX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udGVudCA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHBzOi8vYXBpLmJpbGliaWxpLmNvbS94L3dlYi1pbnRlcmZhY2UvbmF2Jywge1xcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgXFxcIlVzZXItQWdlbnRcXFwiOiBQQ19VQSxcXG4gICAgICAgICAgICAgICAgXFxcIlJlZmVyZXJcXFwiOiBcXFwiaHR0cHM6Ly93d3cuYmlsaWJpbGkuY29tL1xcXCJcXG4gICAgICAgICAgICB9LFxcbiAgICAgICAgICAgIG1ldGhvZDogJ0dFVCdcXG4gICAgICAgIH0pKS5kYXRhO1xcbiAgICAgICAgaW1nX3VybCA9IGpzb25fY29udGVudC53YmlfaW1nLmltZ191cmw7XFxuICAgICAgICBzdWJfdXJsID0ganNvbl9jb250ZW50LndiaV9pbWcuc3ViX3VybDtcXG4gICAgICAgIHJldHVybiB7XFxuICAgICAgICAgICAgaW1nX2tleTogaW1nX3VybC5zdWJzdHJpbmcoaW1nX3VybC5sYXN0SW5kZXhPZignLycpICsgMSwgaW1nX3VybC5sZW5ndGgpLnNwbGl0KCcuJylbMF0sXFxuICAgICAgICAgICAgc3ViX2tleTogc3ViX3VybC5zdWJzdHJpbmcoc3ViX3VybC5sYXN0SW5kZXhPZignLycpICsgMSwgc3ViX3VybC5sZW5ndGgpLnNwbGl0KCcuJylbMF1cXG4gICAgICAgIH1cXG4gICAgfVxcblxcbiAgICBjb25zdCB3Ymlfa2V5cyA9IGdldFdiaUtleXMoKTtcXG5cXG4gICAgY29uc3QgcXVlcnkgPSBlbmNXYmkoXFxuICAgICAgICBxdWVyeUpzb24sXFxuICAgICAgICB3Ymlfa2V5cy5pbWdfa2V5LFxcbiAgICAgICAgd2JpX2tleXMuc3ViX2tleVxcbiAgICApO1xcbiAgICByZXR1cm4gcXVlcnk7XFxufVxcblxcblwifV0iLCJpY29uIjoiaHR0cHM6Ly9pbWcwMS5zb2dvdWNkbi5jb20vdjIvdGh1bWIvcmV0eXBlX2V4Y2x1ZGVfZ2lmL2V4dC9hdXRvL3EvNzkvY3JvcC94eS9haS93LzEyOC9oLzEyOC9yZXNpemUvdy8xMjg/dXJsPWh0dHAlM0ElMkYlMkZwcC5teWFwcC5jb20lMkZtYV9pY29uJTJGMCUyRmljb25fNzM2MjJfMTY5MTU3NTE1NCUyRjI1NiZhcHBpZD0yMDEwMDMmc2lnbj1jMWZhZWE4YjViYTdiYzMzNTdlMTU0ZmQxYzgzZGYzMiIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment