xiaomianao666

小程序:搜图神器

Dec 1st, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@搜图神器@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pCc5Zu+56We5ZmoIiwiYXV0aG9yIjoi5pen5be36ZmM5Lq6IiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJwaWN0dXJlIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5yZXF1aXJlKCdoaWtlcjovL3BhZ2UvY29uZmlnLmh0bWwnKVxuZ2V0QmFzZVBhcnNlKCkiLCJzZWFyY2hfdXJsIjoiIiwiZ3JvdXAiOiLlm77niYciLCJzZWFyY2hGaW5kIjoiIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiIiwicGFnZXMiOiJbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIumhtemdolwiLFwicGF0aFwiOlwiY29uZmlnLmh0bWxcIixcInJ1bGVcIjpcImNvbnN0IGVtcHR5ID0gJ2hpa2VyOi8vZW1wdHknXFxuY29uc3QgcGFnZSA9IE1ZX1BBR0U7XFxuXFxuY29uc3QgQ29sb3IgPSAodGVzdCkgPT4ge1xcbiAgICByZXR1cm4gJzxmb250IG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ksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbidcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcXG4gICAgICAgIH0pXFxuICAgIH1cXG4gICAgc3dpdGNoIChnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkpIHtcXG4gICAgICAgIGNhc2UgdGFic1swXTpcXG4gICAgICAgICAgICBnZXRDbGFzc3Jvb21QYXJzZShkLCB0YWJzKVxcbiAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgY2FzZSB0YWJzWzFdOlxcbiAgICAgICAgICAgIGtleSA9ICd5cWJ6X2FuZHJvaWRfdmlkZW9fY2F0ZWdvcnlfbGlzdF92MidcXG4gICAgICAgICAgICBnZXRDbGFzc2luZ1BhcnNlKGQsIHRhYnMsIGtleSlcXG4gICAgICAgICAgICBicmVhaztcXG4gICAgICAgIGNhc2UgdGFic1syXTpcXG4gICAgICAgICAgICBrZXkgPSAneXFiel9hbmRyb2lkX2NvbXB1dGVyX3dhbGxwYXBlcl90YWJzJ1xcbiAgICAgICAgICAgIGdldENsYXNzaW5nUGFyc2UoZCwgdGFicywga2V5KVxcbiAgICAgICAgICAgIGJyZWFrO1xcbiAgICB9XFxuICAgIHNldFJlc3VsdChkKVxcbn1cXG5cXG5jb25zdCBnZXRDbGFzc3Jvb21QYXJzZSA9IChkLCB0YWJzKSA9PiB7XFxuICAgIHBhdGggPSAnLzgvZmluZD9pZD00MGNiOWEnXFxuICAgIGJvZHkgPSB7XFxuICAgICAgICBcXFwiY1xcXCI6IFxcXCJDb29sV3JhcGVyVGFiXFxcIixcXG4gICAgICAgIFxcXCJkYXRhXFxcIjoge1xcbiAgICAgICAgICAgIFxcXCJsaW1pdFxcXCI6IDUwMCxcXG4gICAgICAgICAgICBcXFwib3JkZXJcXFwiOiBcXFwib3JkZXJcXFwi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ICAgICAgIHJldHVybiBpdGVtXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIHB1dE15VmFyKGdldE15VmFyKCfliIbnu4QnLCB0YWJzWzBdKSArIFxcXCI6aVRhZ1xcXCIsIEpTT04uc3RyaW5naWZ5KGlUYWcpKTtcXG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICBpVGFnID0gW107XFxuICAgICAgICB9XFxuICAgIH1cXG4gICAgaWYgKHBhZ2UgPT0gMSkge1xcbiAgICAgICAgaVRhZy5mb3JFYWNoKGl0ZW0gPT4ge1xcbiAgICAgICAgICAgIHRhZyA9IGl0ZW0udGFnXFxuICAgICAgICAgICAgbmFtZSA9IGl0ZW0udGFiTmFtZVxcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiB0YWcgPT0gZ2V0TXlWYXIoZ2V0TXlWYXIoJ+WIhue7hCcsIHRhYnNbMF0pICsgJ+WIhuexuycsIGlUYWdbMF0udGFnKSA/IFJpY2goU3Ryb25nKENvbG9yKG5hbWUpKSkgOiBuYW1lLFxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRhZywgZW1wdHksIHRhYnMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGdldE15VmFyKCfliIbnu4QnLCB0YWJzWzBdKSArICfliIbnsbsnLCB0YWcpO1xcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBlbXB0eTtcXG4gICAgICAgICAgICAgICAgfSwgdGFnLCBlbXB0eSwgdGFicyksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbidcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcXG4gICAgICAgIH0pXFxuICAgIH1cXG4gICAgb3JkZXJzID0gWyfmnIDmlrAnLCAn5pyA54OtJ107XFxuICAgIGlmIChwYWdlID09IDEpIHtcXG4gICAgICAgIG9yZGVycy5mb3JFYWNoKGl0ZW0gPT4ge1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtID09IGdldE15VmFyKGdldE15VmFyKCfliIbnu4QnLCB0YWJzWzBdKSArICfmjpLluo8nLCBvcmRlcnNbMF0pID8gUmljaChTdHJvbmcoQ29sb3IoaXRlbSkpKSA6IGl0ZW0sXFxuICAgICAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoaXRlbSwgZW1wdHksIHRhYnMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGdldE15VmFyKCfliIbnu4QnLCB0YWJzWzBdKSArICfmjpLluo8nLCBpdGVtKTtcXG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZW1wdHk7XFxuICAgICAgICAgICAgICAgIH0sIGl0ZW0sIGVtcHR5LCB0YWJzKSxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9KVxcbiAgICB9XFxuICAgIHN3aXRjaCAoZ2V0TXlWYXIoZ2V0TXlWYXIoJ+WIhue7hCcsIHRhYnNbMF0pICsgJ+aOkuW6jycsIG9yZGVyc1swXSkpIHtcXG4gICAgICAgIGNhc2Ugb3JkZXJzWzBdOlxcbiAgICAgICAgICAgIG9yZGVyID0gJy1jcmVhdGVkQXQnXFxuICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICBjYXNlIG9yZGVyc1sxXTpcXG4gICAgICAgICAgICBvcmRlciA9ICct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ZyA9IGdldENvbmZpZ0RlKHBhdGgsIGJvZHkpO1xcbiAgICAgICAgICAgIGxvZyhnZXRDb25maWdEZShwYXRoLCBib2R5KSlcXG4gICAgICAgICAgICBwdXRNeVZhcihnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkgKyBcXFwiOmlUYWdcXFwiLCBKU09OLnN0cmluZ2lmeShpVGFnKSk7XFxuICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgaVRhZyA9IFtdO1xcbiAgICAgICAgfVxcbiAgICB9XFxuICAgIGlmIChwYWdlID09IDEpIHtcXG4gICAgICAgIGlUYWcuZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgICAgICB0YWdzID0gaXRlbS5yZXF1ZXN0X3BhcmFtcy5zaXplX3R5cGUgfHwgaXRlbS5jYXRlZ29yeV9uYW1lXFxuICAgICAgICAgICAgbmFtZSA9IGl0ZW0ubmFtZSB8fCBpdGVtLmNhdGVnb3J5X25hbWVcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogdGFncyA9PSBnZXRNeVZhcihnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkgKyAn5YiG57G7JywgJycgKyAoaVRhZ1swXS5yZXF1ZXN0X3BhcmFtcy5zaXplX3R5cGUgfHwgaVRhZ1swXS5jYXRlZ29yeV9uYW1lKSArICcnKSA/IFJpY2goU3Ryb25nKENvbG9yKG5hbWUpKSkgOiBuYW1lLFxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHRhZ3MsIGVtcHR5LCB0YWJzKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkgKyAn5YiG57G7JywgdGFncyk7XFxuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGVtcHR5O1xcbiAgICAgICAgICAgICAgICB9LCB0YWdzLCBlbXB0eSwgdGFicyksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbidcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcXG4gICAgICAgIH0pXFxuICAgIH1cXG4gICAgb3JkZXJzID0gWyfmnIDmlrAnLCAn54Ot6ZeoJywgJ+acgOeDrScsICflj5HnjrAnXTtcXG4gICAgaWYgKHBhZ2UgPT0gMSkge1xcbiAgICAgICAgb3JkZXJzLmZvckVhY2goaXRlbSA9PiB7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0ZW0gPT0gZ2V0TXlWYXIoZ2V0TXlWYXIoJ+WIhue7hCcsIHRhYnNbMF0pICsgJ+aOkuW6jycsIG9yZGVyc1sxXSkgPyBSaWNoKFN0cm9uZyhDb2xvcihpdGVtKSkpIDogaXRlbSxcXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpdGVtLCBlbXB0eSwgdGFicykgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoZ2V0TXlWYXIoJ+WIhue7hCcsIHRhYnNbMF0pICsgJ+aOkuW6jycsIGl0ZW0pO1xcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBlbXB0eTtcXG4gICAgICAgICAgICAgICAgfSwgaXRlbSwgZW1wdHksIHRhYnMpLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgIH0pXFxuICAgIH1cXG4gICAgc3dpdGNoIChnZXRNeVZhcihnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkgKyAn5o6S5bqPJywgb3JkZXJzWzFdKSkge1xcbiAgICAgICAgY2FzZSBvcmRlcnNbMF06XFxuICAgICAgICAgICAgb3JkZXIgPSAxXFxuICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICBjYXNlIG9yZGVyc1sxXTpcXG4gICAgICAgICAgICBvcmRlciA9IDBcXG4gICAgICAgICAgICBicmVhaztcXG4gICAgICAgIGNhc2Ugb3JkZXJzWzJdOlxcbiAgICAgICAgICAgIG9yZGVyID0gMlxcbiAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgY2FzZSBvcmRlcnNbM106XFxuICAgICAgICAgICAgb3JkZXIgPSAzXFxuICAgICAgICAgICAgYnJlYWs7XFxuICAgIH1cXG4gICAgdGFncyA9IGdldE15VmFyKGdldE15VmFyKCfliIbnu4QnLCB0YWJzWzBdKSArICfliIbnsbsnLCAnJyArIChpVGFnWzBdLnJlcXVlc3RfcGFyYW1zLnNpemVfdHlwZSB8fCBpVGFnWzBdLmNhdGVnb3J5X25hbWUpICsgJycpXFxuICAgIGlmIChnZXRNeVZhcign5YiG57uEJywgdGFic1swXSkgPT0gdGFic1sxXSkge1xcbiAgICAgICAgc3dpdGNoICh0YWdzKSB7XFxuICAgICAgICAgICAgY2FzZSAn5YWo6YOoJzpcXG4gICAgICAgICAgICAgICAgc2lnbiA9ICdwYWdlPScgKyAocGFnZSAtIDEpICsgJyZwbGF0Zm9ybT0wJnByb2R1Y3RfaWQ9MTYmc29ydF90eXBlPScgKyBvcmRlciArICcmdGltZT0nICsgdGltZSArICcmdHlwZT0wJnZlcnNpb25fY29kZT00NzUma2V5PWQ5ZmQzZWMzOTQnXFxuICAgICAgICAgICAgICAgIGJvZHkgPSAncGFnZT0nICsgKHBhZ2UgLSAxKSArICcmdHlwZT0wJnNvcnRfdHlwZT0nICsgb3JkZXIgKyAnJnByb2R1Y3RfaWQ9MTYmdmVyc2lvbl9jb2RlPTQ3NSZ0aW1lPScgKyB0aW1l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XFxuICAgICAgICAgICAgICAgIGl0ZW1VcmwgPSBpdGVtLnZpZGVvVXJsXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIHR5cGUgPSAncGljXzJfY2FyZCdcXG4gICAgICAgICAgICBpZiAoZ2V0TXlWYXIoJ+WIhue7hCcsIHRhYnNbMF0pID09IHRhYnNbMl0pIHtcXG4gICAgICAgICAgICAgICAgdHlwZSA9ICdwaWNfMV9jYXJkJ1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS5jb250ZW50IHx8IGl0ZW0udGl0bGUsXFxuICAgICAgICAgICAgICAgIGRlc2M6IGl0ZW0uZGV0YWlsSW5mbyxcXG4gICAgICAgICAgICAgICAgcGljX3VybDogaXRlbS5sYXJnZVVybCB8fCBpdGVtLmNvdmVyVXJsLFxcbiAgICAgICAgICAgICAgICB1cmw6IGl0ZW1VcmwsXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiB0eXBlXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgIH0pXFxuICAgIH0gZWxzZSB7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBSaWNoKFNtYWxsKEdyYXkoJ++9nu+9nu+9nuaIkeaYr+acieW6lee6v+eahO+9nu+9nu+9nicpKSksXFxuICAgICAgICAgICAgdXJsOiBlbXB0eSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnLFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgIGxpbmVWaXNpYmxlOiBmYWxzZVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pXFxuICAgIH1cXG59XCJ9XSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment