iduoduo/drpy_js/哔哩影视[官].js

1 line
14 KiB
JavaScript

LyoqCiAqIOW9seinhlRWIOW8ueW5leaUr+aMgSAKICAgICogaHR0cHM6Ly90Lm1lL2ZvbmdtaV9vZmZpY2FsLwogICAgKiBodHRwczovL2dpdGh1Yi5jb20vRm9uZ01pL1JlbGVhc2UvdHJlZS9tYWluL2FwawogKiBDb29raWXorr7nva4KICAgICogQ29va2ll6I635Y+W5pa55rOVIGh0dHBzOi8vZ2hwcm94eS5uZXQvaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL1VuZENvdmVyL1B5cmFtaWRTdG9yZS9tYWluL2xpc3QubWQKICogQ29va2ll6K6+572u5pa55rOVMTogRFItUFkg5ZCO5Y+w566h55CG55WM6Z2iCiAgICAqIENNU+WQjuWPsOeuoeeQhiA+IOiuvue9ruS4reW/gyA+IOeOr+Wig+WPmOmHjyA+IHsiYmlsaV9jb29raWUiOiJYWFhYWFhYIiwidm1pZCI6IlhYWFhYWCJ9ID4g5L+d5a2YCiAqIENvb2tpZeiuvue9ruaWueazlTI6IOaJi+WKqOabv+aNokNvb2tpZQogICAgKiDlupXkuIvku6PnoIEgaGVhZGVyc+eahAogICAgKiAiQ29va2llIjoiJGJpbGlfY29va2llIgogICAgKiDmiYvliqjmm7/mjaLkuLoKICAgICogIkNvb2tpZSI6IuWwhuiOt+WPlueahENvb2tpZem7j+i0tOWcqOi/mSIKICog5a6i5oi356uv6ZW/5pyfQ29va2ll6K6+572u5pWZ56iLOgogKiDmipPljIXlk5Tlk6nmiYvmnLrnq6/mkJzntKJhY2Nlc3Nfa2V5LOWPluS7u+aEj+mTvuaOpemHjOeahGFjY2Vzc19rZXnlkoxhcHBrZXnlnKhkcnB5546v5aKD5Y+Y6YeP5Lit5aKe5Yqg5ZCM5ZCN55qE546v5aKD5Y+Y6YeP5Y2z5Y+vCiAqIOatpOaXtuWTlOWTqS5qc+i/meS4quino+aekOWPr+eUqOS6juatpOa6kOeahOino+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mh0dHAvLnRlc3QoaW5wdXQpKSB7CiAgICAgICAgICAgIGlucHV0ID0gewogICAgICAgICAgICAgICAgang6IDEsCiAgICAgICAgICAgICAgICB1cmw6IGlucHV0LAogICAgICAgICAgICAgICAgcGFyc2U6IDAsCiAgICAgICAgICAgICAgICBoZWFkZXI6IEpTT04uc3RyaW5naWZ5KHsKICAgICAgICAgICAgICAgICAgICAidXNlci1hZ2VudCI6ICJNb3ppbGxhLzUuMCIKICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBsZXQgaWRzID0gaW5wdXQuc3BsaXQoIl8iKTsKICAgICAgICAgICAgbGV0IGRhbiA9ICdodHRwczovL2FwaS5iaWxpYmlsaS5jb20veC92MS9kbS9saXN0LnNvP29pZD0nICsgaWRzWzFdOwogICAgICAgICAgICBsZXQgcmVzdWx0ID0ge307CiAgICAgICAgICAgIGxldCB1cmwgPSAiaHR0cHM6Ly9hcGkuYmlsaWJpbGkuY29tL3BnYy9wbGF5ZXIvd2ViL3BsYXl1cmw/cW49MTE2JmVwX2lkPSIgKyBpZHNbMF0gKyAiJmNpZD0iICsgaWRzWzFdOwogICAgICAgICAgICBsZXQgaHRtbCA9IHJlcXVlc3QodXJsKTsKICAgICAgICAgICAgbGV0IGpSb290ID0gSlNPTi5wYXJzZShodG1sKTsKICAgICAgICAgICAgaWYgKGpSb290WyJtZXNzYWdlIl0gIT09ICJzdWNjZXNzIikgewogICAgICAgICAgICAgICAgcHJpbnQoIumcgOimgeWkp+S8muWRmOadg+mZkOaJjeiDveingueciyIpOwogICAgICAgICAgICAgICAgaW5wdXQgPSAiIgogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgbGV0IGpvID0galJvb3RbInJlc3VsdCJdOwogICAgICAgICAgICAgICAgbGV0IGphID0gam9bImR1cmwiXTsKICAgICAgICAgICAgICAgIGxldCBtYXhTaXplID0gLTE7CiAgICAgICAgICAgICAgICBsZXQgcG9zaXRpb24gPSAtMTsKICAgICAgICAgICAgICAgIGphLmZvckVhY2goZnVuY3Rpb24odG1wSm8sIGkpIHsKICAgICAgICAgICAgICAgICAgICBpZiAobWF4U2l6ZSA8IE51bWJlcih0bXBKb1sic2l6ZSJdKSkgewogICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplID0gTnVtYmVyKHRtcEpvWyJzaXplIl0pOwogICAgICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbiA9IGkKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIGxldCB1cmwgPSAiIjsKICAgICAgICAgICAgICAgIGlmIChqYS5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKHBvc2l0aW9uID09PSAtMSkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbiA9IDAKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgdXJsID0gamFbcG9zaXRpb25dWyJ1cmwiXQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcmVzdWx0WyJwYXJzZSJdID0gMDsKICAgICAgICAgICAgICAgIHJlc3VsdFsicGxheVVybCJdID0gIiI7CiAgICAgICAgICAgICAgICByZXN1bHRbInVybCJdID0gdXJsOwogICAgICAgICAgICAgICAgcmVzdWx0WyJoZWFkZXIiXSA9IHsKICAgICAgICAgICAgICAgICAgICBSZWZlcmVyOiAiaHR0cHM6Ly93d3cuYmlsaWJpbGkuY29tIiwKICAgICAgICAgICAgICAgICAgICAiVXNlci1BZ2VudCI6ICJNb3ppbGxhLzUuMCAoTWFjaW50b3NoOyBJbnRlbCBNYWMgT1MgWCAxMF8xNV83KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTAwLjAuNDg5Ni4xMjcgU2FmYXJpLzUzNy4zNiIKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgICAgICByZXN1bHRbImNvbnRlbnRUeXBlIl0gPSAidmlkZW8veC1mbHYiOwogICAgICAgICAgICAgICAgcmVzdWx0WyJkYW5tYWt1Il0gPSBkYW47CiAgICAgICAgICAgICAgICBpbnB1dCA9IHJlc3VsdAogICAgICAgICAgICB9CiAgICAgICAgfQogICAgYCwKfQ==