Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@51萝莉@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiNTHokJ3ojokiLCJhdXRob3IiOiLmtYHoi48mVGltaWsiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyN7XCJvYXV0aF9pZFwiOlwiOTJlNjNkYWMyZTk4NzU5ZWI2NmRkZWRhMGI5Y2Q3NGJcIixcImJ1bmRsZV9pZFwiOlwiY29tLjdkdS5jbi5vcmdcIixcIm9hdXRoX3R5cGVcIjpcIndlYlwiLFwidmVyc2lvblwiOlwiNC4xLjBcIixcImxhbmd1YWdlXCI6XCJ6aFwiLFwidmlhXCI6XCJwd2FcIixcInBhZ2VcIjpmeXBhZ2UsXCJsaW1pdFwiOjMwLFwiaWRcIjpmeWNsYXNzLFwic29ydFwiOlwiZnlhcmVhXCJ9IiwidmVyc2lvbiI6MSwiY29sX3R5cGUiOiJtb3ZpZV8yIiwiY2xhc3NfbmFtZSI6IuaOqOiNkCbnpo/liKnlp6wm5Yqo5ryr5qyh5YWDJuS5seS8puemgeeIsSbnvZHpu4Tlq6nmqKEm5Y6f5Yib5Lyg5aqSJuWbveS6p+ebtOaSrSbliLbmnI3or7Hmg5Em5pel5pysQVYm5byC5Zu96aOO5oOFIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiMSY0JjcmMTAmMyYyJjYmOSY1JjgiLCJhcmVhX25hbWUiOiLmnIDmlrAm5pyA54OtIiwiYXJlYV91cmwiOiJuZXcmaG90Iiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmlmIChNWV9QQUdFID09IDEpIHtcbiAgICBkLnB1c2goe8KgwqDCoFxuICAgICAgICB0aXRsZTogXCLmkJzntKJcIixc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wb3J0UGFja2FnZShcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmNvbS5leGFtcGxlLmhpa2Vydmlldy51dGlscyxcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmphdmEubGFuZyxcXG4gICAgICAgICAgICAgICAgICAgIFBhY2thZ2VzLmphdmEuc2VjdXJpdHksXFxuICAgICAgICAgICAgICAgICAgICBQYWNrYWdlcy5qYXZhLnV0aWwsXFxuICAgICAgICAgICAgICAgICAgICBQYWNrYWdlcy5qYXZhLmlvLFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YS50ZXh0LFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YXguY3J5cHRvLFxcbiAgICAgICAgICAgICAgICAgICAgUGFja2FnZXMuamF2YXguY3J5cHRvLnNwZWMsXFxuICAgICAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgICAgIHdpdGgoamF2YUltcG9ydCkge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IGJ5dGVzID0gRmlsZVV0aWwudG9CeXRlcyhpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBkZWNyeXB0RGF0YShiQXJyKSB7XFxuXFx0XFx0ICAgIGlmKC9CQC8udGVzdChcXFwiJHtrZXl9XFxcIikpe1xcbiAgICAgIFxcdFxcdFxcdHZhciBzZWNyZXRLZXlTcGVjID0gbmV3IFNlY3JldEtleVNwZWMoU3RyaW5nKFxcXCIke2tleX1cXFwiKSwgXFxcIiR7YX1cXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgIFxcdHZhciBpdlBhcmFtZXRlclNwZWMgPSBuZXcgSXZQYXJhbWV0ZXJTcGVjKFN0cmluZyhcXFwiJHtpdn1cXFwiKSk7XFxuXFx0XFx0ICAgIH1lbHNle1xcblxcdFxcdCAgICBcXHR2YXIgc2VjcmV0S2V5U3BlYyA9IG5ldyBTZWNyZXRLZXlTcGVjKFN0cmluZyhcXF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