xiaomianao666

小程序:UCKK拓展

Jul 11th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@UCKK拓展@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiVUNLS+aLk+WxlSIsImF1dGhvciI6IkBMb3lEZ0lrIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSIsInZlcnNpb24iOjQsImNvbF90eXBlIjoidGV4dF8xIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmQucHVzaCh7XG4gICAgdGl0bGU6XCLlm57liLB1Y2tr5LqRXCIsXG4gICAgdXJsOlwiaGlrZXI6Ly9ob21lQHVja2vkupFcIixcbiAgICBjb2xfdHlwZTpcImF2YXRhclwiLFxuICAgIHBpY191cmw6XCJodHRwczovL2FuZHJvaWQtYXJ0d29ya3MuMjVwcC5jb20vZnMwOC8yMDIyLzA3LzI2LzcvMTEwXzE5ZDk4MjM4MTdhODMzNzA0ZDZlOWI0MGM3MWRhMDQyX2Nvbl8xMzB4MTMwLnBuZ1wiXG59KTtcbmQucHVzaCh7XG4gICAgdGl0bGU6ICfmt7vliqAnLFxuICAgIGRlc2M6ICfpk77mjqUk5o+Q5Y+W56CBJyxcbiAgICB1cmw6ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICByZXR1cm4gXCJoaWtlcjovL3BhZ2Uv5pCc57SiP3R1cmw9XCIgKyBiYXNlNjRFbmNvZGUoaW5wdXQpO1xuICAgIH0pLFxuICAgIGNvbF90eXBlOiBcImlucHV0XCJcbn0pO1xuZC5wdXNoKH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ZpbmRJbmRleCh2ID0+IHYubGVuZ3RoID09PSAxICYmIHZbMF0gPT09IGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB6eS5zcGxpY2UoaSArIDEsIDAsIG5ld0RhdGEpO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQucmVxdWlyZShcXFwi5pu/5o2iXFxcIikoenkpO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIGlmIChpbnB1dCA9PSBcXFwi6YCJ57uEXFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IHp1ID0gJC5yZXF1aXJlKFxcXCJkYXRhXFxcIikuZ2V0R3JvdXAoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAkKHp1LCAyLCBcXFwi6YCJ5oup57uEXFxcIikuc2VsZWN0KHNldE5ld0RhdGEsIG5ld0RhdGEpO1xcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQoXFxcIlxcXCIsIFxcXCLor7fovpPlhaXmlrDnmoTnu4TlkI1cXFwiKS5pbnB1dChzZXROZXdEYXRhLCBuZXdEYXRhLCB0cnVlKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0sIG5ld0RhdGEpO1xcbiAgICAgICAgfSwgcHdkX2lkLCBwYXNzY29kZSwgcGRpcl9maWQpLFxcbiAgICAgICAgY29sX3R5cGU6IFxcXCJ0ZXh0X2NlbnRlcl8xXFxcIlxcbiAgICB9XSA6IFtdKSArIFxcXCI7XFxcIik7XFxuZXZhbChjb2RlKTtcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuaQnOe0olwiLFwicGF0aFwiOlwi5pCc57SiXCIsXCJydWxlXCI6XCJqczpcXG5cXG5NWV9VUkwgPSBiYXNlNjREZWNvZGUoZ2V0UGFyYW0oXFxcInR1cmx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KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHp5ID0gc3RvcmFnZTAuZ2V0TXlWYXIoXFxcImRhdGFcXFwiLCAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXREYXRhKCkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBuZXdEYXRhID0gW107XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGlzZ3JvdXAgPSBmYWxzZTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCB2IG9mIHp5KSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2Lmxlbmd0aCA9PT0gMSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZbMF0gPT09IGdyb3VwKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNncm91cCA9IHRydWU7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGlzZ3JvdXApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpc2dyb3VwID0gZmFsc2U7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlzZ3JvdXApIGNvbnRpbnVlO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXdEYXRhLnB1c2godik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChnZXRNeVZhcihcXFwiZ3JvdXBcXFwiKSA9PT0gZ3JvdXApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xlYXJNeVZhcihcXFwiZ3JvdXBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RvcmFnZTAucHV0TXlWYXIoXFxcImRhdGFcXFwiLCBKU09OLnN0cmluZ2lmeShuZXdEYXRhKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgICAgICAgICAgfSwgZ3JvdXApO1xcbiAgICAgICAgICAgICAgICB9LCB2KVxcbiAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IFxcXCLph43lkb3lkI1cXFwiLFxcbiAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygoZ3JvdXApID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAkKGdyb3VwLCBcXFwi5paw55qE5ZCN56ewKOS4jemHjeWkjSlcXFwiKS5pbnB1dCgoZ3JvdXApID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgenkgPSBzdG9yYWdlMC5nZXRNeVZhcihcXFwiZGF0YVxcXCIsICQucmVxdWlyZShcXFwiZGF0YVxcXCIpLmdldERhdGEoKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHp1ID0gJC5yZXF1aXJlKFxcXCJkYXRhXFxcIikuZ2V0R3JvdXAoenkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh6dS5pbmNsdWRlcyhpbnB1dCkpIHJldHVybiBcXFwidG9hc3Q6Ly/lt7LlrZjlnKhcXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBpID0genkuZmluZEluZGV4KHYgPT4gdi5sZW5ndGggPT09IDEgJiYgdlswXSA9PT0gZ3JvdXApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHp5W2ldWzBdID0gaW5wdXQ7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGdldE15VmFyKFxcXCJncm91cFxcXCIpID09PSBncm91cCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwiZ3JvdXBcXFwiLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnB1dE15VmFyKFxcXCJkYXRhXFxcIiwgSlNPTi5zdHJpbmdpZnkoenkpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgICAgICB9LCBncm91cCk7XFxuICAgICAgICAgICAgICAgIH0sIHYpXFxuICAgICAgICAgICAgfV1cXG4gICAgICAgIH1cXG4gICAgfSk7XFxufSk7XFxubGV0IGlzR3JvdXAgPSBmYWxzZTtcXG5sZXQgaSA9IDA7XFxubGV0IGlpID0gLTE7XFxuZm9yIChsZXQgdiBvZiB6eSkge1xcbiAgICBpaSsrO1xcbiAgICBpZiAodi5sZW5ndGggPT0gMSkge1xcbiAgICAgICAgaWYgKHZbMF0gPT09IGdyb3VwKSB7XFxuICAgICAgICAgICAgaXNHcm91cCA9IHRydWU7XFxuICAgICAgICAgICAgY29udGludWU7XFxuICAgICAgICB9IGVsc2UgaWYgKGlzR3JvdXApIHtcXG4gICAgICAgICAgICBicmVhaztcXG4gICAgICAgIH1cXG4gICAgfVxcbiAgICBpZiAoIWlzR3JvdXApIGNvbnRpbnVlO1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6IFxcXCJbXFxcIiArIGkrKyArIFxcXCJdXFxcIiArIHZbMF0sXFxuICAgICAgICBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsXFxuICAgICAgICBkZXNjOiBcXFwi6LWE5rqQSUQ6XFxcIiArIHZbMV0gKyBcXFwiXFxcXG7mlofku7ZJRDpcXFwiICsgdlszXSArIFxcXCJcXFxcbuaPkOWPlueggTpcXFwiICsgdlsyXSxcXG4gICAgICAgIHVybDogJChbXFxcIuWIoOmZpFxcXCIsIFxcXCLph43lkb3lkI1cXFwiLCBcXFwi6YeN5paw5YiG57uEXFxcIiwgXFxcIuWIhuS6q1xcXCJdKS5zZWxlY3QoKGksIHYpID0+IHtcXG4gICAgICAgICAgICBzd2l0Y2ggKGlucHV0KSB7XFxuICAgICAgICAgICAgICAgIGNhc2UgXFxcIuWIhuS6q1xcXCI6XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcImNvcHk6Ly9odHRwczovL3Bhbi5xdWFyay5jbi9zL1xcXCIrdlsxXSsodlsyXT9cXFwiJFxcXCIrdlsyXTpcXFwiXFxcIik7XFxuICAgICAgICAgICAgICAgIGNhc2UgXFxcIuWIoOmZpFxcXCI6XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJChcXFwi5piv5ZCm5Yig6ZmkXFxcIikuY29uZmlybSgoaSkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB6eSA9IHN0b3JhZ2UwLmdldE15VmFyKFxcXCJkYXRhXFxcIiwgJC5yZXF1aXJlKFxcXCJkYXRhXFxcIikuZ2V0RGF0YSgpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB6eS5zcGxpY2UoaSwgMSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RvcmFnZTAucHV0TXlWYXIoXFxcImRhdGFcXFwiLCBKU09OLnN0cmluZ2lmeSh6eSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgIH0sIGkpO1xcbiAgICAgICAgICAgICAgICBjYXNlIFxcXCLph43lkb3lkI1cXFwiOlxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQodlswXSwgXFxcIuaWsOeahOWQjeensFxcXCIpLmlucHV0KChpKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHp5ID0gc3RvcmFnZTAuZ2V0TXlWYXIoXFxcImRhdGFcXFwiLCAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXREYXRhKCkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHp5W2ldWzBdID0gaW5wdXQ7XFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RvcmFnZTAucHV0TXlWYXIoXFxcImRhdGFcXFwiLCBKU09OLnN0cmluZ2lmeSh6eSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgIH0sIGkpO1xcbiAgICAgICAgICAgICAgICBjYXNlIFxcXCLph43mlrDliIbnu4RcXFwiOlxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQoW1xcXCLpgInnu4RcXFwiLCBcXFwi5paw57uEXFxcIl0sIDIpLnNlbGVjdChpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBzZXROZXdEYXRhKGksIGlzTmV3WnUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHp5ID0gc3RvcmFnZTAuZ2V0TXlWYXIoXFxcImRhdGFcXFwiLCAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXREYXRhKCkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgenUgPSAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXRHcm91cCh6eSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBuZXdEYXRhID0genkuc3BsaWNlKGksIDEpWzBdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXNOZXdadSAmJiAhenUuaW5jbHVkZXMoaW5wdXQpKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB6eS5wdXNoKFtpbnB1dF0sIG5ld0RhdGEpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGkgPSB6eS5maW5kSW5kZXgodiA9PiB2Lmxlbmd0aCA9PT0gMSAmJiB2WzBdID09PSBpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB6eS5zcGxpY2UoaSArIDEsIDAsIG5ld0RhdGEpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnB1dE15VmFyKFxcXCJkYXRhXFxcIiwgSlNPTi5zdHJpbmdpZnkoenkpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaW5wdXQgPT0gXFxcIumAiee7hFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHp5ID0gc3RvcmFnZTAuZ2V0TXlWYXIoXFxcImRhdGFcXFwiLCAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXREYXRhKCkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgenUgPSAkLnJlcXVpcmUoXFxcImRhdGFcXFwiKS5nZXRHcm91cCh6eSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAkKHp1LCAyLCBcXFwi6YCJ5oup57uEXFxcIikuc2VsZWN0KHNldE5ld0RhdGEsIGkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAkKFxcXCJcXFwiLCBcXFwi6K+36L6T5YWl5paw55qE57uE5ZCNXFxcIikuaW5wdXQoc2V0TmV3RGF0YSwgaSwgdHJ1ZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfSwgaSk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSwgaWksIHYpXFxuICAgIH0pO1xcbn1cXG5cXG5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