Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@黃品匯(汤头条)@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6buD5ZOB5YyvKOaxpOWktOadoSkiLCJhdXRob3IiOiIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyN7XCJzeXN0ZW1fb2F1dGhfdHlwZVwiOlwicHdhXCIsXCJzeXN0ZW1fb2F1dGhfaWRcIjpcImVnem1KZ25VQ1RZSWxDeERfMTcyMjQxNjA1NTc4MlwiLFwic3lzdGVtX29hdXRoX25ld19pZFwiOlwiXCIsXCJzeXN0ZW1fdmVyc2lvblwiOlwiMy4wLjFcIixcInN5c3RlbV9hcHBfdHlwZVwiOlwiXCIsXCJzeXN0ZW1fYnVpbGRcIjpcIlwiLFwic3lzdGVtX2J1aWxkX2lkXCI6XCJcIixcInBhZ2VcIjpcImZ5cGFnZVwiLFwidGFiSWRcIjpcImZ5Y2xhc3NcIn0iLCJ2ZXJzaW9uIjoxLCJjb2xfdHlwZSI6Im1vdmllXzIiLCJjbGFzc19uYW1lIjoi5LuK5pel5aS05p2hJuacgOaWsCbnu4/lhbjkuInnuqcm5Zu95LqnJuWKqOa8q0NHJuasp+e+jibml6Xpn6kiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIxMSYxMCY1JjQmMTImMiYxIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6IFxudmFyIGQgPSBbXTtcblxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9hZXMnKSkucnVsZSk7XG5cbi8v55Sf5oiQ6ZqP5py6dXVpZFxuZnVuY3Rpb24gZ2VuZXJhdGVVVUlEKCkge1xuIC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