xiaomianao666

小程序:猫耳

Oct 21st, 2023
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@猫耳@eyJ0aXRsZSI6IueMq+iAsyIsInR5cGUiOiJ2aWRlbyIsImF1dGhvciI6IkFsYW4iLCJ2ZXJzaW9uIjoxLCJncm91cCI6IiIsImljb24iOiIiLCJ1YSI6Im1vYmlsZSIsInByb3h5IjoiIiwicHJlUnVsZSI6IiIsImxhc3RfY2hhcHRlcl9ydWxlIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwiY2xhc3NfbmFtZSI6IiIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwieWVhcl9uYW1lIjoiIiwieWVhcl91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJzb3J0X3VybCI6IiIsImNvbF90eXBlIjoibW92aWVfMyIsImZpbmRfcnVsZSI6ImpzOiAkLnJlcXVpcmUoJ2hpa2VyOi8vcGFnZS9mdW5jJykuYmFzZVBhcnNlKCkiLCJkZXRhaWxfY29sX3R5cGUiOiJtb3ZpZV8xIiwiZGV0YWlsX2ZpbmRfcnVsZSI6IiIsInNlYXJjaF91cmwiOiJoaWtlcjovL2VtcHR5P2tleT0qKiIsInNlYXJjaEZpbmQiOiJqczogJC5yZXF1aXJlKCdoaWtlcjovL3BhZ2UvZnVuYycpLnNlYXJjaFBhcnNlKCkiLCJzZGV0YWlsX2NvbF90eXBlIjoicGljXzJfY2FyZCIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwicGFnZUxpc3QiOlt7ImNvbF90eXBlIjoibW92aWVfMyIsIm5hbWUiOiLlh73mlbAiLCJwYXRoIjoiZnVuYyIsInJ1bGUiOiJjb25zdCBtaXNzID0ge1xyXG4gIGQ6IFtdLFxyXG4gIHRhc2tMaXN0OiBbXSxcclxuICBlbXB0eTogJ2hpa2VyOi8vZ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UludChtaXNzLm1lbnUudG9wKSA9PT0gaWR4ID8gJ+KAmOKAmOKAmeKAmTxmb250IGNvbG9yPVwiIzE5Q0Y5NVwiPicgKyBuYW1lICsgJzwvZm9udD4nIDogbmFtZSxcclxuICAgICAgICAgIHVybDogJChtaXNzLmVtcHR5KS5sYXp5UnVsZSgoaWR4KSA9PiB7XHJcbiAgICAgICAgICAgIHB1dE15VmFyKFwidG9wLmlkeFwiLCBpZHgudG9TdHJpbmcoKSlcclxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UodHJ1ZSlcclxuICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5J1xyXG4gICAgICAgICAgfSwgaWR4KSxcclxuICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIGlmIChzdWJDYXRzKXtcclxuICAgICAgICAgIG1pc3MuZC5wdXNoKHtcclxuICAgICAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaycsXHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgICAgXHJcbiAgICAgICAgICBPYmplY3QuZW50cmllcyhzdWJDYXRzKS5mb3JFYWNoKChzdWIsIGluZGV4KSA9PiB7XHJcbiAgICAgICAgICAgIGNvbnN0IFtzaWQsIHZhbF0gPSBzdWI7XHJcbiAgICAgICAgICAgIHZhciBuYW1lID0gdmFsWydjYXRhbG9nX25hbWUnXVxyXG4gICAgICAgICAgICBtaXNzLmQucHVzaCh7XHJcbiAgICAgICAgICAgICAgdGl0bGU6IHBhcnNlSW50KG1pc3MubWVudS5zdWIpID09PSBpbmRleCA/ICfigJjigJjigJnigJk8Zm9udCBjb2xvcj1cIiMxOUNGOTVcIj4nICsgbmFtZSArICc8L2ZvbnQ+JyA6IG5hbWUsXHJcbiAgICAgICAgICAgICAgdXJsOiAkKG1pc3MuZW1wdHkpLmxhenlSdWxlKChpbmRleCkgPT4ge1xyXG4gICAgIC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Z3LWZyb250c291bmQtY29udGFpbmVyJylcclxuXHJcbiAgICBsaXN0LmZvckVhY2goaXRlbSA9PiB7XHJcbiAgICAgICAgbGV0IHVybCA9IG1pc3MudXJsICsgJ2RyYW1hYXBpL2dldGRyYW1hYnlzb3VuZD9zb3VuZF9pZD0nICsgcGRmaChpdGVtLCAnYSYmaHJlZicpLnNwbGl0KCcvJylbMl1cclxuICAgICAgICBtaXNzLmQucHVzaCh7XHJcbiAgICAgICAgICAgIHBpY191cmw6ICdodHRwczonICsgcGRmaChpdGVtLCAnaW1nJiZkYXRhLW9yaWdpbmFsJyksXHJcbiAgICAgICAgICAgIHRpdGxlOiBwZGZoKGl0ZW0sICcudnctZnJvbnRzb3VuZC10aXRsZSYmVGV4dCcpLFxyXG4gICAgICAgICAgICBkZXNjOiAn6ZiFJyArIHBkZmgoaXRlbSwgJy52dy1mcm9udHNvdW5kLXZpZXdjb3VudCYmVGV4dCcpLnJlcGxhY2UoJ+S4hycsJycpICsgJyDml7bplb8nICsgcGRmaChpdGVtLCAnLnZ3LWZyb250c291bmQtdGltZSYmVGV4dCcpLFxyXG4gICAgICAgICAgICB1cmw6ICQobWlzcy5lbXB0eSkucnVsZSgodXJsKSA9PiB7XHJcbiAgICAgICAgICAgICAgcmVxdWlyZSgnaGlrZXI6Ly9wYWdlL2Z1bmMnKS53aGljaFBhcnNlKHVybClcclxuICAgICAgICAgICAgICBzZXRSZXN1bHQobWlzcy5kKVxyXG4gICAgICAgICAgICB9LCB1cmwpLFxyXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3BpY18zX2NhcmQnLFxyXG4gICAgICAgIH0pXHJcbiAgICB9KVxyXG4gIH0sIFxyXG4gIHNlYXJjaFBhcnNlOiAoKSA9PiB7XHJcbiAgICB1cmwgPSBtaXNzLnVybCArICdzZWFyY2gvJyArIGdldFBhcmFtKFwia2V5XCIpXHJcbiAgICBjb25zdCBodG1sID0gZmV0Y2godXJsKVxyXG4gICAgbWlzcy5waWNMaXN0KG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taXNzLmQucHVzaCh7XHJcbiAgICAgIHRpdGxlOiBuYW1lICsgJ+KAmOKAmOKAmeKAmTxicj48c21hbGw+5L2c6ICF77yaJythdXRob3IrJzwvc21hbGw+PGJyPjxzbWFsbD7mm7TmlrDvvJonK2xhc3QrJzwvc21hbGw+PGJyPicsXHJcbiAgICAgIGRlc2M6IGRlc2MucmVwbGFjZSgvPFtePl0qPj8vZ20sICcnKSxcclxuICAgICAgcGljX3VybDogaW1nLFxyXG4gICAgICB1cmw6IG1pc3MuZW1wdHksXHJcbiAgICAgIGNvbF90eXBlOiAnbW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1cicsXHJcbiAgICAgIC8vZXh0cmE6IHtsaW5lVmlzaWJsZTogZmFsc2V9LFxyXG4gICAgfSlcclxuXHJcbiAgICBtaXNzLmQucHVzaCh7XHJcbiAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snXHJcbiAgICB9KVxyXG4gICAgXHJcbiAgICBpZiAodGFncykge1xyXG4gICAgICB0YWdzLmZvckVhY2godGFnID0+IHtcclxuICAgICAgICBtaXNzLmQucHVzaCh7XHJcbiAgICAgICAgICB0aXRsZTogdGFnWyduYW1lJ10sXHJcbiAgICAgICAgICB1cmw6IG1pc3MuZW1wdHksXHJcbiAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMydcclxuICAgICAgICB9KVxyXG4gICAgICB9KVxyXG4gICAgfVxyXG5cclxuICAgIGlmIChzbGlzdCkge1xyXG4gICAgICBtaXNzLmQucHVzaCh7XHJcbiAgICAgICAgdGl0bGU6ICfnq6DoioInLFxyXG4gICAgICAgIHVybDogbWlzcy5lbXB0eSxcclxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnLFxyXG4gICAgICAgIGV4dHJhOiB7bGluZVZpc2libGU6IGZhbHNlfSxcclxuICAgICAgfSlcclxuICAgICAgXHJcbiAgICAgIHNsaXN0LmZvckVhY2godGFnID0+IHtcclxuICAgICAgICB2YXIgbm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goaW5kZXgpID0+IHtcXHJcXG4gICAgICAgICAgICAgICAgLy9wdXRNeVZhcihcXFwidG9wLmlkeFxcXCIsIGlkeC50b1N0cmluZygpKVxcclxcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwic3ViLmlkeFxcXCIsIGluZGV4LnRvU3RyaW5nKCkpXFxyXFxuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKHRydWUpXFxyXFxuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcXHJcXG4gICAgICAgICAgICAgIH0sIGluZGV4KSxcXHJcXG4gICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXFxyXFxuICAgICAgICAgICAgfSkgXFxyXFxuICAgICAgICAgIH0pXFxyXFxuICAgICAgICB9XFxyXFxuICAgICAgICBcXHJcXG4gICAgfVxcclxcblxcclxcbiAgICAvLyBsb2cobWlzcy5tZW51LnRvcClcXHJcXG4gICAgLy8gXFxyXFxuICAgIHVybCA9IG1pc3MudXJsICsgJ3NvdW5kL20/aWQ9JysgY2lkICsnJnA9JyArIHBhZ2UgKyAnJm9yZGVyPScgKyBvcmRlclxcclxcbiAgICBsb2codXJsKVxcclxcbiAgICBjb25zdCBodG1sID0gZmV0Y2godXJsLCB7aGVhZGVyczp7XFxyXFxuICAgICAgJ1VzZXItQWdlbnQnOidNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTE3LjAuMC4wIFNhZmFyaS81MzcuMzYnLFxcclxcbiAgICAgICdYLVJlcXVlc3RlZC1XaXRoJzogJ1hNTEh0dHBSZXF1ZXN0J31cXHJcXG4gICAgfSlcXHJcXG4gICAgXFxyXFxuICAgIG1pc3MucGljTGlzdChodG1sKVxcclxcbiAgICBzZXRSZXN1bHQobWlzcy5kKVxcclxcbiAgfSx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vbF90eXBlOiAndGV4dF8zJ1xcclxcbiAgICAgICAgfSlcXHJcXG4gICAgICB9KVxcclxcbiAgICB9XFxyXFxuXFxyXFxuICAgIGlmIChzbGlzdCkge1xcclxcbiAgICAgIG1pc3MuZC5wdXNoKHtcXHJcXG4gICAgICAgIHRpdGxlOiAn56ug6IqCJyxcXHJcXG4gICAgICAgIHVybDogbWlzcy5lbXB0eSxcXHJcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXFxyXFxuICAgICAgICBleHRyYToge2xpbmVWaXNpYmxlOiBmYWxzZX0sXFxyXFxuICAgICAgfSlcXHJcXG4gICAgICBcXHJcXG4gICAgICBzbGlzdC5mb3JFYWNoKHRhZyA9PiB7XFxyXFxuICAgICAgICB2YXIgbmFtZSA9IHRhZ1snbmFtZSddXFxyXFxuICAgICAgICB2YXIgdXJsID0gbWlzcy51cmwgKyAnc291bmQvZ2V0c291bmQ/c291bmRpZD0nICsgdGFnWydzb3VuZF9pZCddXFxyXFxuXFxyXFxuICAgICAgICBtaXNzLmQucHVzaCh7XFxyXFxuICAgICAgICAgIHRpdGxlOiBuYW1lLFxcclxcbiAgICAgICAgICB1cmw6ICQobWlzcy5lbXB0eSkubGF6eVJ1bGUoKHVybCkgPT4ge1xcclxcbiAgICAgICAgICAgIHJldHVybiByZXF1aXJlKCdoaWtlcjovL3BhZ2UvZnVuYycpLnNvdW5kUGFyc2UodXJsKVxcclxcbiAgICAgICAgICB9LCB1cmwpLFxcclxcbiAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMidcXHJcXG4gICAgICAgIH0pXFxyXFxuICAgICAgfSlcXHJcXG4gICAgfVxcclxcbiAgICAvLyBjb25zdCBodG1sID0gcmVxdWVzdCh1cmwpXFxyXFxuICAgIC8vIGNvbnN0IGltYWdlcyA9IEpTT04ucGFyc2UoaHRtbClcXHJcXG4gICAgLy8gcmV0dXJuICdwaWNzOi8vJyArIGltYWdlcy5qb2luKCcmJicpXFxyXFxuICB9LFxcclxcbiAgc291bmRQYXJzZTogKHVybCkgPT4ge1xcclxcbiAgICBjb25zdCBodG1sID0gcmVxdWVzdCh1cmwpXFxyXFxuICAgIGNvbnN0IHNvdW5kID0gSlNPTi5wYXJzZShodG1sKVxcclxcbiAgICBzZXRQYWdlVGl0bGUoc291bmRbJ2luZm8nXVsnc291bmQnXVsnc291bmRzdHInXSlcXHJcXG4gICAgcmV0dXJuICd4NVBsYXk6Ly8nICsgc291bmRbJ2luZm8nXVsnc291bmQnXVsnc291bmR1cmwnXVxcclxcbiAgfSxcXHJcXG4gIGNhY2hlTWVudTogKCkgPT4ge1xcclxcbiAgICBsaW5rID0gbWlzcy51cmwgKyAnc291bmQvZ2V0Y2F0YWxvZ2xlYXZlcydcXHJcXG4gICAgbmFtZSA9IE1ZX1JVTEUudGl0bGUgKyAnLmpzb24nXFxyXFxuICAgIGZpbGUgPSAnaGlrZXI6Ly9maWxlcy8nICsgbmFtZVxcclxcbiAgICBpZiAoIWZpbGVFeGlzdChmaWxlKSl7XFxyXFxuICAgICAgcmVzcCA9IGZldGNoKGxpbmspXFxyXFxuICAgICAgaWYocmVzcC5sZW5ndGg+MCl7XFxyXFxuICAgICAgICB3cml0ZUZpbGUoZmlsZSwgcmVzcClcXHJcXG4gICAgICB9ZWxzZXtcXHJcXG4gICAgICAgIGxvZygn5pyq6K+35rGC5Yiw6I+c5Y2VJylcXHJcXG4gICAgICB9XFxyXFxuICAgIH1lbHNle1xcclxcbiAgICAgIHJlc3AgPSByZWFkRmlsZShmaWxlKVxcclxcbiAgICB9XFxyXFxuICAgIHJldHVybiByZXNwXFxyXFxuICB9LFxcclxcbn1cXHJcXG5cXHJcXG4kLmV4cG9ydHMgPSBtaXNzXCJ9XSJ9
Add Comment
Please, Sign In to add comment