Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@禁漫天堂2@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6ImJvZHkmJi5idG4tdG9vbGJhciYmbGksLTEmJlRleHQiLCJ0aXRsZSI6Iuemgea8q+WkqeWggjIiLCJhdXRob3IiOiJMSVUm5a2Q5LiR5a+F5Y2vJktpbGxlciZMb3lEZ0lrIiwidXJsIjoiZnl5ZWFyL2FsYnVtcy9meWNsYXNzP289ZnlhcmVhJnBhZ2U9ZnlwYWdlIiwidmVyc2lvbiI6MywiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiDpn6nmvKsgJiDlkIzkurogJiDnn63nr4cgJiDljZXmnKwgJiDlhbbku5YgIiwidHlwZSI6ImNhcnRvb24iLCJjbGFzc191cmwiOiJoYW5tYW4mZG91amluJnNob3J0JnNpbmdsZSZhbm90aGVyIiwiYXJlYV9uYW1lIjoiIOacgOWkmueCuemYhSAmIOacgOWkmuWbvueJhyAmIOacgOeIsSAmIOacgOaWsCAiLCJhcmVhX3VybCI6Im12Jm1wJnRmJm1yIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoi5YWN57+7JuWFjee/uzEm5YWN57+7MibinIjvuI8iLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiaHR0cHM6Ly9qbWNvbWljMi5vbmwmaHR0cHM6Ly9qbWNvbWljLmFzaWEmaHR0cHM6Ly9qbWNvbWljNC5jYyZodHRwczovLzE4Y29taWMudmlwIiwiZmluZF9ydWxlIjoiLm0tMCYmLmNvbC14cy02O3NwYW4sMSYmVGV4dDtpbWcmJnNyYzs7YSYmaHJlZiIsInNlYXJjaF91cmwiOiJodHRwczovLzE4Y29taWMudmlwL3NlYXJjaC9waG90b3M/c2VhcmNoX3F1ZXJ5PSoqJm1haW5fdGFnPTAmbz1tdiZ0PWEmcGFnZT1meXBhZ2UiLCJncm91cC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3QgPSBbXTtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogXCLkuIvovb3mvKvnlLtcIixcbiAgICAgICAgdXJsOiAnaGlrZXI6Ly9wYWdlL2Rvd25sb2FkLnZpZXcjbm9SZWNvcmRIaXN0b3J5IyNub1JlZnJlc2gjP3J1bGU95pys5Zyw6LWE5rqQ566h55CGJyxcbiAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgIGNoYXB0ZXJMaXN0OiBjaGFwdGVyTGlzdCxcbiAgICAgICAgICAgIGluZm86IHtcbiAgICAgICAgICAgICAgICBib29rTmFtZTogZGVzX3RpdGxlLCAvL+a8q+eUu+WQjeensCxcbiAgICAgICAgICAgICAgICBydWxlTmFtZTogTVlfUlVMRS50aXRsZSxcbiAgICAgICAgICAgICAgICBib29rVG9wUGljOiBkZXNfcGljLFxuICAgICAgICAgICAgICAgIHBhcnNlQ29kZTogJC50b1N0cmluZyhiam0pLFxuICAgICAgICAgICAgICAgIGRlY29kZTogJC50b1N0cmluZygodGl0bGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQucmVxdWlyZShcImQ/cnVsZT1cIiArIHRpdGxlKSh1cmwsIGlucHV0KTtcbiAgICAgICAgICAgICAgICB9LCBNWV9SVUxFLnRpdGxlKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBkZWZhdWx0VmlldzogXCIxXCJcbiAgICAgICAgfVxuXG4gICAgfSk7XG4gICAgZC5wdXNoKHtcbiAgICAgICAgdGl0bGU6IFwi5pys5Zyw5Lmm5p62XCIsXG4gICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9NYWluLnZpZXcjbm9SZWNvcmRIaXN0b3J5IyNub1JlZnJlc2gjP3J1bGU95pys5Zyw6LWE5rqQ566h55CGJyxcbiAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICB9KTtcblxuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiAoZ2V0TXlWYXIoJ3Noc29ydCcpID09PSAnMScpID8gJ+KAnOKAnOKAneKAnTxiPjxzcGFuIHN0eWxlPVwiY29sb3I6ICNGRjAwMDBcIj5+4peGfuato+WcqOS9v+eUqOmAhuW6j37il4Z+PC9zcGFuPjwvYj4nIDogJ+KAnOKAnOKAneKAnTxiPjxzcGFuIHN0eWxlPVwiY29sb3I6ICMxYWFkMTlcIj5+4peGfuato+WcqOS9v+eUqOato+W6j37il4Z+PC9zcGFuPjwvYj4nLFxuICAgICAgICB1cmw6ICQoXCIjbm9Mb2FkaW5nI1wiKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICBsZXQgY29uZiA9IGdldE15VmFyKCdzaHNvcnQnKTtcbiAgICAgICAgICAgIGlmIChjb25mID09ICcxJykge1xuICAgICAgICAgICAgICAgIHB1dE15VmFyKFwic2hzb3J0XCIsIFwiMFwiKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJzaHNvcnRcIiwgXCIxXCIpXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/liIfmjaLmjpLluo/miJDlip8nXG4gICAgICAgIH0pLFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXG4gICAgfSk7XG5cblxuICAgIGlmIChjb250cy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHVybDogdXJsICsgbGF6eUJqbSxcbiAgICAgICAgICAgIHRpdGxlOiBcIueCueWHu+ebtOaOpemYheivu1wiLFxuICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF8xXCIsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGxvbmdDbGljazogW3tcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5LiN6Kej5a+GJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwsIGxhenlCam0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsICsgbGF6eUJqbVxuICAgICAgICAgICAgICAgICAgICAgICAgfSwgdXJsLCBsYXp5QmptKVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+ino+WvhicsXG4gICAgICAgICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygodXJsLCBsYXp5Sm0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsICsgbGF6eUptXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCB1cmwsIGxhenlKbSlcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGNoYXB0ZXJMaXN0LnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRlc190aXRsZSxcbiAgICAgICAgICAgIHVybDogXCJodHRwczovLzE4Y29taWMudmlwL3Bob3RvL1wiICsgTVlfVVJMLnNwbGl0KFwiXFwvXCIpWzRdXG4gICAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIGxldCBsaXN0ID0gY29udHMubWFwKHYgPT4ge1xuICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaCh2LCAnYSYmVGV4dCcpLFxuICAgICAgICAgICAgICAgIHVybCA9IHBkKHYsICdhJiZocmVmJyk7XG4gICAgICAgICAgICBjaGFwdGVyTGlzdC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgICAgICAgICAgdXJsOiB1cmxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogdGl0bGUsXG4gICAgICAgICAgICAgICAgdXJsOiB1cmwgKyBsYXp5Sm0sXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF8xXCIsXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgbG9uZ0NsaWNrOiBbe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5LiN6Kej5a+GJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygodXJsLCBsYXp5QmptKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyBsYXp5QmptXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgdXJsLCBsYXp5QmptKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+ino+WvhicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHVybCwgbGF6eUptKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyBsYXp5Sm1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LCB1cmwsIGxhenlKbSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGlmIChnZXRNeVZhcignc2hzb3J0JykgPT09ICcxJykge1xuICAgICAgICAgICAgbGlzdC5yZXZlcnNlKCk7XG4gICAgICAgIH1cblxuICAgICAgICBkID0gZC5jb25jYXQobGlzdCk7XG4gICAgfVxufSBjYXRjaCAoZSkge1xuICAgIGxvZyhlLnRvU3RyaW5nKCk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