Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@爱听音乐@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi54ix5ZCs6Z+z5LmQIiwiYXV0aG9yIjoi5a2j6aOOIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cDovL3d3dy4ydDU4LmNvbSNmeXBhZ2UiLCJ2ZXJzaW9uIjowLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6Im11c2ljIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG4kLnJlcXVpcmUoXCJob21lXCIpLkhvbWUoKTsiLCJzZWFyY2hfdXJsIjoiaHR0cDovL3d3dy4ydDU4LmNvbS9zby8qKi9meXBhZ2UuaHRtbCIsImdyb3VwIjoiI++4j+KDo+KRo+mfs+S5kCIsInNlYXJjaEZpbmQiOiJqczpcbnZhciBkID0gW11cbnZhciBodG1sID0gZmV0Y2goTVlfVVJMKVxubGV0IHBsYXlfbGlzdCA9IHBkZmEoaHRtbCxcImJvZHkmJi5wbGF5X2xpc3QmJmxpXCIpXG5wbGF5X2xpc3QuZm9yRWFjaCgocykgPT4ge1xuICAgICAgICAgICAgICAgIGxldCB0aXRsZSA9IHBkZmgocyxcIi5uYW1lJiZUZXh0XCIpXG4gICAgICAgICAgICAgICAgbGV0IHVybCA9IFwiaHR0cDovL3d3dy4ydDU4LmNvbVwiK3BkZmgocyxcImEmJmhyZWZcIikrJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1wiKS5sYXp5XG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAg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XJsKTtcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICB9LGxpLHVybClcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgfVxcbiAgICBmdW5jdGlvbiBzeSh1cmwsIGQpIHtcXG4gICAgICAgIGxldCBodG1sID0gZmV0Y2godXJsKVxcbiAgICAgICAgbGV0IExhYiA9IHBkZmEoaHRtbCwnYm9keSYmLmxheXVpLXJvdycpO1xcclxcbiAgICAgICAgTGFiLmZvckVhY2goKHgpID0+IHtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogcGRmaCh4LFxcXCJoMSYmVGV4dFxcXCIpLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXFxcInJpY2hfdGV4dFxcXCJcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIGxldCBpdGVtID0gcGRmYSh4LCAnYm9keSYmbGknKTtcXHJcXG4gICAgICAgICAgICBpdGVtLmZvckVhY2goKHMpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IGltZyA9IHBkZmgocyxcXFwiaW1nJiZzcmNcXFwiKVxcbiAgICAgICAgICAgICAgICBsZXQgdGl0bGUgPSBwZGZoKHMsXFxcIi5uYW1lJiZUZXh0XFxcIilcXG4gICAgICAgICAgICAgICAgbGV0IHVybCA9IFxcXCJodHRwOi8vd3d3LjJ0NTguY29tXFxcIitwZGZoKHMsXFxcImEmJmhyZWZcXFwiKVxcbiAgICAgICAgICAgICAgICBpZigvc29uZy8udGVzdCh1cmwpKXtcXG4gICAgICAgICAgICAgICAgICAgIHVybCA9IHVybCskLnJlcXVpcmUoXFxcImhpa2VyOi8vcGFnZS9wdWJsaWNcXFwiKS5sYXp5XFxuICAgICAgICAgICAgICAgIH1lbHNlIGlmKC92aWRlby8udGVzdCh1cmwpKXtcXG4gICAgICAgICAgICAgICAgICAgIHVybD0gdXJsKyQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLk1WXFxuICAgICAgICAgICAgICAgIH1lbHNlIGlmKC9saXN0Ly50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgdXJsPSB1cmwucmVwbGFjZSgvLmh0bWwvLGAvZnlwYWdlLmh0bWxgKSsnQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJwbGF5bGlzdFxcXCIpJ1xcbiAgICAgICAgICAgICAgICB9ZWxzZSBpZigvc2luZ2VyLy50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgdXJsPSB1cmwrJ2Z5cGFnZUBydWxlPWpzOiQucmVxdWlyZShcXFwic2luZ2VyXFxcIiknXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgXFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTp0aXRsZSxcXG4gICAgICAgICAgICAgICAgICAgIHVybDogdXJsLFxcbiAgICAgICAgICAgICAgICAgICAgcGljX3VybDogaW1nLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IGltZz9cXFwiY2FyZF9waWNfM1xcXCI6XFxcInRleHRfMVxcXCJcXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgfVxcbiAgICBmdW5jdGlvbiBsZWliKHVybCxkLHBhZ2UsdGFnKSB7XFxuICAgIGNvbnN0IOS4i+S4gOmhtSA9IFxcXCJwZChodG1sLCAnYTptYXRjaGVzKOS4i+S4gOmhtSkmJmhyZWYnKVxcXCI7XFxuICAgZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS95aT9ydWxlPc6xJykpLnJ1bGUpXFxudmFyIOWumuS9jeS/oeaBryA9IFt7XFxuICAgI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rJC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2UvcHVibGljXFxcIikuTVZcXG4gICAgICAgICAgICAgICAgfWVsc2UgaWYoL2xpc3QvLnRlc3QodXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICB1cmw9IHVybC5yZXBsYWNlKC8uaHRtbC8sYC9meXBhZ2UuaHRtbGApKydAcnVsZT1qczokLnJlcXVpcmUoXFxcInBsYXlsaXN0XFxcIiknXFxuICAgICAgICAgICAgICAgIH1lbHNlIGlmKC9zaW5nZXIvLnRlc3QodXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICB1cmw9IHVybCsnZnlwYWdlQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJzaW5nZXJcXFwiKSdcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6dGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGltZyxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBpbWc/XFxcImNhcmRfcGljXzNcXFwiOlxcXCJ0ZXh0XzFcXFwiXFxuICAgICAgICAgICAgICAgIH0pICAgXFxuICAgIH0pXFxuYXV0b1BhZ2UoKTtcXG4gICAgfVxcbiAgICBpZiAoZ2V0VmFyKFxcXCJmZW5sXFxcIixcXFwi6aaW6aG1XFxcIikgPT0gXFxcIummlumhtVxcXCIpIHtcXG4gICAgICAgIGxldCB1cmwgPSBnZXRNeVZhcihcXFwidXJsXFxcIixob3N0KVxcbiAgICAgICAgLy9sb2codXJsKVxcbiAgICAgICAgaWYocGFnZT09MSl7XFxuICAgICAgICAgICAgc3kodXJsLCBkKTtcXG4gICAgICAgICAgICB9XFxuICAgIH0gZWxzZVxcbiAgICBpZiAoZ2V0VmFyKFxcXCJmZW5sXFxcIikgPT0gXFxcIuaOkuihjFxcXCIpIHtcXG4g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ICAgICBjb2xfdHlwZTogXFxcInJpY2hfdGV4dFxcXCJcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIGxldCBpdGVtID0gcGRmYSh4LCAnYm9keSYmbGknKTtcXHJcXG4gICAgICAgICAgICBpdGVtLmZvckVhY2goKHMpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChzLFxcXCIubmFtZSYmVGV4dFxcXCIpXFxuICAgICAgICAgICAgICAgIGxldCB1cmwgPSBcXFwiaHR0cDovL3d3dy4ydDU4LmNvbVxcXCIrcGRmaChzLFxcXCJhJiZocmVmXFxcIikrJC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2UvcHVibGljXFxcIikubGF6eVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6dGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgICAgICAgICAgICAgIC8vcGljX3VybDogaW1nLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6XFxcInRleHRfMVxcXCJcXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG5zZXRSZXN1bHQoZClcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuatjOaJi1wiLFwicGF0aFwiOlwic2luZ2VyXCIsXCJydWxlXCI6XCJqczpcXG5hZGRMaXN0ZW5lcihcXFwib25DbG9zZVxcXCIsICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICBsZXQga2V5cyA9IGxpc3RNeVZhcktleXMoKTtcXG4gICAgZm9yIChsZXQgaXQgb2Yga2V5cykge1xcbiAgICAgICAgY2xlYXJNeVZhcihpdCk7XFxuICAgIH1cXG59KSk7XFxudmFyIGQgPSBbXVxcbnZhciBodG1sID0gZmV0Y2goTVlfVVJMKVxcbmNvbnN0IHBhZ2UgPSBNWV9QQUd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cGFnZS5odG1sYCkrJ0BydWxlPWpzOiQucmVxdWlyZShcXFwicGxheWxpc3RcXFwiKSdcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6dGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGltZyxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBpbWc/XFxcImNhcmRfcGljXzNcXFwiOlxcXCJ0ZXh0XzFcXFwiXFxuICAgICAgICAgICAgICAgIH0pICAgXFxuICAgIH0pXFxuc2V0UmVzdWx0KGQpXCJ9XSIsImljb24iOiJodHRwOi8vd3d3LjJ0NTguY29tL2Zhdmljb24uaWNvIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment