xiaomianao666

小程序:TVB云播

Jun 16th, 2024
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@TVB云播@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiVFZC5LqR5pKtIiwiYXV0aG9yIjoi54uX5rWp5ZWKIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cDovL3d3dy50dnliMDMuY29tL3ZvZC90eXBlL2lkLzEvcGFnZS9meXBhZ2UuaHRtbCIsInZlcnNpb24iOjEsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoib3RoZXIiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW11cbnZhciBnZXRSYW5nZUNvbG9ycyA9IGZ1bmN0aW9uKCkge8KgwqDCoMKgwqDCoMKgXG4gICAgcmV0dXJuICcjJyArICgnMDAwMDAnICsgKE1hdGgucmFuZG9tKCkgKiAweDEwMDAwMDAgPDwgMCkudG9TdHJpbmcoMTYpKS5zdWJzdHIoLTYpO8KgwqDCoMKgwqBcbn1cblxuY29uc3Qg5YiG57G76aKc6ImyID0gZ2V0UmFuZ2VDb2xvcnMoKVxuY29uc3Qg5aSn57G75a6a5L2NID0gJ2JvZHkmJi5uYXYtbGlzdCwwOjEnXG5jb25zdCDmi7zmjqXliIbnsbsgPSAnYm9keSYmLm15dWktc2NyZWVuX19saXN0J1xuY29uc3Qg5bCP57G75a6a5L2NID0gJ2JvZHktLWxpJiZhOm5vdCg6bWF0Y2hlcyjpppbpobV86LWE6K6vfOS4k+mimHxBSSkpJ1xuY29uc3Qg5YiG57G75qCH6aKYID0gJ2EmJlRleHQ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bHop4YiLCJzZWFyY2hGaW5kIjoianM6XG52YXIgZCA9IFtdO1xudmFyIGh0bWwgPSBnZXRSZXNDb2RlKCk7XG5pZiAoaHRtbC5pbmNsdWRlcygn5a6J5YWo6aqM6K+BJykpIHtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogJ+mcgOimgei+k+WFpemqjOivgeeggemqjOivgScsXG4gICAgICAgIGRlc2M6ICfpqozor4HmiJDlip/lkI7or7fmiYvliqjkuIvmi4nliLfmlrAnLFxuICAgICAgICB1cmw6ICQoJ2hpa2VyOi8vZW1wdHknKS5ydWxlKCgpID0+IHtcbiAgICAgICAgICAgIHZhciBkID0gW107XG4gICAgICAgICAgICB2YXIgaW1nbGluID0gJ2h0dHA6Ly93d3cudHZ5YjAzLmNvbS9pbmRleC5waHAvdmVyaWZ5L2luZGV4Lmh0bWw/cj0nICsgTWF0aC5yYW5kb20oKTtcbiAgICAgICAgICAgIC8v5Y+W5Zu+54mHY29va2llXG4gICAgICAgICAgICB2YXIgY29rID0gSlNPTi5wYXJzZShmZXRjaENvb2tpZShpbWdsaW4sIHtcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogTU9CSUxFX1VBXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBtZXRob2Q6ICdHRVQnLFxuICAgICAgICAgICAgICAgIHdpdGhIZWFkZXJzOiB0cnVlXG4gICAgICAgICAgICB9KSkuam9pbignOycpO1xuXG4gICAgICAgICAgICAvL+aYvuekuumqjOivgeeggVxuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICBwaWNfdXJsOiBpbWdsaW4gKyAnQFVzZXItQWdlbnQ9JyArIE1PQklMRV9VQSArICdAQ29va2llPScgKyBjb2ssXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAncGljXzFfZnVsbCdcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgLy/ovpPlhaXmoYZcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6ICcnLFxuICAgICAgICAgICAgICAgIHVybDogXCIndG9hc3Q6Ly/kvaDovpPlhaXnmoTmmK8nICsgaW5wdXRcIixcbiAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZTogXCJwdXRNeVZhcign6aqM6K+B56CBJyxpbnB1dClcIixcbiAgICAgICAgICAgICAgICAgICAgdGl0bGVWaXNpYmxlOiBmYWxzZVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdpbnB1dCdcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogJ+WPkemAgScsXG4gICAgICAgICAgICAgICAgdXJsOiAkKE1ZX1VSTCkubGF6eVJ1bGUoKGNvaykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YXIgY29kID0gZ2V0TXlWYXIoJ+mqjOivgeeggScpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHA6Ly93d3cudHZ5YjAzLmNvbS9pbmRleC5waHAvYWpheC92ZXJpZnlfY2hlY2s/dHlwZT1zZWFyY2gmdmVyaWZ5PScgKyBjb2QsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnWC1SZXF1ZXN0ZWQtV2l0aCc6ICdYTUxIdHRwUmVxdWVzdCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiBNT0JJTEVfVUEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0Nvb2tpZSc6IGNva1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvZHk6ICcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoaHRtbC5jb2RlID09IDEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oJ2ZsY29vaycsIGNvayk7XG4gICAgICAgICAgICAgICAgICAgICAgICBiYWNrKHRydWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/pqozor4HmiJDlip/jgIJcIlxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/pqozor4HlpLHotKXvvIFcIlxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgY29rKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMidcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xuICAgICAgICB9KSxcbiAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJ1xuICAgIH0pO1xufVxudmFyIGxpc3QgPSBwZGZhKGh0bWwsICcjc2VhcmNoTGlzdCYmbGknKTtcbmZvciAodmFyIGogaW4gbGlzdCkge1xuICBkLnB1c2goe1xuICAgICAgIHRpdGxlOiBwZGZoKGxpc3Rbal0sICdhJiZ0aXRsZScpLFxuICAgICAgIGRlc2M6IHBkZmgobGlzdFtqXSwgJycpLFxuICAgICAgIGNvbnRlbnQ6IHBkZmgobGlzdFtqXSwgJycpLFxuICAgICAgIGltZzogcGQobGlzdFtqXSwgJ2EmJmRhdGEtb3JpZ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ZiA9IGdldFZhcignc2hzb3J0Jyk7aWYoY29uZj09JzEnKXtwdXRWYXIoe2tleTonc2hzb3J0JywgdmFsdWU6JzAnfSk7fWVsc2V7cHV0VmFyKHtrZXk6J3Noc29ydCcsIHZhbHVlOicxJ30pfTtyZWZyZXNoUGFnZSgpOyd0b2FzdDovL+WIh+aNouaOkuW6j+aIkOWKnyc7JyNub0hpc3RvcnkjaGlrZXI6Ly9lbXB0eSdgLFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXG4gICAgfSlcbiAgICB2YXIgbGlzdCA9IGxpc3RzW2luZGV4XTtcblxuICAgIGlmIChnZXRWYXIoJ3Noc29ydCcpID09ICcxJykge1xuICAgICAgICB0cnkge1xuICAgICAgICAgICAgZm9yICh2YXIgaiA9IGxpc3QubGVuZ3RoIC0gMTsgaiA+PSAwOyBqLS0pIHtcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogcGFyc2VEb21Gb3JIdG1sKGxpc3Rbal0sICdhJiZUZXh0JykucmVwbGFjZSgv56ysfOmbhnzor5185pyfL2csICcnKSxcbiAgICAgICAgICAgICAgICAgICAgdXJsOnBhcnNlRG9tKGxpc3Rbal0sICdhJiZocmVmJykrbGF6eSxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IGxpc3QubGVuZ3RoID4gMyA/ICd0ZXh0XzQnIDogJ3RleHRfMydcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogJ+ayoeaciemAiembhuWTn++8jOS4jeS/oeeCueWbvueJh+WOu+eci+eci/CfkYAnLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMSdcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgbGlzdC5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBwYXJzZURvbUZvckh0bWwobGlzdFtqXSwgJ2EmJlRleHQnKS5yZXBsYWNlKC/nrKx86ZuGfOivnXzmnJ8vZywgJycpLFxuICAgICAgICAgICAgICAgICAgICB1cmw6cGFyc2VEb20obGlzdFtqXSwgJ2EmJmhyZWYnKSArbGF6eSxleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBibG9ja1J1bGVzOiBbJy5jc3MnLCAnLmdpZicsICcuanBnJywgJy5qcGVnJywgJy5wbmcnLCAnLmljbycsICcuc3ZnJywgJy5tM3U4JywgJy5tcDQnXVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBsaXN0Lmxlbmd0aCA+IDMgPyAndGV4dF80JyA6ICd0ZXh0XzMnXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6ICfmsqHmnInpgInpm4blk5/vvIzkuI3kv6Hngrnlm77niYfljrvnnIvnnIvwn5GAJyxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgfVxufVxuc2V0VGFicyh0YWJzLCBNWV9VUkwpO1xuc2V0TGlzdHMobGlzdHMsIGdldFZhcihNWV9VUkwsICcwJykpO1xuZC5wdXNoKHtcbiAgICB0aXRsZTogJzxicj4nLFxuICAgIGNvbF90eXBlOiAncmljaF90ZXh0J1xufSk7XG5zZXRSZXN1bHQoZCk7Iiwic2RldGFpbF9jb2xfdHlwZSI6Im1vdm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