1 Star 0 Fork 0

WayneXuan/Public

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
good-cadres.min.js 2.64 KB
一键复制 编辑 原始数据 按行查看 历史
WayneXuan 提交于 2021-07-05 20:55 . tm min.js
(function(){if(location.pathname==="/uc/plan/info"){c()}else{if(location.pathname.startsWith("/front/couinfo/")){a()}else{if(location.pathname.startsWith("/front/playkpoint/")){d()}else{if(location.pathname==="/tip.html"){window.location.href="about:blank";window.close()}}}}function e(k){var j=k.indexOf("");if(j<0){return 0}var g=k.indexOf("");var h=parseInt(k.substring(0,g));var f=parseInt(k.substring(g+1,j));return h*60+f}function b(f){return"100%"===$(f).find("ul>li>.c-p-wrap .play-icon-box .c-learn-sec .c-blue1").text().trim()}function c(){var j=function(m){var l=$(m).find(".txtOf.mt5.hLh20 .c-orange");if(l.find(".course_all").text().trim()===l.find("a:last").text().trim()){return true}return false};var h=function(m){var l=$(m).find(".u-f-c-more.my-cou-check a").attr("href");$.ajax({url:l,success:function(n){var o=(function(){var p=$("#aCoursesList",n).find(".mt20.mb20 .mr20 .chapter-box .chap-seclist.pr");var q=60;$.each(p,function(s,r){if(!b(r)){var t=$(r).find(".play-icon-box small").text().trim();q+=e(t);q+=10}});return q})();if(o>60){window.open(l);setTimeout(function(){location.reload()},o*1000)}}})};if($(".plan-info-box .c-red").text()==="已完成"){return}var f=$('.i-box .p-cou-box:contains("学习课程")').text().trim().substring(4).split("/");if(f.length===2&&f[0]===f[1]){return}var k=$(".uc-main .uc-m-content .c-learn-plan>.p-l-wrap ul.u-f-c-list.uc-last-learn.uc-plan-wrap>li");for(i in k){var g=k.get(i);if(!j(g)){h(g);break}}}function a(){var h=function(j){$(j).find("ul>li").click()};var g=$("#aCoursesList").find(".mt20.mb20 .mr20 .chapter-box .chap-seclist.pr");for(i in g){var f=g.get(i);if(!b(f)){h(f);break}}}function d(){var l=function(m){return"100%"===$(m).find(".c-p-wrap .play-icon-box .c-learn-sec .c-blue1").text().trim()};var g=function(m){$(m).click()};let $toolBar=$("#N-toolBar-box");var k=function(){play();var p=$toolBar.find(".n-ct-cont-menu .current.kpoint_list .play-icon-box small").text().trim();var q=e(p);var o=1;var m=$('<span id="playCountDown" style="color: #fff"></span>');$("#N-course-box").find(".N-l-title .N-l-t-title").prepend(m);var n=0;var r=1;setInterval(function(){n+=r;var u=q+o-n;if(u>=0){var s=parseInt(u/60);var t=u%60;m.text("剩余"+s+""+t+"")}},r*1000);setTimeout(function(){let $kpointList=$(".kpoint_list");var t=$kpointList.length;var s=$kpointList.index($(".kpoint_list[lang="+currentKpointId+"]"));if(s<t-1){$kpointList.eq(s+1).click()}else{window.location.href="about:blank";window.close()}},(q+o+10)*1000)};var f=$toolBar.find(".n-ct-cont-menu .current.kpoint_list");if(!l(f)){k();return}var j=$toolBar.find(".n-ct-cont-menu .kpoint_list");for(i in j){var h=j.get(i);if(!l(h)){g(h);return}}}}());
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/waynexuan/Public.git
git@gitee.com:waynexuan/Public.git
waynexuan
Public
Public
master

搜索帮助