Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@一起草@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5LiA6LW36I2JIiwiYXV0aG9yIjoiUiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHA6Ly8xN2MuY29tLyMjZnlwYWdlIiwidmVyc2lvbiI6MjAyMzEyMjQsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbiAgICAgICAgcmMoJ2h0dHBzOi8vZ2hwcm94eS5uZXQvaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL21pc3R5d2F0ZXIvaGlrZXIvbWFpbi9mJywgMjQpO1xuICAgICAgICB2YXIgZCA9IFtdO1xuICAgICAgICB2YXIgaG9zdCA9IGNvbmZpZy5ob3N0O1xuICAgICAgICBjb25zdCBwYWdlID0gTVlfUEFHRTtcbiAgICAgICAgdmFyIGRhdGEgPSBbe1xuICAgICAgICAgICAgdGl0bGU6ICfpppbpobUm5ZCD55OcJuWOn+WImyZBSeaNouiEuCbkuLvmkq0m5Zu95Lqn5Li75pKtJumfqeWbveS4u+aSrSZBVuino+ivtCcsXG4gICAgICAgICAgICBpZDogJzAmOTkmNDAmNiY3JjfvvIbvvIZjYXRlZ29yeV9jaGlsZF9pZD0zNyY377yG77yGY2F0ZWdvcnlfY2hpbGRfaWQ9MzYmOCdcbiAgICAgICAgfSwge1xuICAgICAgICAgICAgdGl0bGU6ICflm73kuqcm5YG35ouN6Ieq5ouNJue9kee6ouaYjuaYnybph43no4Xms4Tlr4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gICAgICAgICAgY29sX3R5cGU6ICdjYXJkX3BpY18xJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgIH1lbHNle1xuICAgICAgICB2YXIgbGlzdCA9IHBkZmEoaHRtbCwgJ2JvZHkmJi5yYW4tYm94PmRpdjpoYXMoLnJhbmstYSknKTtcbiAgICAgICAgbGlzdC5mb3JFYWNoKChsaXN0LCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogcGRmaChsaXN0LCAnLnJhbmstdGl0bGUmJlRleHQnKSxcbiAgICAgICAgICAgICAgICBkZXNjOiBwZGZoKGxpc3QsICcubWFza19pbmZvPmRpdiYmVGV4dCcpICsgJ1xcdFxcdFxcdFxcdFxcdFxcdFxcdFxcdFxcdFxcdFxcdCcgKyBwZGZoKGxpc3QsICcucHJlLXRpbWUmJlRleHQnKSxcbiAgICAgICAgICAgICAgICBpbWc6IHBkKGxpc3QsICdpbWcmJmRhdGEtc3JjJykraW1hZ2UsXG4gICAgICAgICAgICAgICAgdXJsOiAkKHBkKGxpc3QsICdhJiZocmVmJykpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSByZXF1ZXN0KGlucHV0KS5tYXRjaCgvaHR0cHM/OlxcL1xcL1xcUytcXC5tM3U4LylbMF1cbiAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IGh0bWw7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1bmVzY2FwZSh1cmwpXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8yJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgIH1cblxuICAgICAgICBcbiBzZXRSZXN1bHQoZCkiLCJzZWFyY2hfdXJsIjoiaGlrZXI6Ly9lbXB0eSMjc2VhcmNoLzEuaHRtbD9rZXl3b3JkPSoqJnBh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