xiaomianao666

小程序:视界|世界

Jul 31st, 2024
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@视界|世界@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuinhueVjHzkuJbnlYwiLCJhdXRob3IiOiIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyMjZnlBbGwiLCJ2ZXJzaW9uIjo1LCJjb2xfdHlwZSI6Imljb25fMiIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoibGl2ZSIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGRhdGEgPSBbXTtcbmRhdGEucHVzaCh7XG4gICAgdGl0bGU6IFwi8J+UjlwiLFxuICAgIHVybDogXCInaGlrZXI6Ly9zZWFyY2g/cnVsZT1cIiArIE1ZX1JVTEUudGl0bGUgKyBcIiZzPScraW5wdXRcIixcbiAgICBkZXNjOiBcIuaQnOe0oumikemBk1wiLFxuICAgIGNvbF90eXBlOiBcImlucHV0XCJcbn0pXG52YXIgczIgPSAnaHR0cHM6Ly9hcGkuaXhpYW93YWkuY24vZ3FhcGkvZ3FhcGkucGhwP2dsaWRlQ2FjaGU9c2tpcCcgKyAnIycgKyBuZXcgRGF0ZSgpLmdldFRpbWUoKTtcbi8qZnVuY3Rpb24gZ2V0VGl0bGVBbmREZXNjKCkge1xuICAgIGxldCBoaXRva290byA9W107XG4gICAgbGV0IGpzb24gPSBKU09OLnBhcnNlKGZldGNoKCdodHRwczovL3YxLmhpdG9rb3RvLmNuLz9jPWknLCB7fSkpO1xuICAgIGxldCBzb3VyY2UgPSBqc29uLmZyb21fd2hvO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sOiBcImhpa2VyOi8vaG9tZUDmnKzlnLDlub/mkq18fGh0dHBzOi8vaGFpa3Vvc2hpamllLmNuL3VzZXIvMjQzXCIsXG59KTtcbiAgICAgICAgbGV0IGZsYWcgPSBNWV9VUkwuc3BsaXQoXCIjI1wiKVsxXS5zcGxpdCgnIycpWzFdO1xubGV0IGxhenlSdWxlID0gdSA9PiB7XG4gICAgaWYgKHUuc3RhcnRzV2l0aChcIntcIikpIHtcbiAgICAgICAgcmV0dXJuIHU7XG4gICAgfVxuICAgIGlmICgvKHJ0bXB8eHN8Zmx2fG0zdTh8bXA0KS8udGVzdCh1KSkge1xuICAgICAgICByZXR1cm4gdSArICcjaXNWaWRlbz10cnVlIydcbiAgICB9IGVsc2UgaWYgKC8oaHV5YS5jb20pLy50ZXN0KHUpKSB7XG4gICAgICAgIHJldHVybiB1XG4gICAgfVxuICAgIHJldHVybiAkKHUpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGZldGNoKGlucHV0LCB7XG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSdcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHJlZGlyZWN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxuICAgICAgICAgICAgfSkpLmhlYWRlcnMubG9jYXRpb25bMF0gKyAnI2lzVmlkZW89dHJ1ZSMnXG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgIGxvZyhlLnRvU3RyaW5nKCkpXG4gICAgICAgICAgICByZXR1cm4gXCJ0b2FzdDovL+mikemBk+a6kOS7peWkseaViO+8jOabtOaNouWFtuWug+mikemBk+ingueci1wiXG4gICAgICAgIH1cbi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dXApLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgbGluZVZpc2libGU6IGZhbHNlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH0pXG4gICAgZm9yIChsZXQgdGl0bGUgaW4gaXRlbXNbc2VsZWN0R3JvdXBdKSB7XG4gICAgICAgIGxldCB1cyA9IGl0ZW1zW3NlbGVjdEdyb3VwXVt0aXRsZV07ICAgICAgICBcbiAgICAgICAgZGF0YS5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiB0aXRsZS5zcGxpdChcIiMjI1wiKVswXSxcbiAgICAgICAgICAgIHVybDogdXMubGVuZ3RoIDwgMiA/IHVzWzBdOiBKU09OLnN0cmluZ2lmeSh7XG4gICAgICAgICAgICAgICAgdXJsczogdXNcbiAgICAgICAgICAgIH0pLFxuLy9jb2xfdHlwZTogJ2ljb25fMl9yb3VuZCcsXG4gICAgICAgICAgICBpbWc6IFwiXCJcbiAgICAgICAgfSlcbiAgICB9XG59XG4gICAgICAgICAgY2F0Y2ggKGUpIHtcbiAgICBkYXRhLnB1c2goe1xuICAgICAgICB0aXRsZTogXCLmlbDmja7liqDovb3lpLHotKVcIixcbiAgICAgICAgZGVzYzogSlNPTi5zdHJpbmdpZnkoZSksXG4gICAgICAgIGNvbF90eXBlOiBcInRleHRfMVwiXG4gICAgfSlcbn1cbiBmb3IgKGxldCBpdCBvZiBkYXRhKSB7XG4gICAgaWYgKCFpdC5jb2xfdHlwZSAmJiBpdC51cmwgJiYgIWl0LnVybC5zdGFydHNXaXRoKFwie1wiKSkge1xuICAgICAgICBpdC51cmwgPSBsYXp5UnVsZShpdC51cmwpO1xuICAgIH1cbiAgICBpZiAoIWl0LmNvbF90eXBlICYmIGl0LnVybCkge1xuICAgICAgICBpdC5pbWcgPSBcImh0dHBzOi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AgICAgICBncm91cCA9IGlbMl07XFxuICAgICAgICAgICAgY29udGludWU7XFxuICAgICAgICB9XFxuICAgICAgICBsZXQgdGl0bGUgPSBpWzJdLFxcbiAgICAgICAgICAgIHVybCA9IGlbM10udHJpbSgpO1xcbiAgICAgICAgaWYgKHVybC5pbmRleE9mKFxcXCIucGhwXFxcIikgPiAwIHx8IHVybC5pbmNsdWRlcyhcXFwiQGxhenlSdWxlXFxcIikgfHwgdXJsLmluY2x1ZGVzKFxcXCI7XFxcIikpIHtcXG4gICAgICAgICAgICB0aXRsZSA9IHRpdGxlICsgXFxcIiMjI1xcXCIgKyBuZXcgRGF0ZSgpLmdldFRpbWUoKSArIG1kNSh1cmwpO1xcbiAgICAgICAgICAgIC8vbG9nKGopO1xcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAvL3VybCA9IHVybCArIFxcXCIjaXNWaWRlbz10cnVlI1xcXCI7XFxuICAgICAgICB9XFxuICAgICAgICBpZiAoZmlsdGVyICE9IG51bGwgJiYgIXRpdGxlLmluY2x1ZGVzKGZpbHRlcikpIHtcXG4gICAgICAgICAgICBjb250aW51ZVxcbiAgICAgICAgfVxcbiAgICAgICAgaWYgKGl0ZW1zW2dyb3VwXSkge1xcbiAgICAgICAgICAgIGlmIChpdGVtc1tncm91cF1bdGl0bGVdKSB7XFxuICAgICAgICAgICAgICAgIGl0ZW1zW2dyb3VwXVt0aXRsZV0gPSBpdGVtc1tncm91cF1bdGl0bGVdLmNvbmNhdChbdXJsXSk7XFxuICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgaXRlbXNbZ3JvdXBdW3RpdGxlXSA9IFt1cmxdO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgaXRlbXNbZ3JvdXBdID0ge307XFxuICAgICAgICAgICAgaXRlbXNbZ3JvdXBdW3RpdGxlXSA9IFt1cmxdO1xcbiAgICAgICAgfTtcXG4gICAgfVxcbiAgICByZXR1cm4gaXRlbXM7XFxufVxcbiQuZXhwb3J0cyA9IHtcXG4gICAgcmVuZGVyTGl2ZURhdGE6IHJlbmRlckxpdmVEYXRhLFxcbn1cIn1dIiwiaWNvbiI6Imh0dHBzOi8vZ2ltZzIuYmFpZHUuY29tL2ltYWdlX3NlYXJjaC9zcmM9aHR0cCUzQSUyRiUyRmNidTAxLmFsaWNkbi5jb20lMkZpbWclMkZpYmFuayUyRjIwMTklMkY5ODclMkY5MjclMkYxMjcxNDcyOTc4OV8yNDg5OTk1NTUuanBnIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment