Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@听首音乐吧@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5ZCs6aaW6Z+z5LmQ5ZCnIiwiYXV0aG9yIjoi57yY5YiGIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cHM6Ly9hcGkudHlodWEudG9wL3RvcC9meUFsbCZsaW1pdD0zMCZvZmZzZXQ9ZnlwYWdlQC0xQCozMEAmIiwidmVyc2lvbiI6NSwiY29sX3R5cGUiOiJjYXJkX3BpY18zIiwiY2xhc3NfbmFtZSI6IuatjOWNlSbmrYzmiYsm5o6S6KGM5qacIiwidHlwZSI6Im11c2ljIiwiY2xhc3NfdXJsIjoicGxheWxpc3Q/Y2F0PeWFqOmDqOatjOWNlSZwbGF5bGlzdD9jYXQ9Z3MmcGxheWxpc3Q/Y2F0PXBoYiIsImFyZWFfbmFtZSI6IuacgOaWsCbljY7or60m5qyn576OJumfqeWbvSbml6XmnKwiLCJhcmVhX3VybCI6InNvbmc/dHlwZT0wJnNvbmc/dHlwZT03JnNvbmc/dHlwZT05NiZzb25nP3R5cGU9MTYmc29uZz90eXBlPTgiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9IFtdO1xuTVlfVVJMID0gTVlfVVJMLnJlcGxhY2UoJ2hpa2VyOi8vZW1wdHkjIycsICcnKVxudmFyIHBhZ2UgPSBNWV9VUkwuc3BsaXQoJz0nKVszXVxudmFyIGxhenkgPSAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgdmFyIGlkID0gaW5wdXQubWF0Y2goL2lkPShcXGQrKS8pWzFdXG4gICAgdmFyIHVybCA9IEpTT04ucGFyc2UocmVxdWVzdChpbnB1dCwge30pKS5kYXRhWzBdLn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HtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhLmZlZSAhPSAxXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBsaXN0LmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogZGF0YS5hclswXS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltZzogZGF0YS5hbC5waWNVcmwgKyAnP3BhcmFtPTE4MHkyODAnKyAnQFJlZmVyZXI9JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICdodHRwczovL2FwaS50eWh1YS50b3Avc29uZy91cmwvdjE/aWQ9JyArIGRhdGEuaWQgKyAnJmxldmVsPWV4aGlnaCcgKyBsYXp5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge31cbiAgICAgICAgICAgIH0gZWxzZVxuICAgICAgICAgICAgaWYgKG5hbWUgPT0gJ+inhumikScpIHtcbiAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UoaHRtbCkucmVzdWx0Lm12c1xuICAgICAgICAgICAgICAgICAgICBsaXN0LmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogZGF0YS5hcnRpc3ROYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltZzogZGF0YS5jb3ZlciArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogJ2h0dHBzOi8vYXBpLnR5aHVhLnRvcC9tdi91cmw/aWQ9JyArIGRhdGEuaWQgKyAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBKU09OLnBhcnNlKHJlcXVlc3QoaW5wdXQsIHt9KSkuZGF0YS51cmxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge31cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNldFJlc3VsdChkKTtcbiAgICAgICAgfSwgc291cmNlLm5hbWUsIHNvdXJjZS51cmwsIGxhenkpXG4gICAgfTtcbn0pXG5zZXRSZXN1bHQoW3tcbiAgICB0aXRsZTogXCLngrnmiJHlvIDlp4vogZrmkJxcIixcbiAgICB1cmw6IFwiaGlrZXI6Ly9zZWFyY2g/cz1cIiArIGdldFBhcmFtKFwia2V5XCIpLFxuICAgIGV4dHJhOiB7XG4gICAgICAgIHJ1bGVzOiAkLnRvU3RyaW5nKChydWxlcykgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHJ1bGVzXG4gICAgICAgIH0sIHJ1bGVzKVxuICAgIH1cbn1dKSIsImRldGFpbF9jb2xfdHlwZSI6ImF2YXRhciIsImRldGFpbF9maW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5hZGRMaXN0ZW5lcignb25DbG9zZScsICQudG9TdHJpbmcoKCkgPT4ge1xuICAgIGNsZWFyTXlWYX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AgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtID09IGdldE15VmFyKCdtb2RlcycsICfmrYzmm7InKSA/IHh5IDogaXRlbSxcbiAgICAgICAgICAgICAgICAvL2ltZzogaXRlbVsxXSxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKFwibW9kZXNcIiwgdGEpXG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKClcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiXG4gICAgICAgICAgICAgICAgfSwgaXRlbSksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzInLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgfVxufVxuaWYgKC9zb25ncy8udGVzdChNWV9VUkwpKSB7XG4gICAgZmwoKVxuICAgIHZhciBtb2RlcyA9IGdldE15VmFyKFwibW9kZXNcIiwgXCLmrYzmm7JcIik7XG4gICAgaWYgKG1vZGVzID09IFwi5q2M5puyXCIpIHtcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLnNvbmdzXG4gICAgICAgIHZhciBsaXN0ID0gbGlzdC5maWx0ZXIoZGF0YSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gZGF0YS5mZWUgIT0gMVxuICAgICAgICB9KTtcblxuICAgICAgICB0cnkge1xuICAgICAgICAgICAgbGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xuICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgIGRlc2M6IGRhdGEuYXJbMF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgaW1nOiBNWV9QQVJBTVMua2V5ICsgJz9wYXJhbT0yODB5MjgwJysgJ0BSZWZlcmVyPScsXG4gICAgICAgICAgICAgICAgICAgIHVybDogJ2h0dHBzOi8vYXBpLnR5aHVhLnRvcC9zb25nL3VybC92MT9pZD0nICsgZGF0YS5pZCArICcmbGV2ZWw9ZXhoaWdoJyArIGxhenksXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnJyxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfSBjYXRjaCAoZSkge31cbiAgICB9XG4gICAgaWYgKG1vZGVzID09IFwi6KeG6aKRXCIpIHtcbiAgICAgICAgdmFyIGlkID0gTVlfVVJMLm1hdGNoKC9pZD0oXFxkKykvKVsxXVxuICAgICAgICB2YXIgcGFnZSA9IE1ZX1VSTC5tYXRjaCgvb2Zmc2V0PShcXGQrKS8pWzFdXG4gICAgICAgIHZhciBsaXN0ID0gSlNPTi5wYXJzZShyZXF1ZXN0KCdodHRwczovL2FwaS50eWh1YS50b3AvYXJ0aXN0L212P2lkPScgKyBpZCArICcmbGltaXQ9NTAmb2Zmc2V0PScgKyBwYWdlLCB7fSkpLm12c1xuICAgICAgICBsaXN0LmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLm5hbWUsXG4gICAgICAgICAgICAgICAgZGVzYzogZGF0YS5wdWJsaXNoVGltZSxcbiAgICAgICAgICAgICAgICBpbWc6IGRhdGEuaW1ndXJsICsgJz9wYXJhbT00NjB5MjgwJysgJ0BSZWZlcmVyPScsXG4gICAgICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9hcGkudHlodWEudG9wL212L3VybD9pZD0nICsgZGF0YS5pZCArICQoJycpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IEpTT04ucGFyc2UocmVxdWVzdChpbnB1dCwge30pKS5kYXRhLnVybFxuICAgICAgICA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aW9uKTtcbiAgICBpZiAoaXNVcGRhdGUpIHtcbiAgICAgICAgbG9nKCfmnInmlrDniYjmnKw6JyArIG5ld1ZlcnNpb24gKyAnLOW9k+WJjTonICsgbXlWZXJzaW9uKTtcbiAgICAgICAgY29uZmlybSh7XG4gICAgICAgICAgICB0aXRsZTogJ+abtOaWsOaPkOekuicsXG4gICAgICAgICAgICBjb250ZW50OiAn5qOA5rWL5Yiw5L2g55qE6KeE5YiZ54mI5pys5bCP5LqO5pyN5Yqh5Zmo54mI5pys77yM5piv5ZCm56uL5Y2z5pu05paw77yfJyxcbiAgICAgICAgICAgIGNvbmZpcm06ICQudG9TdHJpbmcoKHVwbGluaykgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBg5rW36ZiU6KeG55WM6aaW6aG16aKR6YGT6KeE5YiZ77+laG9tZV9ydWxlX3VybO+/pSR7dXBsaW5rfWBcbiAgICAgICAgICAgIH0sIHVwbGluayksXG4gICAgICAgICAgICBjYW5jZWw6ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBwdXRNeVZhcigncXgnLCAnMCcpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9KVxuICAgIH1cbn0iLCJwYWdlcyI6IltdIiwiaWNvbiI6Imh0dHBzOi8vbXVzaWMuc3RhcjguY24vaW1hZ2VzL2ljb25zL2Zhdmljb24tMzJ4MzIucG5nIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment