Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@GG51@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiR0c1MSIsImF1dGhvciI6IlIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL2dnNTEuY29tIyNmeXBhZ2UiLCJ2ZXJzaW9uIjoyMDI0MDEwMSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuICAgIHJjKCdodHRwczovL2docHJveHkubmV0L2h0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taXN0eXdhdGVyL2hpa2VyL21haW4vZicsIDI0KTtcbnZhciBkID0gW107XG52YXIgaG9zdCA9IGNvbmZpZy5ob3N0O1xuY29uc3QgcGFnZSA9IE1ZX1BBR0U7XG52YXIgZGF0YSA9IFt7XG4gICAgdGl0bGU6ICfml6Xpn6km5Lit5paH5a2X5bmVJuW8uuWluOi/t+WluCbpq5jmuIXml6DnoIEm54af5aWz5Lq65aa7JyxcbiAgICBpZDogJzImMTEmMTQmMTImMTMnXG59LCB7XG4gICAgdGl0bGU6ICflm73kuqcm6YeN56OF5rOE5a+GJue9kee6ouaYjuaYnybng63pl6jmoKHlm60m5a625bqt5Lmx5LymJuWBt+aLjeiHquaLjSbnu7/luL3lgbfmg4UnLFxuICAgIGlkOiAnMSY4JjI0JjMxJjMyJjUmNidcbn0sIHtcbiAgICB0aXRsZTogJ+Wkp+WOguWOn+WImybpurvosYbkvKDlqpImU1dBRybns5blv4NWbG9nJuiQneWNnOekviZKVklEJu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