Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@lPTV港澳台@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6ImxQVFbmuK/mvrPlj7AiLCJhdXRob3IiOiIiLCJ1cmwiOiJodHRwczovL3BsYXllci5nZ2lwdHYuY29tL2lwdHYucGhwP3RpZD1meUFsbDtnZXQ7VVRGLTg7e1VzZXItQWdlbnRATW96aWxsYS81LjAgKExpbnV477yb77ybIEFuZHJvaWQgMTDvvJvvvJsgRFQyMDAyQyBCdWlsZC9RS1ExLjIwMDcxMi4wMDLvvJvvvJsgd3YpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vNC4wIENocm9tZS83Ny4wLjM4NjUuMTIwIE1RUUJyb3dzZXIvNi4yIFRCUy8wNDU2MTggTW9iaWxlIFNhZmFyaS81MzcuMzYgTWljcm9NZXNzZW5nZXJpcHR2LzEuMi42IFZpZGVvUGxheWVyIGdvZC8zLjAuMCBNUEMgMi40LjIzIG1pdHYgYmFpZHVib3hhcHAgRWRnZS8xNC4xNDM5MyBIdG1sNVBsdXMvMS4wIChJbW1lcnNlZC80OC4wKX0iLCJ2ZXJzaW9uIjoxLCJjb2xfdHlwZSI6InRleHRfMiIsImNsYXNzX25hbWUiOiLmuK/mvrPlj7AiLCJ0eXBlIjoibGl2ZSIsImNsYXNzX3VybCI6Imd0IiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XHJcbmNvbnN0IGl0ZW1zID0gW107XHJcbmNvbnN0IGh0bWwgPSBnZXRSZXNDb2RlKClcclxuZm9yIChsZXQgZGF0YSBvZiBwZ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