Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@短视频@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi55+t6KeG6aKRIiwiYXV0aG9yIjoiaHR0cHM6Ly85MXNob3J0LmNvbSIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2Z5cGFnZSIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfM19tYXJxdWVlIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuLyoqIEB0eXBlIGxheW91dFtdICovXG52YXIgbGF5b3V0cyA9IFtdO1xuaWYgKE1ZX1BBR0UgPT09IDEpIGxheW91dHMgPSBzdG9yYWdlMC5nZXRNeVZhcignaXRlbXMnKTtcbmNvbnN0IHsgaW1hZ2UsIGxhenlSdWxlIH0gPSAkLnJlcXVpcmUoJ2hpa2VyOi8vcGFnZS90b29scycpO1xubGV0IGh0bWw7XG5sZXQgdHlwZSA9IGdldE15VmFyKCd0eXBlJyk7XG5cbmlmIChNWV9QQUdFID09PSAxKSB7XG4gIGxldCB1cmwgPSAnaHR0cHM6Ly9jbjEuOTFzaG9ydC5jb20nICsgKHR5cGUgPT09ICdzaG9ydCcgPyBnZXRNeVZhcignc2hvcnQnKSA6IGdldE15VmFyKCdmaWxtJykpO1xuICBpZiAodHlwZSA9PT0gJ2FjdG9yJykgdXJsID0gJ2h0dHBzOi8vY24xLjkxc2hvcnQuY29tL2ZpbG0vaG9tZV9hY3Rvcl9saXN0JztcbiAgaHRtbCA9IHJlcXVlc3QodXJsKTtcbiAgcHV0TXlWYXIoJ3VybCcsIGh0bWwubWF0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JhZ2UwLmdldE15VmFyKCd0YWJzJyk7XHJcbmlmICghdGFicykge1xyXG4gIHRhYnMgPSBbXHJcbiAgICB7XHJcbiAgICAgIHRpdGxlOiAndHlwZScsXHJcbiAgICAgIG5hbWVzOiAn55+t6KeG6aKRJkFW55S15b2xJuWls+KAjuKAi+S8mCcuc3BsaXQoJyYnKSxcclxuICAgICAgaWRzOiAnc2hvcnQmZmlsbSZhY3Rvcicuc3BsaXQoJyYnKSxcclxuICAgICAgYXJyOiBbXHJcbiAgICAgICAgW1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICB0aXRsZTogJ3Nob3J0JyxcclxuICAgICAgICAgICAgbmFtZXM6ICfmnIDmlrAm5o6o6I2QJue+juWls+ato+WmuSY5MeWkp+elniblm73kuqfpq5jmuIUm5o6S6KGMJuWbveS6p0FWJumXqOS6i+S7tiblpKfosaHkvKDlqpIm5oOF6Laj57u86Im6Jy5zcGxpdCgnJicpLFxyXG4gICAgICAgICAgICBpZHM6IFtcclxuICAgICAgICAgICAgICAnLycsXHJcbiAgICAgICAgICAgICAgJy9zaG9ydC9yZWNvbW1lbmRfaG9tZV9saXN0JyxcclxuICAgICAgICAgICAgICAnL3Nob3J0L2xhYmVsX3JlbGF0ZWRfbGlzdC9VZ19wdV9rc2txWSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9zaG9ydC9sYWJlbF9yZWxhdGVkX2xpc3Qvb3REYTR0NmxERFElM0QnLFxyXG4gICAgICAgICAgICAgICcvc2hvcnQvaG9tZV9jYXRlZ29yeV9saXN0L2hkJyxcclxuICAgICAgICAgICAgICAnL3Nob3J0L3JhbmtpbmdfbGlzdCcsXHJcbiAgICAgICAgICAgICAgJy9zaG9ydC9sYWJlbF9yZWxhdGVkX2xpc3QvMUJkMFp6cDhEX0UlM0QnLFxyXG4gICAgICAgICAgICAgICcvc2hvcnQvbGFiZWxfcmVsYXRlZF9saXN0LzNRVzhsT2RCY2xzJTNEJyxcclxuICAgICAgICAgICAgICAnL3Nob3J0L2xhYmVsX3JlbGF0ZWRfbGlzdC9GMTZ3Q0ozTG1XWSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9zaG9ydC9sYWJlbF9yZWxhdGVkX2xpc3QvLTBTMUx3a3NrVTQlM0QnLFxyXG4gICAgICAgICAgICBdLFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICBdLFxyXG4gICAgICAgIFtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgdGl0bGU6ICdmaWxtJyxcclxuICAgICAgICAgICAgbmFtZXM6IFsn5o6o6I2QJywgJ+S4k+mimCcsICfml6DigI7noIEnLCAn5Lit5paHJywgJ+WKqOa8qycsICfnu4/lhbjkuInnuqcnLCAn5qyn576O5oCn4oCO54ixJywgJ0FW6Kej6K+0J10sXHJcbiAgICAgICAgICAgIGlkczogW1xyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX3JlY29tbWVuZF9saXN0JyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9zdWJqZWN0X2xpc3QnLFxyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX2NhdGVnb3J5X2xpc3QvY29kZWQnLFxyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX2NhdGVnb3J5X2xpc3QvY2hpbmVzZV9zdWJ0aXRsZScsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC9qT1N4YS00RTI3VSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC91WmcwdkRMOFA4QSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC9MYmxlamlFbk02cyUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC92SnFfR3pSaWVzUSUzRCcsXHJcbiAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIF0sXHJcbiAgICAgIF0sXHJcbiAgICB9LFxyXG4gIF07XHJcbiAgc3RvcmFnZTAucHV0TXlWYXIoJ3RhYnMnLCB0YWJzKTtcclxufVxyXG5cclxubGV0IGl0ZW1zID0gW107XHJcbmZ1bmN0aW9uIHNldFRhYnModGFicykge1xyXG4gIGlmICghdGFicykgcmV0dXJuO1xyXG4gIGZvciAobGV0IGRhdGEgb2YgdGFicykge1xyXG4gICAgZ2V0TXlWYXIoZGF0YS50aXRsZSkgfHwgcHV0TXlWYXIoZGF0YS50aXRsZSwgZGF0YS5pZHNbMF0pO1xyXG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBkYXRhLm5hbWVzLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgIGl0ZW1zLnB1c2goe1xyXG4gICAgICAgIHRpdGxlOlxyXG4gICAgICAgICAgZ2V0TXlWYXIoZGF0YS50aXRsZSkgPT09IGRhdGEuaWRzW2ldXHJcbiAgICAgICAgICAgID8gYOKAnOKAnOKAneKAnTxmb250IGNvbG9yPVwiIzEyYjY2OFwiPjxiPiR7ZGF0YS5uYW1lc1tpXX08L2I+PC9mb250PmBcclxuICAgICAgICAgICAgOiBkYXRhLm5hbWVzW2ldLFxyXG4gICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZShcclxuICAgICAgICAgICh0aXRsZSwgaWQpID0+IHtcclxuICAgICAgICAgICAgaWYgKGdldE15VmFyKHRpdGxlKSAhPT0gaWQpIHtcclxuICAgICAgICAgICAgICBwdXRNeVZhcih0aXRsZSwgaWQpO1xyXG4gICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgICBkYXRhLnRpdGxlLFxyXG4gICAgICAgICAgZGF0YS5pZHNbaV1cclxuICAgICAgICApLFxyXG4gICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXHJcbiAgICAgIH0pO1xyXG4gICA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