xiaomianao666

小程序:青豆

Jul 28th, 2024
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@青豆@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6ImpzOlxuZnVuY3Rpb24gZ2V0RG91YmFuUmVzKHVybCkge1xuICAgIGlmICh1cmwuaW5kZXhPZignYXBpa2V5JykgPT09IC0xKSB7XG4gICAgICAgIHVybCArPSAodXJsLmluZGV4T2YoJz8nKSA9PT0gLTEgPyAnPycgOiAnJicpICsgXCJhcGlrZXk9MGRhZDU1MWVjMGY4NGVkMDI5MDdmZjVjNDJlOGVjNzBcIlxuICAgIH1cbiAgICBsZXQgcyA9IGZldGNoKHVybCwge1xuICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICBcIlVzZXItQWdlbnRcIjogXCJSZXh4YXItQ29yZS8wLjEuMyBhcGktY2xpZW50LzEgY29tLmRvdWJhbi5mcm9kby83LjkuMC5iZXRhMigyMTUpIEFuZHJvaWQvMjUgcHJvZHVjdC9UQVMtQUwwMCB2ZW5kb3IvSFVBV0VJIG1vZGVsL1RBUy1BTDAwICByb20vYW5kcm9pZCAgbmV0d29yay93aWZpICBwbGF0Zm9ybS9tb2JpbGUgY29tLmRvdWJhbi5mcm9kby83LjkuMC5iZXRhMigyMTUpIFJleHhhci8xLjIuMTUxICBwbGF0Zm9ybS9tb2JpbGUgMS4yLjE1MVwiXG4gICAgICAgIH0sXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICBib2R5OiAnaG9zdD1mcm9kby5kb3ViYW4uY29tJ1xuICAgIH0pO1xuICAgIHJldHVybiBKU09OLnBhcnNlKHMpO1xufVxubGV0IHR5cGUgPSBnZXRQYXJhbSgndHlwZScsICcnKSxcbiAgICBpZCA9IGdldFBhcmFtKCdpZCcsICcnKSxcbiAgICB0aXRsZSA9IGdldFBhcmFtKCd0aXRsZScsICcnKTtcbmxldCByZ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iU5pCc57SiOiB7XFxuICAgICAgICAgIG5hbWU6ICcnLFxcbiAgICAgICAgICBwaWM6ICcnLFxcbiAgICAgICAgfSxcXG4gICAgICB9LFxcbiAgICAgIGRldGFpbHNWaWV3Q29uZmlnczoge1xcbiAgICAgICAgdXNlOiAn6buY6K6kJyxcXG4gICAgICAgIOm7mOiupDoge1xcbiAgICAgICAgICBjb25maWc6IFxcXCJldmFsKGZldGNoKGdldFZhcigncWRiX2ZpbGUnKSkpO2RldGFpbHNWaWV3KHR5cGUsIGlkKTtcXFwiLFxcbiAgICAgICAgfSxcXG4gICAgICB9LFxcbiAgICAgIGhvbWVQYWdlQ29uZmlnczoge1xcbiAgICAgICAgdXNlOiAn6buY6K6kJyxcXG4gICAgICAgIOm7mOiupDoge1xcbiAgICAgICAgICBjb25maWc6IGBsZXQgZCA9IFtdO1xcbmQucHVzaCh7XFxuICAgIHRpdGxlOiAnJyxcXG4gICAgaW1nOiAnaHR0cHM6Ly9naXRjb2RlLm5ldC9xcV80MTg0Njc1Ni9oaWtlci8tL3Jhdy9tYXN0ZXIvaW1nL+ixhueToy5wbmcnLFxcbiAgICBkZXNjOiAnMCcsXFxuICAgIGNvbF90eXBlOiAnY2FyZF9waWNfMScsXFxuICAgIHVybDogJCgnaGlrZXI6Ly9lbXB0eSNub0hpc3RvcnkjJykucnVsZSgoKSA9PiB7XFxuICAgICAgICB0cnkge1xcbiAgICAgICAgICAgIHNldFBhZ2VUaXRsZSgn6K6+572uJyk7XFxuICAgICAgICAgICAgZXZhbChmZXRjaChnZXRWYXIoJ3FkYl9maWxlJykpKTtcXG4gICAgICAgICAgICAvLyBhZGRMaXN0ZW5lcihcXFwib25DbG9zZVxcXCIsICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgICAgIC8vICAgICBjbGVhclZhcigncWRiX2RlYnVnJyk7XFxuICAgICAgICAgICAgLy8gICAgIGNsZWFyVmFyKCdnaXR2ZXJzaW9uJyk7XFxuICAgICAgICAgICAgLy8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AkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v6K+l5o+S5Lu25peg6K6+572u6aG16Z2iJztcXG4gICAgICAgICAgfSksXFxuICAgICAgICB9LFxcbiAgICAgICAg5pat5o+SOiB7XFxuICAgICAgICAgIGNvbmZpZzogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgbGV0IGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9ydWxlcy9EdWFuTmlhbi9NeVBhcnNlLmpzb24nO1xcbiAgICAgICAgICAgIGxldCBvbGRmaWxlID0gJ2hpa2VyOi8vZmlsZXMvY2FjaGUvTXlQYXJzZVNldC5qc29uJztcXG4gICAgICAgICAgICBpZiAoZmlsZUV4aXN0KGZpbGUpKSB7XFxuICAgICAgICAgICAgICBldmFsKCdqc29uPScgKyBmZXRjaChmaWxlKSk7XFxuICAgICAgICAgICAgICBsZXQganNVcmwgPSBqc29uLnNldHRpbmdzLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIGF5dG1QYXJzZShpbnB1dCk7XFxuICAgICAgICAgICAgfSBlbHNlIGlmIChmaWxlRXhpc3Qob2xkZmlsZSkpIHtcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IEpTT04ucGFyc2UoZmV0Y2gob2xkZmlsZSkpLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIGF5dG1QYXJzZShpbnB1dCk7XFxuICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/msqHmib7liLDmlq3mj5LphY3nva7mlofku7YnO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgfSksXFxuICAgICAgICAgIHNldHRpbmc6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgICAgIGxldCBmaWxlID0gJ2hpa2VyOi8vZmlsZXMvcnVsZXMvRHVhbk5pYW4vTXlQYXJzZS5qc29uJztcXG4gICAgICAgICAgICBsZXQgb2xkZmlsZSA9ICdoaWtlcjovL2ZpbGVzL2NhY2hlL015UGFyc2VTZXQuanNvbic7XFxuICAgICAgICAgICAgaWYgKGZpbGVFeGlzdChmaWxlKSkge1xcbiAgICAgICAgICAgICAgZXZhbCgnanNvbj0nICsgZmV0Y2goZmlsZSkpO1xcbiAgICAgICAgICAgICAgbGV0IGpzVXJsID0ganNvbi5zZXR0aW5ncy5jajtcXG4gICAgICAgICAgICAgIGV2YWwoZmV0Y2goanNVcmwpKTtcXG4gICAgICAgICAgICAgIHJldHVybiBzZXRVcmw7XFxuICAgICAgICAgICAgfSBlbHNlIGlmIChmaWxlRXhpc3Qob2xkZmlsZSkpIHtcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IEpTT04ucGFyc2UoZmV0Y2gob2xkZmlsZSkpLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIHNldFVybDtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2UvUm91dGU/cnVsZT1NeUZpZWxk4bSw4oG/JnR5cGU96K6+572uJztcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgIH0pLFxcbiAgICAgICAgfSxcXG4gICAgICB9LFxcbiAgICB9O1xcbiAgICAgICAgICAgIGxldCBpdGVtID0gJyc7XFxuICAgICAgICAgICAgc3dpdGNoIChzZWwpIHtcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5pif5pif6aKc6ImyJzpcXG4gICAgICAgICAgICAgICAgICAgIGl0ZW0gPSAnc3RhckNvbG9yJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pgInkuK3moIfnrb7popzoibInOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdjaG9vc2VDb2xvcic7XFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5b+r6YCf5pCc57SiJzpcXG4gICAgICAgICAgICAgICAgICAgIGl0ZW0gPSAncXVpY2tTZWFyY2hDb25maWdzJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pppbpobUnOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdob21lUGFnZUNvbmZpZ3MnO1xcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgICAgIGNhc2UgJ+mHjee9ruivpuaDhemhtSc6XFxuICAgICAgICAgICAgICAgICAgICBpdGVtID0gJ2RldGFpbFZpZXdDb25maWdzJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7lhajpg6jorr7nva7pobknOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdhbGwnO1xcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIC8vIGV2YWwoZmV0Y2goZ2V0VmFyKCdxZGJfZmlsZScpKSk7XFxuICAgICAgICAgICAgaWYgKGl0ZW0gPT0gJ2FsbCcpIHtcXG4gICAgICAgICAgICAgICAgd3JpdGVGaWxlKGdldFZhcigncWRiX2NvbmZpZycpLCBKU09OLnN0cmluZ2lmeShkZWZhdWx0Q29uZmlncykpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8v5beyXFxcIiArIHNlbDtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICBsZXQgY29uZmlnID0gSlNPTi5wYXJzZShm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