xiaomianao666

小程序:新片场

Nov 20th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@新片场@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5paw54mH5Zy6IiwiYXV0aG9yIjoi6aG6IiwidXJsIjoiaHR0cHM6Ly93d3cueGlucGlhbmNoYW5nLmNvbS9jaGFubmVsL2luZGV4L2lkLWZ5QWxsL3BhZ2UtZnlwYWdlIiwidmVyc2lvbiI6MjAyMjA0MTgsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBQQUdFID0gTVlfVVJMLnNwbGl0KCdwYWdlLScpWzFdO1xudmFyIGQgPSBbXTtcbmV2YWwoSlNPTi5wYXJzZShmZXRjaChcImhpa2VyOi8vcGFnZS/pppbpobVKU09OXCIpKS5ydWxlKVxuaWYgKFBBR0UgPT0gMSkge1xuXHRldmFsKEpTT04ucGFyc2UoZmV0Y2goXCJoaWtlcjovL3BhZ2Uv6aaW6aG15Zu65a6aSlNPTlwiKSkucnVsZSlcblx0ZC5wdXNoKHtcblx0XHRjb2xfdHlwZTogJ2ljb25fMV9zZWFyY2gnLFxuXHRcdHVybDogZXZhbChKU09OLnBhcnNlKGZldGNoKFwiaGlrZXI6Ly9wYWdlL+i/m+WFpeaQnOe0oumhtVwiKSkucnVsZSksXG5cdFx0dGl0bGU6ICfor7fovpPlhaXkvZzlk4HlkI3jgIHliJvkvZzkuronLFxuXHRcdGV4dHJhOiB7XG5cdFx0XHRuZXdXaW5kb3c6IHRydWUsXG5cdFx0XHR3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hciB1cmwgPVxcXCJoaWtlcjovL2VtcHR5XFxcIn1cXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IHZtLmF1dGhvci51c2VyaW5mby51c2VybmFtZSxcXG4gICAgICAgICAgICBwaWNfdXJsOiB2bS5hdXRob3IudXNlcmluZm8uYXZhdGFyLFxcbiAgICAgICAgICAgIHVybDp1cmwsXFxuICAgICAgICAgICAgY29sX3R5cGU6ICdhdmF0YXInLFxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IHZtLnRpdGxlLFxcbiAgICAgICAgICAgIHVybDogZXZhbChKU09OLnBhcnNlKGZldGNoKFxcXCJoaWtlcjovL3BhZ2Uv6KeG6aKR6K+m5oOF6aG1XFxcIikpLnJ1bGUpLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8xJyxcXG4gICAgICAgIH0pXFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiB2bS50aXRsZSxcXG4gICAgICAgICAgICBwaWNfdXJsOiB2bS5jb3ZlcixcXG4gICAgICAgICAgICB1cmw6IGV2YWwoSlNPTi5wYXJzZShmZXRjaChcXFwiaGlrZXI6Ly9wYWdlL2FwcOaSreaUvumTvuaOpVxcXCIpKS5ydWxlKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3BpY18xX2Z1bGwnLFxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IHZtLmNvdW50LmNvdW50X2NvbGxlY3QsXFxuICAgICAgICAgICAgcGljX3VybDogJ2h0dHA6Ly84Mi4xNTYuMjIyLjc3L3dlaXN5ci9pY29uL2Jic+aUtuiXjy5zdmcnLFxcbiAgICAgICAgICAgIHVybDogXFxcImhpa2VyOi8vZW1wdHlcXFwiLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnaWNvbl9zbWFsbF8zJyxcXG4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