xiaomianao666

小程序:触站🖼

Apr 14th, 2024
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@触站🖼@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6Kem56uZ8J+WvCIsImF1dGhvciI6Iue8mOWIhiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vcnQuaHVhc2hpNi5jb20vZnJvbnQvZnlBbGw/Y3Vyc29yPWZ5cGFnZS0xNjg3MDAyOTUyMjYzIiwidmVyc2lvbiI6MSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IummlumhtSbng63pl6gm5qac5Y2VJueyvuWTgSbnlLvluIgmQUnnu5jnlLsiLCJ0eXBlIjoicGljdHVyZSIsImNsYXNzX3VybCI6ImluZGV4L2xvYWRfd2FwX2RhdGEmd29ya3MvaG90bGlzdCZ3b3Jrcy9yYW5rX3BhZ2Umd29ya3MvYWR2YW5jZS9saXN0JnBhaW50ZXIvbGlzdCZ3b3Jrcy9haV9maWx0ZXIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiQXJyYXkuZnJvbShuZXcgU2V0KGxpc3QuY29uY2F0KGxpc3QxKS5jb25jYXQobGlzdDIpLmNvbmNhdChsaXN0MykpIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5NWV9VUkwgPSBNWV9VUkwuc3BsaXQoXCIjI1wiKVsxXVxuaWYgKE1ZX1BBR0UgPT0gMSAmJiBNWV9VUkwuaW5kZXhPZignbG9hZF93YXBfZGF0YScpID4gLTEpIHtcbiAgICB2YXIgYSA9IHJlcXVlc3QoJ2h0dHBzOi8vbS5odWFzaGk2LmNvbS8nLCB7fSk7XG4gICAgdmFyIGxpc3RzID0gcGRmYShhLCAnLnAtaG9tZS1zZWN0aW9uJiZhJyk7XG4gICAgbGlzdHMuZm9yRWFjaCgoZGF0YSwgaW5kZXgpID0+IHtcbiAgICAgICAgbGV0IGlkID0gaW5kZXggJSA0O1xuICAgICAgICBsZXQgY29sX3R5cGUgPSBpZCA8IDIgPyBcImNhcmRfcGljXzJfMl9sZWZ0XCIgOiBcImNhcmRfcGljXzJfMlwiO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgaW1nOiBwZChkYXRhLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChkYXRhLCAnYSYmaHJlZicpICsgJyNmeXBhZ2UnICsgJyNub0xvYWRpbmcjJyArICQoJycpLnJ1bGUoKCkgPT4ge1xuICAgICAgICAgICAgICAgICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9mbFwiKVxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBjb2xfdHlwZTogY29sX3R5cGUsXG4gICAgICAgIH0pXG4gICAgfSlcbn1cbmlmIChNWV9VUkwuaW5kZXhPZignbG9hZF93YXBfZGF0YScpID4gLTEpIHtcbiAgICB0cnkge1xuICAgICAgICB2YXIgaHRtbCA9IHJlcXVlc3QoTVlfVVJMLCB7fSlcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLmRhdGEuZGF0YXM7XG4gICAgICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEuZGF0YS50aXRsZSxcbiAgICAgICAgICAgICAgICBkZXNjOiAn4pmhJyArIGRhdGEuZGF0YS5saWtlTnVtLFxuICAgICAgICAgICAgICAgIGltZzogJ2h0dHA6Ly9pbWcyLmh1YXNoaTYuY29tLycgKyBkYXRhLmRhdGEuY292ZXJJbWFnZS5wYXRoICsnP2ltYWdlTW9ncjIvcXVhbGl0eS83NS9pbnRlcmxhY2UvMS90aHVtYm5haWwvMTgwJysgJ0BSZWZlcmVyPScsXG4gICAgICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9tLmh1YXNoaTYuY29tL2RyYXcvJyArIGRhdGEuZGF0YS5pZCArICcjbm9Mb2FkaW5nIycgKyAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBsaXN0cyA9IHBkZmEoaHRtbCwgJy53b3JrLWltYWdlLWNvbnRhaW5lciYmLndvcmstaW1hZ2UtaXRlbScpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgYWEgPSBbXTtcbiAgICAgICAgICAgICAgICAgICAgbGlzdHMuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFhLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiAne1wiY292ZXJJbWFnZVwiOiB7XCJwYXRoXCI6XCInICsgcGQoZGF0YSwgXCJpbWcmJmRhdGEtb3JpZ2luYWxcIikgKyAnXCJ9fSdcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFyciA9IEpTT04uc3RyaW5naWZ5KGFhKS5yZXBsYWNlKC9cXH1cInxcXHtcInVybFwiOlwifGh0dHBzOlxcL1xcL2ltZzJcXC5odWFzaGk2XFwuY29tXFwvfFxcXFwvZywgJycpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgaHRtbHMgPSBodG1sLm1hdGNoKC93b3Jrc0xpa2VMaXN0RGF0YVwiOihcXFtcXHsuKj9cXH1cXF0pLylbMV07XG4gICAgICAgICAgICAgICAgICAgIHZhciBsaXN0ID0gSlNPTi5wYXJzZShhcnIpLmNvbmNhdChKU09OLnBhcnNlKGh0bWxzKSk7XG4gIC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SAn4oCY4oCY4oCZ4oCZPGI+PHNwYW4gc3R5bGU9XCJjb2xvcjogIzFhYWQxOVwiPicgKyBpdGVtICsgJzwvc3Bhbj48L2I+JztcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0ZW0gPT0gZ2V0TXlWYXIoJ21vZGVzJywgJ+aXpeamnCcpID8geHkgOiBpdGVtLFxuICAgICAgICAgICAgICAgIC8vaW1nOiBpdGVtWzFdLFxuICAgICAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgodGEpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJtb2Rlc1wiLCB0YSlcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL2VtcHR5XCJcbiAgICAgICAgICAgICAgICB9LCBpdGVtKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMycsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSlcbiAgICAgICAgbGV0IG1vZGVzID0gZ2V0TXlWYXIoXCJtb2Rlc1wiLCBcIuaXpeamnFwiKTtcbiAgICAgICAgaWYgKG1vZGVzID09IFwi5pel5qacXCIpIHtcbiAgICAgICAgICAgIHZhciBodG1sID0gJ2h0dHBzOi8vcnQuaHVhc2hpNi5jb20vZnJvbnQvd29ya3MvcmFua19wYWdlP3BlcmlvZD1kYWlseSdcbiAgICAgICAgfTtcbiAgICAgICAgaWYgKG1vZGVzID09IFwi5ZGo5qacXCIpIHtcbiAgICAgICAgICAgIHZhciBodG1sID0gJ2h0dHBzOi8vcnQuaHVhc2hpNi5jb20vZnJvbnQvd29ya3MvcmFua19wYWdlP3BlcmlvZD13ZWVrJ1xuICAgICAgICB9O1xuICAgICAgICBpZiAobW9kZXMgPT0gXCLmnIjmppxcIikge1xuICAgICAgICAgICAgdmFyIGh0bWwgPSAnaHR0cHM6Ly9ydC5odWFzaGk2LmNvbS9mcm9udC93b3Jrcy9yYW5rX3BhZ2U/cGVyaW9kPW1vbnRoJ1xuICAgICAgICB9O1xuICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdChodG1sKSkuZGF0YS53b3JrcztcbiAgICB9XG4gICAgaWYgKE1ZX1VSTC5pbmRleE9mKCd3b3Jrcy9haV9maWx0ZXInKSA+IC0xKSB7XG4gICAgICAgIGlmIChNWV9QQUdFID09IDEpIHtcbiAgICAgICAgICAgIGxldCB0YWJzID0gW1wi5pyA5pawXCIsIFwi54Ot6ZeoXCJdO1xuICAgICAgICAgICAgdGFicy5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgICAgICAgICAgIC8vIHB1dE15VmFyKCfpgInkuK3popzoibInLCAnIzNDRTY4RScpO1xuICAgICAgICAgICAgICAgIHh5ID0gJ+KAmOKAmOKAmeKAmTxiPjxzcGFuIHN0eWxlPVwiY29sb3I6ICMxYWFkMTlcIj4nICsgaXRlbSArICc8L3NwYW4+PC9iPic7XG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGl0ZW0gPT0gZ2V0TXlWYXIoJ21vZGUnLCAn5pyA5pawJykgPyB4eSA6IGl0ZW0sXG4gICAgICAgICAgICAgICAgICAgIC8vaW1nOiBpdGVtWzFdLFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcIm1vZGVcIiwgdGEpXG4gICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL2VtcHR5XCJcbiAgICAgICAgICAgICAgICAgICAgfSwgaXRlbSksXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8yJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICAgICAgbGV0IG1vZGUgPSBnZXRNeVZhcihcIm1vZGVcIiwgXCLmnIDmlrBcIik7XG4gICAgICAgIGlmIChtb2RlID09IFwi5pyA5pawXCIpIHtcbiAgICAgICAgICAgIHZhciBzb3IgPSBcIm5ld2VzdFwiO1xuICAgICAgICB9O1xuICAgICAgICBpZiAobW9kZSA9PSBcIueDremXqFwiKSB7XG4gICAgICAgICAgICB2YXIgc29yID0gXCJob3R0ZXN0XCI7XG4gICAgICAgIH07XG4gICAgICAgIHZhciBodG1sID0gcmVxdWVzdChNWV9VUkwuc3BsaXQoXCI/XCIpWzBdLCB7XG4gICAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAgICAgXCJVc2VyLUFnZW50XCI6IE1PQklMRV9VQVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcImdyb3VwRmlsdGVyc1wiOiBbXCJcIl0sXG4gICAgICAgICAgICAgICAgXCJpbmRleFwiOiBNWV9QQUdFLFxuICAgICAgICAgICAgICAgIFwic2l6ZVwiOiA0MCxcbiAgICAgICAgICAgICAgICBcInNvcnRcIjogc29yXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICB9KVxuICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UoaHRtbCkuZGF0YS5kYXRhcztcbiAgICB9XG4gICAgbGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRhdGEudGl0bGUsXG4gICAgICAgICAgICBkZXNjOiAn4pmhJyArIGRhdGEubGlrZU51bSxcbiAgICAgICAgICAgIGltZzogJ2h0dHA6Ly9pbWcyLmh1YXNoaTYuY29tLycgKyBkYXRhLmNvdmVySW1hZ2UucGF0aCArJz9pbWFnZU1vZ3IyL3F1YWxpdHkvNzUvaW50ZXJsYWNlLzEvdGh1bWJuYWlsLzE4MCcrICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9tLmh1YXNoaTYuY29tL2RyYXcvJyArIGRhdGEuaWQgKyAnI25vTG9hZGluZyMnICsgJCgnJykubGF6eVJ1bGUoKCkgPT4ge1xuICAgICAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCk7XG4gICAgICAgICAgICAgICAgdmFyIHNzID0gcGRmYShodG1sLCAnLndvcmstaW1hZ2UtY29udGFpbmVyJiYud29yay1pbWFnZS1pdGVtJylcbiAgICAgICAgICAgICAgICB2YXIgYWEgPSBbXVxuICAgICAgICAgICAgICAgIHNzLmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGFhLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgY292ZXJJbWFnZTogJ3tcInBhdGhcIjpcIicgKyBwZChkYXRhLCBcImltZyYmZGF0YS1vcmlnaW5hbFwiKSArICdcIn0nXG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB2YXIgZGQgPSBKU09OLnN0cmluZ2lmeShhYSkucmVwbGFjZSgnXScsICcnKS5yZXBsYWNlKCdbJywgJycpLnJlcGxhY2UoL1wiOlwiL2csICdcIjonKS5yZXBsYWNlKC9cIn1cIn0vZywgJ1wifX0nKS5yZXBsYWNlKC9cXFxcL2csICcnKS5yZXBsYWNlKC9odHRwczpcXC9cXC9pbWcyXFwuaHVhc2hpNlxcLmNvbVxcLy9nLCAnJylcbiAgICAgICAgICAgICAgICB2YXIgYXJyID0gJ3tcImNvdmVySW1hZ2VcIjp7XCJwYXRoXCI6XCInICsgcGQoaHRtbCwgXCJib2R5JiYud29yay1pbWFnZS1pdGVtJiZpbWcmJmRhdGEtb3JpZ2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OiAnaHR0cHM6Ly9tLmh1YXNoaTYuY29tL2RyYXcvJyArIGRhdGEuaWQgKyAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBsaXN0cyA9IHBkZmEoaHRtbCwgJ2JvZHkmJi53b3JrLWltYWdlLWl0ZW0nKTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFhID0gW107XG4gICAgICAgICAgICAgICAgICAgIGxpc3RzLmZvckVhY2goZGF0YSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhYS5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogJ3tcImNvdmVySW1hZ2VcIjoge1wicGF0aFwiOlwiJyArIHBkKGRhdGEsIFwiaW1nJiZkYXRhLW9yaWdpbmFsXCIpICsgJ1wifX0nXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBhcnIgPSBKU09OLnN0cmluZ2lmeShhYSkucmVwbGFjZSgvXFx9XCJ8XFx7XCJ1cmxcIjpcInxodHRwczpcXC9cXC9pbWcyXFwuaHVhc2hpNlxcLmNvbVxcL3xcXFxcL2csICcnKTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWxzID0gaHRtbC5tYXRjaCgvd29ya3NMaWtlTGlzdERhdGFcIjooXFxbXFx7Lio/XFx9XFxdKS8pWzFdO1xuICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UoYXJyKS5jb25jYXQoSlNPTi5wYXJzZShodG1scykpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXCJwaWNzOi8vXCIgKyBsaXN0Lm1hcChpdCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2h0dHBzOi8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AgICAgICAgICAgICAgICB9KS5qb2luKFxcXCImJlxcXCIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXFxuICAgICAgICAgICAgICAgIH0pLFxcbiAgICB9KTtcXG59KVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6Imh0dHBzOi8vbS5odWFzaGk2LmNvbS9mYXZpY29uLmljbyIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment