Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@星视界@eyJ0aXRsZSI6IuaYn+inhueVjCIsInR5cGUiOiJ2aWRlbyIsImF1dGhvciI6IkFyaXNlIiwidmVyc2lvbiI6MCwiZ3JvdXAiOiIiLCJpY29uIjoiIiwidWEiOiJtb2JpbGUiLCJwcm94eSI6IiIsInByZVJ1bGUiOiJyZWdpc3RlckROUyh7ICd3d3cuaGlzdGFyLnR2JzogJ2h0dHBzOi8vZG5zLmdvb2dsZS9kbnMtcXVlcnknIH0pXHJcbiIsImxhc3RfY2hhcHRlcl9ydWxlIjoiIiwidXJsIjoiaHR0cHM6Ly93d3cuaGlzdGFyLnR2LyIsImNsYXNzX25hbWUiOiIiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInllYXJfbmFtZSI6IiIsInllYXJfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJmaW5kX3J1bGUiOiJjb25zdCBoaXN0YXIgPSB7XHJcbiAgZW1wdHk6ICdoaWtlcjovL2VtcHR5JyxcclxuICB1cmw6ICdodHRwczovL3d3dy5oaXN0YXIudHYvJyxcclxuICBkOiBbXSxcclxuICBjYXRlZ29yeUNvbG9yOiAnIzFjYjk2ZicsXHJcbiAgcGFyYW1zOiB7XHJcbiAgICBjYXRlZ29yeTogZ2V0TXlWYXIoJ0hpc3Rhci50Zy5jYXRlZ29yeScsICdtb3ZpZScpLFxyXG4gICAgdHlwZTogZ2V0TXlWYXIoJ0hpc3Rhci50Zy50eXBlJywgJ21vdmllJyksXHJcbiAgICBuZXh0Q2F0ZTogZ2V0TXlWYXIoJ0hpc3Rhci50Zy5uZXh0Q2F0ZScsICdhbGwvYWxsL2FsbCcpLFxyXG4gIH0sXHJcbiAgZGF0YToge1xyXG4gICAgdHlwZTogW1xyXG4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ogUENfVUEsXHJcbiAgICAgICAgICAgICdvcmlnaW4nOiBoaXN0YXIudXJsLFxyXG4gICAgICAgICAgICAncmVmZXJlcic6IGhpc3Rhci51cmwsXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuXHJcbiAgICAgICAgY29uc3QgbW92aWVMaXN0ID0gSlNPTi5wYXJzZShyZXNKc29uKS5kYXRhLmxpc3RcclxuXHJcbiAgICAgICAgbW92aWVMaXN0LmZvckVhY2goKGl0ZW0pID0+IHtcclxuICAgICAgICAgIGhpc3Rhci5kLnB1c2goe1xyXG4gICAgICAgICAgICB0aXRsZTogaXRlbS5uYW1lLFxyXG4gICAgICAgICAgICBpbWc6IGl0ZW0uaW1nLFxyXG4gICAgICAgICAgICB1cmw6ICQoaGlzdGFyLnVybCsndm9kL2RldGFpbC8nK2l0ZW0uaWQrJyNpbW1lcnNpdmVUaGVtZSMnKS5ydWxlKCgpID0+IHtcclxuICAgICAgICAgICAgICBjb25zdCBoaXN0YXIgPSAkLnJlcXVpcmUoJ2hpa2VyOi8vcGFnZS9oaXN0YXInKVxyXG4gICAgICAgICAgICAgIGhpc3Rhci5tb3ZpZURldGFpbFBhcnNlKClcclxuICAgICAgICAgICAgICBzZXRSZXN1bHQoaGlzdGFyLmQpXHJcbiAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzNfbWFycXVlZScsXHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgIH0pXHJcblxyXG4gICAgICB9IGNhdGNoIChlKSB7XHJcbiAgICAgICAgbG9nKCfmlbDmja7moLzlvI/plJnor68nKVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfSxcclxuICBsaXZlVHlwZUNhdGVQYXJzZTogKCkgPT4ge1xyXG5cclxuICB9LFxyXG4gIG1vdmllRGV0YWlsUGFyc2U6ICgpID0+IHtcclxuICAgIGNvbnN0IGh0bWwgPSBnZXRSZXNDb2RlKClcclxuICAgIGNvbnN0IHN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