Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@GG51@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiR0c1MSIsImF1dGhvciI6IlIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL2dnNTEuY29tIyNmeXBhZ2UiLCJ2ZXJzaW9uIjoyMDIzMTIyNCwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuICAgICAgICByYygnaHR0cHM6Ly9naHByb3h5Lm5ldC9odHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vbWlzdHl3YXRlci9oaWtlci9tYWluL2YnLCAyNCk7XG4gICAgICAgIHZhciBkID0gW107XG4gICAgICAgIHZhciBob3N0ID0gY29uZmlnLmhvc3Q7XG4gICAgICAgIGNvbnN0IHBhZ2UgPSBNWV9QQUdFO1xuICAgICAgICB2YXIgZGF0YSA9IFt7XG4gICAgICAgICAgICB0aXRsZTogJ+aXpemfqSbkuK3mloflrZfluZUm5by6IOWluOi/t+WluCbpq5jmuIXml6Ag56CBJueGn+Wls+S6uiDlprsnLFxuICAgICAgICAgICAgaWQ6ICcyJjExJjE0JjEyJjEzJ1xuICAgICAgICB9LCB7XG4gICAgICAgICAgICB0aXRsZTogJ+WbveS6pybph43no4Xms4Tlr4Ym572R57qi5piO5pifJueDremXqOagoeWbrSblrrbluq3kubEg5LymJuWBtyDmi43oh6rmi40m57u/5bi95YG35oOFJyxcbiAgICAgICAgICAgIGlkOiAnMSY4JjI0JjMxJjMyJjUmNidcbiAgICAgICAg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cIuWIhlwiICsgc2Vjb25kcyAgKyBcIuenklwiXG59XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBwZGZoKGxpc3QsICcudGl0bGUmJlRleHQnKSxcbiAgICAgICAgICAgICAgICBkZXNjOiB0aW1lLFxuICAgICAgICAgICAgICAgIGltZzogcGQobGlzdCwgJ2ltZyYmZGF0YS1vcmlnaW5hbCcpLFxuICAgICAgICAgICAgICAgIHVybDogcGQobGlzdCwgJ2EmJmhyZWYnKSArICQoJycpLmxhenlSdWxlKChob3N0KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgdmFyIGggPSBmZXRjaChpbnB1dClcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNob25nID1wZGZoKGgsJ2h0bWwmJnNjcmlwdCYmSHRtbCcpLnNwbGl0KFwiXFxcIlwiKVsxXVxuICAgICAgICAgICAgICAgICAgICBsZXQgaHRtbCA9IGRlY29kZVVSSUNvbXBvbmVudChjaG9uZylcbiAgICAgICAgICAgICAgICAgICAgdmFyIHBsYXkgPSBodG1sLm1hdGNoKC9pbml0UGxheWVyXFwoXFxcIiguKm0zdTgpLylbMV0ucmVwbGFjZSgndGVzdC5zaW53Lm5ldCcsJ3Zkby5zaW53Lm5ldCcpICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcImh0dHBzOi8vdmRvLnNpbncubmV0L20zdTgvXCIgKyBwbGF5ICsgXCI7e09yaWdpbkBcIiArIGhvc3QgKyBcIiYmUmVmZXJlckBcIiArIGhvc3QgKyBcIn1cIlxuICAgICAgICAgICAgICAgIH0saG9zdCksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8yJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgICAgICBcbnNldFJlc3VsdChkKSIsImRldGFpbF9jb2xfdHlwZSI6Im1vdmllXzEiLCJkZXRhaWxfZmluZF9ydWxlIjoiIiwic2RldGF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LCJwYWdlcyI6IltdIiwiaWNvbiI6Imh0dHBzOi8vaW1nMi5iYWlkdS5jb20vaXQvdT0yNDU4MTE0MTMzLDQxODc0NTYzMzYmZm09MjUzJmZtdD1hdXRvJmFwcD0xMzgmZj1KUEVHP3c9MTkyJmg9MTkyIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment