xiaomianao666

小程序:91短视频

Aug 6th, 2024
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@91短视频@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiOTHnn63op4bpopEiLCJhdXRob3IiOiJodHRwczovLzkxc2hvcnQuY29tIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8zX21hcnF1ZWUiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG4vKiogQHR5cGUgbGF5b3V0W10gKi9cbnZhciBsYXlvdXRzID0gW107XG5pZiAoTVlfUEFHRSA9PT0gMSkgbGF5b3V0cyA9IHN0b3JhZ2UwLmdldE15VmFyKCdpdGVtcycpO1xuY29uc3QgeyBpbWFnZSwgbGF6eVJ1bGUgfSA9ICQucmVxdWlyZSgnaGlrZXI6Ly9wYWdlL3Rvb2xzJyk7XG5sZXQgaHRtbDtcbmxldCB0eXBlID0gZ2V0TXlWYXIoJ3R5cGUnKTtcblxuaWYgKE1ZX1BBR0UgPT09IDEpIHtcbiAgbGV0IHVybCA9ICdodHRwczovL2NuMS45MXNob3J0LmNvbScgKyAodHlwZSA9PT0gJ3Nob3J0JyA/IGdldE15VmFyKCdzaG9ydCcpIDogZ2V0TXlWYXIoJ2ZpbG0nKSk7XG4gIGlmICh0eXBlID09PSAnYWN0b3InKSB1cmwgPSAnaHR0cHM6Ly9jbjEuOTFzaG9ydC5jb20vZmlsbS9ob21lX2FjdG9yX2xpc3QnO1xuICBodG1sID0gcmVxd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saXN0LzNRVzhsT2RCY2xzJTNEJyxcclxuICAgICAgICAgICAgICAnL3Nob3J0L2xhYmVsX3JlbGF0ZWRfbGlzdC9GMTZ3Q0ozTG1XWSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9zaG9ydC9sYWJlbF9yZWxhdGVkX2xpc3QvLTBTMUx3a3NrVTQlM0QnLFxyXG4gICAgICAgICAgICBdLFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICBdLFxyXG4gICAgICAgIFtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgdGl0bGU6ICdmaWxtJyxcclxuICAgICAgICAgICAgbmFtZXM6IFsn5o6o6I2QJywgJ+S4k+mimCcsICfml6DigI7noIEnLCAn5Lit5paHJywgJ+WKqOa8qycsICfnu4/lhbjkuInnuqcnLCAn5qyn576O5oCn4oCO54ixJywgJ0FW6Kej6K+0J10sXHJcbiAgICAgICAgICAgIGlkczogW1xyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX3JlY29tbWVuZF9saXN0JyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9zdWJqZWN0X2xpc3QnLFxyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX2NhdGVnb3J5X2xpc3QvY29kZWQnLFxyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX2NhdGVnb3J5X2xpc3QvY2hpbmVzZV9zdWJ0aXRsZScsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC9qT1N4YS00RTI3VSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC91WmcwdkRMOFA4QSUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC9MYmxlamlFbk02cyUzRCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfbGlzdC92SnFfR3pSaWVzUSUzRCcsXHJcbiAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIF0sXHJcbiAgICAgIF0sXHJcbiAgICB9LFxyXG4gIF07XHJcbiAgc3RvcmFnZTAucHV0TXlWYXIoJ3RhYnMnLCB0YWJzKTtcclxufVxyXG5cclxubGV0IGl0ZW1zID0gW107XHJcbmZ1bmN0aW9uIHNldFRhYnModGFicykge1xyXG4gIGlmICghdGFicykgcmV0dXJuO1xyXG4gIGZvciAobGV0IGRhdGEgb2YgdGFicykge1xyXG4gICAgZ2V0TXlWYXIoZGF0YS50aXRsZSkgfHwgcHV0TXlWYXIoZGF0YS50aXRsZSwgZGF0YS5pZHNbMF0pO1xyXG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBkYXRhLm5hbWVzLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgIGl0ZW1zLnB1c2goe1xyXG4gICAgICAgIHRpdGxlOlxyXG4gICAgICAgICAgZ2V0TXlWYXIoZGF0YS50aXRsZSkgPT09IGRhdGEuaWRzW2ldXHJcbiAgICAgICAgICAgID8gYOKAnOKAnOKAneKAnTxmb250IGNvbG9yPVwiIzEyYjY2OFwiPjxiPiR7ZGF0YS5uYW1lc1tpXX08L2I+PC9mb250PmBcclxuICAgICAgICAgICAgOiBkYXRhLm5hbWVzW2ldLFxyXG4gICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZShcclxuICAgICAgICAgICh0aXRsZSwgaWQpID0+IHtcclxuICAgICAgICAgICAgaWYgKGdldE15VmFyKHRpdGxlKSAhPT0gaWQpIHtcclxuICAgICAgICAgICAgICBwdXRNeVZhcih0aXRsZSwgaWQpO1xyXG4gICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgICBkYXRhLnRpdGxlLFxyXG4gICAgICAgICAgZGF0YS5pZHNbaV1cclxuICAgICAgICApLFxyXG4gICAgICAgIGNvbF90eXBlOiA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