Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@乐子剧@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5LmQ5a2Q5YmnIiwiYXV0aG9yIjoiemV0YWxwaGEiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL2xlemlqdS5jb20vYXBpL2Zyb250L2VwaXNvZGVzL2luZGV4P2tleXdvcmRzPWZ5c291JmtleV90eXBlPXRpdGxlJnBlcl9wYWdlPTEyJnBhZ2U9ZnlwYWdlJm9yZGVyPWZ5c29ydCZjYXRhPWZ5Y2xhc3MmZXBfbnVtPWZ5YXJlYSZmeXllYXIiLCJ2ZXJzaW9uIjowLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoi5YWo6YOoJuWPpOijhSbomZDmgYsm6YCG6KKtJuaCrOeWkSbnpZ7osaom6YeN55SfJuWkjeS7hybnqb/otoom55Sc5a6gJuW8uuiAhSbokIzlrp0m55m75b2VIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiJjImMyY0JjUmNiY3JjgmOSYxMCYxMSYxMiZsb2dpbiIsImFyZWFfbmFtZSI6IuWFqOmDqCYxLTMw6ZuGJjwzMOmbhiY8NjDpm4YmPDkw6ZuGJjwxMjDpm4YiLCJhcmVhX3VybCI6IjAmMSYyJjMmNCY1Iiwic29ydF9uYW1lIjoi54Ot5bqmJuaWsOWJpybmnIDmlrAiLCJ5ZWFyX25hbWUiOiLlhajpg6gm55S3JuWlsyIsInNvcnRfdXJsIjoiMCYxJjIiLCJ5ZWFyX3VybCI6IiZzZXg9MSZzZXg9MiIsImZpbmRfcnVsZSI6ImpzOlxuLy9sb2coTVlfVVJMKVxuTVlfVVJMID0gTVlfVVJMLnJlcGxhY2UoJ2hpa2VyOi8vZW1wdHkjIycsICcnKTtcbnZhciBkID0gW107XG52YXIgcGFnZSA9IE1ZX1BBR0U7XG5cbnZhciBzb3UgPSBnZXRNeVZhcigna2V5d29yZCcsICcnKTtcblxuXG5mdW5jdGlvbiBmb3JtYXROdW1iZXIobnVtKSB7XG4gICAgaWYgKG51bSA+PSAxMDAwICYmIG51bSA8IDEwMDAwKSB7XG4gICAgICAgIHJldHVybiAobnVtIC8gMTAwMCkudG9GaXhlZCgyKSArICdrJztcbiAgICB9IGVsc2UgaWYgKG51bSA+PSAxMDAwMCkge1xuICAgICAgICByZXR1cm4gKG51bSAvIDEwMDAwKS50b0ZpeGVkKDIpICsgJ3cnO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBudW0udG9TdHJpbmcoKTtcbiAgICB9XG59XG5cblxuTVlfVVJMID0gTVlfVVJMLnJlcGxhY2UoJ2Z5c291Jywgc291KTtcbi8vbG9nKE1ZX1VSTClcbmlmIChNWV9VUkwuaW5jbHVkZXMoJ2xvZ2luJykpIHtcbiAgICBsZXQgaXNydWxlPXRydWU7ICAgXG4gICAgZXZhbChKU09OLnBhcnNlKGZldGNoKCdoaWtlcjovL3BhZ2UvbG9naW4nKSkucnVsZSlcbn0gZWxzZSB7XG4gICAgaWYgKHBhZ2UgPT0gMSkge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IFwi8J+UjVwiLFxuICAgICAgICAgICAgdXJsOiAkLnRvU3RyaW5nKChyKSA9PiB7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoJ2tleXdvcmQnLCBpbnB1dCk7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgICAgICAgICAgfSwgTVlfUlVMRS50aXRsZSksXG4gICAgICAgICAgICBkZXNjOiAn5pCc54K55LuA5LmIJyxcbiAgICAgICAgICAgIGNvbF90eXBlOiBcImlucHV0XCIsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGRlZmF1bHRWYWx1ZTogZ2V0TXlWYXIoJ2tleXdvcmQnLCAnJykgfHwgXCJcIixcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChNWV9VUkwpKS5yZXN1bHQ7XG4gICAgdmFyIGxpc3QgPSBqc29uLmRhdGE7XG4gICAgbGlzdC5mb3JFYWNoKHggPT4ge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHgudGl0bGUsXG4gICAgICAgICAgICBpbWc6ICdodHRwczovLzEyMi4yMjguMTkuMTUvJyArIHguY292ZXIgKyAnQFJlZmVyZXI9JyArIGdldEhvbWUoTVlfVVJMKSxcbiAgICAgICAgICAgIGRlc2M6ICfilrbvuI8nICsgZm9ybWF0TnVtYmVyKHgucGxheV9udW0pICsgJyAnICsgeC5lcF9udW0gKyAn6ZuGJyxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHk/aWQ9JyArIHguaWQsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGltZzogJ2h0dHBzOi8vMTIyLjIyOC4xOS4xNS8nICsgeC5jb3ZlciArICdAUmVmZXJlcj0nICsgZ2V0SG9tZShNWV9VUkwpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfSlcbn1cblxuc2V0UmVzdWx0KGQpIiwic2VhcmNoX3VybCI6IiIsImdyb3VwIjoi4pGg5b2x6KeGIiwic2VhcmNoRmluZCI6IiIsImRldGFpbF9jb2xfdHlwZSI6Im1vdmllXzEiLCJkZXRhaWxfZmluZF9ydWxlIjoianM6XG52YXIgaWQgPSBnZXRQYXJhbSgnaWQnKTtcbnZhciBkID0gW107XG5cbnZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChjb25maWcuaG9zdCArICcvYXBpL2Zyb250L2VwaXNvZGVzL3NldF9saXN0P3JlcV9hdD0nICsgbmV3IERhdGUoKS5nZXR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AgICAgIH0pXFxuICAgICAgICB9XFxuICAgIH0sIHtcXG4gICAgICAgIHRpdGxlOiAn55m75b2VJyxcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXFxuICAgICAgICB1cmw6ICQoJycpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgICAgICAgICBldmFsKEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS9sb2dpbicpKS5ydWxlKTtcXG4gICAgICAgICAgICB2YXIgYiA9ICQubG9naW4oKTtcXG4gICAgICAgICAgICBpZiAoYikge1xcbiAgICAgICAgICAgICAgICBiYWNrKCk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICB9KVxcbiAgICB9LCB7XFxuICAgICAgICB0aXRsZTogJ+a4hemZpOeZu+W9leS/oeaBrycsXFxuICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICAgICAgICAgIGNsZWFySXRlbSgnYWNjZXNzX3Rva2VuJyk7XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKVxcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICB9KSxcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXFxuICAgIH0sIHtcXG4gICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdPHNtYWxsPicgKyAn5rKh5pyJ6LSm5Y+377yf54K55oiR5Y675rOo5YaMJy5mb250Y29sb3IoJ2dyZXknKSArICc8L3NtYWxsPicsXFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnLFxcbiAgICAgICAgdXJsOiAnd2ViOi8vJyArIGNvbmZpZy5ob3N0ICsgJy8jL3BhZ2VzL3VzZXIvcmVnJ1xcbiAgICB9KVxcbiAgICBzZXRSZXN1bHQoZClcXG59XCJ9XSIsImljb24iOiJodHRwczovL2FwaS54aW5hYy5uZXQvaWNvbi8/dXJsPWh0dHBzOi8vbGV6aWp1LmNvbSIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment