Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@禁漫天堂@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6ImJvZHkmJi5idG4tdG9vbGJhciYmbGksLTEmJlRleHQiLCJ0aXRsZSI6Iuemgea8q+WkqeWggiIsImF1dGhvciI6IkxJVSblrZDkuJHlr4Xlja8mS2lsbGVyJkxveURnSWsiLCJ1cmwiOiJmeXllYXIvYWxidW1zL2Z5Y2xhc3M/bz1meWFyZWEmcGFnZT1meXBhZ2UiLCJ2ZXJzaW9uIjozLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIOmfqea8qyAmIOWQjOS6uiAmIOefreevhyAmIOWNleacrCAmIOWFtuS7liAiLCJ0eXBlIjoiY2FydG9vbiIsImNsYXNzX3VybCI6Imhhbm1hbiZkb3VqaW4mc2hvcnQmc2luZ2xlJmFub3RoZXIiLCJhcmVhX25hbWUiOiIg5pyA5aSa54K56ZiFICYg5pyA5aSa5Zu+54mHICYg5pyA54ixICYg5pyA5pawICIsImFyZWFfdXJsIjoibXYmbXAmdGYmbXIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiLlhY3nv7sm5YWN57+7MSblhY3nv7syJuKciO+4jyIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiJodHRwczovL2ptY29taWMyLm9ubCZodHRwczovL2ptY29taWMuYXNpYSZodHRwczovL2ptY29taWM0LmNjJmh0dHBzOi8vMThjb21pYy52aXAiLCJmaW5kX3J1bGUiOiIubS0wJiYuY29sLXhzLTY7c3BhbiwxJiZUZXh0O2ltZyYmZGF0YS1jZnNyYzs7YSYmaHJlZiIsInNlYXJjaF91cmwiOiJodHRwczovLzE4Y29taWMudmlwL3NlYXJjaC9waG90b3M/c2VhcmNoX3F1ZXJ5PSoqJm1haW5fdGFnPTAmbz1tdiZ0PWEmcGFnZT1meXBhZ2UiLCJncm91cCI6I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GQucHVzaCh7XG4gICAgICAgIHRpdGxlOiBcIuS4i+i9vea8q+eUu1wiLFxuICAgICAgICB1cmw6ICdoaWtlcjovL3BhZ2UvZG93bmxvYWQudmlldyNub1JlY29yZEhpc3RvcnkjI25vUmVmcmVzaCM/cnVsZT3mnKzlnLDotYTmupDnrqHnkIYnLFxuICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgY2hhcHRlckxpc3Q6IGNoYXB0ZXJMaXN0LFxuICAgICAgICAgICAgaW5mbzoge1xuICAgICAgICAgICAgICAgIGJvb2tOYW1lOiBkZXNfdGl0bGUsIC8v5ryr55S75ZCN56ewLFxuICAgICAgICAgICAgICAgIHJ1bGVOYW1lOiBNWV9SVUxFLnRpdGxlLFxuICAgICAgICAgICAgICAgIGJvb2tUb3BQaWM6IGRlc19waWMsXG4gICAgICAgICAgICAgICAgcGFyc2VDb2RlOiAkLnRvU3RyaW5nKGJqbSksXG4gICAgICAgICAgICAgICAgZGVjb2RlOiAkLnRvU3RyaW5nKCh0aXRsZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJC5yZXF1aXJlKFwiZD9ydWxlPVwiICsgdGl0bGUpKHVybCwgaW5wdXQpO1xuICAgICAgICAgICAgICAgIH0sIE1ZX1JVTEUudGl0bGUpLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGRlZmF1bHRWaWV3OiBcIjFcIlxuICAgICAgICB9XG5cbiAgICB9KTtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogXCLmnKzlnLDkuabmnrZcIixcbiAgICAgICAgdXJsOiAnaGlrZXI6Ly9wYWdlL01haW4udmlldyNub1JlY29yZEhpc3RvcnkjI25vUmVmcmVzaCM/cnVsZT3mnKzlnLDotYTmupDnrqHnkIYnLFxuICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgIH0pO1xuXG4gICAgZC5wdXNoKHtcbiAgICAgICAgdGl0bGU6IChnZXRNeVZhcignc2hzb3J0JykgPT09ICcxJykgPyAn4oCc4oCc4oCd4oCdPGI+PHNwYW4gc3R5bGU9XCJjb2xvcjogI0ZGMDAwMFwiPn7il4Z+5q2j5Zyo5L2/55So6YCG5bqPfuKXhn48L3NwYW4+PC9iPicgOiAn4oCc4oCc4oCd4oCdPGI+PHNwYW4gc3R5bGU9XCJjb2xvcjogIzFhYWQxOVwiPn7il4Z+5q2j5Zyo5L2/55So5q2j5bqPfuKXhn48L3NwYW4+PC9iPicsXG4gICAgICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgIGxldCBjb25mID0gZ2V0TXlWYXIoJ3Noc29ydCcpO1xuICAgICAgICAgICAgaWYgKGNvbmYgPT0gJzEnKSB7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJzaHNvcnRcIiwgXCIwXCIpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcInNoc29ydFwiLCBcIjFcIilcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+WIh+aNouaOkuW6j+aIkOWKnydcbiAgICAgICAgfSksXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMSdcbiAgICB9KTtcblxuXG4gICAgaWYgKGNvbnRzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdXJsOiB1cmwgKyBsYXp5QmptLFxuICAgICAgICAgICAgdGl0bGU6IFwi54K55Ye755u05o6l6ZiF6K+7XCIsXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJ0ZXh0XzFcIixcbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgbG9uZ0NsaWNrOiBbe1xuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfkuI3op6Plr4YnLFxuICAgICAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHVybCwgbGF6eUJqbSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyBsYXp5QmptXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCB1cmwsIGxhenlCam0pXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn6Kej5a+GJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwsIGxhenlKbSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyBsYXp5Sm1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sIHVybCwgbGF6eUptKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgY2hhcHRlckxpc3QucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogZGVzX3RpdGxlLFxuICAgICAgICAgICAgdXJsOiBcImh0dHBzOi8vMThjb21pYy52aXAvcGhvdG8vXCIgKyBNWV9VUkwuc3BsaXQoXCJcXC9cIilbNF1cbiAgICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgbGV0IGxpc3QgPSBjb250cy5tYXAodiA9PiB7XG4gICAgICAgICAgICBsZXQgdGl0bGUgPSBwZGZoKHYsICdhJiZUZXh0JyksXG4gICAgICAgICAgICAgICAgdXJsID0gcGQodiwgJ2EmJmhyZWYnKTtcbiAgICAgICAgICAgIGNoYXB0ZXJMaXN0LnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiB0aXRsZSxcbiAgICAgICAgICAgICAgICB1cmw6IHVybFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIHRpdGxlOiB0aXRsZSxcbiAgICAgICAgICAgICAgICB1cmw6IHVybCArIGxhenlKbSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXCJ0ZXh0XzFcIixcbiAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBsb25nQ2xpY2s6IFt7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfkuI3op6Plr4YnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwsIGxhenlCam0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybCArIGxhenlCam1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LCB1cmwsIGxhenlCam0pXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn6Kej5a+GJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygodXJsLCBsYXp5Sm0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybCArIGxhenlKbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIHVybCwgbGF6eUptKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKGdldE15VmFyKCdzaHNvcnQnKSA9PT0gJzEnKSB7XG4gICAgICAgICAgICBsaXN0LnJldmVyc2UoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGQgPSBkLmNvbmNhdChsaXN0KTtcbiAgICB9XG59IGNhdGNoIChlKSB7XG4gICAgbG9nKGUudG9TdHJpbmco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