-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlms-broker.min.js
1 lines (1 loc) · 1.34 KB
/
lms-broker.min.js
1
!function(){function e(e){window.location=e}function t(t){var a=t.getElementsByTagName("content")[0].getElementsByTagName("content_playing_info")[0],n=a.getElementsByTagName("mixed_media")[0];return void 0===n.getElementsByTagName?e(String(n.getElementsByTagName("desktop")[0].getElementsByTagName("html5")[0].getElementsByTagName("media_uri")[0].childNodes[0].nodeValue).replace("/playlist.m3u8","")):void 0===(n=a.getElementsByTagName("sub_media")[0]).getElementsByTagName?e(String(n.getElementsByTagName("desktop")[0].getElementsByTagName("html5")[0].getElementsByTagName("media_uri")[0].childNodes[0].nodeValue).replace("/playlist.m3u8","")):void 0===(n=a.getElementsByTagName("main_media")[0]).getElementsByTagName?e(String(n.getElementsByTagName("desktop")[0].getElementsByTagName("html5")[0].getElementsByTagName("media_uri")[0].childNodes[0].nodeValue).replace("/playlist.m3u8","")):void 0}$.ajax({url:$("#vod_viewer iframe").attr("src"),success:function(e){var a=/https:\/\/(.*)/.exec(e);console.log(a);var n=function(e,t){var a=null,n="";a=(a=null==t?location.search.substr(location.search.indexOf("?")+1):t.split("?")[1]).split("&");for(var m=0;m<a.length;m++)temp=a[m].split("="),[temp[0]]==e&&(n=temp[1]);return n}("content_id",a[1]);$.ajax({url:`https://commons.sch.ac.kr/viewer/ssplayer/uniplayer_support/content.php?content_id=${n}`,success:t})}})}();