上一主题 下一主题
ScriptCat,新一代的脚本管理器脚本站,与全世界分享你的用户脚本油猴脚本开发指南教程目录
返回列表 发新帖

求一个智慧树不被检测的脚本

[复制链接]

该用户从未签到

10

主题

22

回帖

44

积分

初级工程师

积分
44

新人报道

发表于 2022-5-9 14:38:03 | 显示全部楼层 | 阅读模式
悬赏1油猫币未解决

求一个智慧树不被检测的脚本,能考试的,10倍速播放的

  • TA的每日心情

    2022-5-29 12:32
  • 签到天数: 2 天

    [LV.1]初来乍到

    0

    主题

    4

    回帖

    6

    积分

    助理工程师

    积分
    6
    发表于 2022-5-10 17:16:28 | 显示全部楼层
    两个脚本配合使用
    1. // ==UserScript==
    2. // @name         15倍智慧树
    3. // @namespace    http://github.com/kakasearch
    4. // @version      1.4
    5. // @description  15倍播放视频,秒过文档,自动切换
    6. // @author       kakasearch
    7. // @match        https://studyh5.zhihuishu.com/videoStudy.html
    8. // @match        https://lc.zhihuishu.com/live/vod_room.html*
    9. // @match        https://hike.zhihuishu.com/*
    10. // @match       https://hike.zhihuishu.com/aidedteaching/sourceLearning/sourceLearning*
    11. // @grant        none
    12. // @run-at       document-end
    13. // ==/UserScript==

    14. let style = `/*.dialog-test {
    15.     display: none;
    16. }*/
    17. .v-modal {
    18.     display: none;
    19. }
    20. .stopAutoButton {
    21.     display: block;
    22.     position: fixed;
    23.     left: 2rem;
    24.     bottom: 1rem;
    25.     padding: 0.5rem;
    26.     color: #fff;
    27.     background-color: #000;
    28.     font-size: 2rem;
    29.     cursor: pointer;
    30.     z-index: 99999;
    31. }`;

    32. (function ($) {
    33.     $(function () {
    34.         let isAuto = localStorage.getItem("isAuto") == "true" ? true : false;
    35.         $("<style/>").html(style).appendTo($("body"));
    36.         let addDiv = function () {
    37.             if ($(".video-js").length ||$(".icon-doc").length ) {
    38.                 $("<div/>").text(isAuto ? "关闭自动播放" : "开启自动播放").addClass("stopAutoButton").on("click", function () {
    39.                     isAuto = !isAuto;
    40.                     localStorage.setItem("isAuto", "" + isAuto);
    41.                     $(this).text(isAuto ? "关闭自动播放" : "开启自动播放");
    42.                     if (isAuto) {
    43.                         window.repeatInterval = setInterval(repeat, 100);
    44.                     } else {
    45.                         clearInterval(window.repeatInterval);
    46.                     }
    47.                 }).insertBefore($("body"));
    48.             } else {
    49.                 setTimeout(addDiv, 100);
    50.             }
    51.         };
    52.         let next = 0;
    53.         addDiv();
    54.         let course_class = 0
    55.         if(/hike/.test(window.location.href)){
    56.             course_class = '翻转课'
    57.         }
    58.         let repeat = function () {
    59.             if (!$(".stopAutoButton").length) {
    60.                 addDiv();
    61.             }
    62.             let rate
    63.             if(course_class =='翻转课'){
    64.                 rate = document.querySelector(".speedTab05")

    65.             }else{
    66.                 rate = $(".speedList>div")[0]
    67.             }
    68.             if (rate) {
    69.                 rate.setAttribute("rate", "15.0");
    70.                 $(rate).click();
    71.             }
    72.             //document.querySelector("#vjs_mediaPlayer > div.controlsBar > div.definiBox > div > b.line1bq").click() 普通清晰度
    73.             var current_play_video
    74.             if(course_class =='翻转课'){
    75.                 current_play_video = document.querySelector(".file-item.active");//当前播放的视频单元

    76.                 let time_finish = current_play_video.querySelector(".status-box > i")
    77.                 if(time_finish && (new Date() - next) > 10000){//报错忽略...
    78.                     console.log('下一条')
    79.                     if(current_play_video.nextElementSibling != null){
    80.                         current_play_video.nextElementSibling.click()
    81.                     }else{
    82.                         let a =Array.from(document.querySelectorAll(".file-item"))
    83.                         for(let i of a){
    84.                             if(i.querySelector('.icon-finish') == null){
    85.                                 i.click()
    86.                                 break
    87.                             }
    88.                         }
    89.                         //刷完
    90.                         //window.close()
    91.                     }
    92.                     next = new Date();
    93.                 }else{
    94.                     if ($("video").prop("paused")) {
    95.                         $("#playButton").click();}
    96.                 }

    97.             }else{//共享课
    98.                 try{
    99.                     var myPlayer = document.getElementById('vjs_container_html5_api')
    100.                     // 视频暂停监听
    101.                     myPlayer.onpause = function(){
    102.                         setTimeout(function(){
    103.                             var playVideo = document.getElementById('playButton');
    104.                             playVideo.click();
    105.                         }, 5000);
    106.                         let tm = document.getElementsByClassName("el-scrollbar__view")[1];
    107.                         let tm_opt_a = tm.getElementsByClassName("topic-item")[0];
    108.                         tm_opt_a.click();//只选择第一个选项,对错不影响
    109.                         setTimeout(function(){
    110.                             let btn6 = document.getElementsByClassName('btn')[6];
    111.                             btn6.click();
    112.                         }, 3000);

    113.                     };
    114.                 }catch{}
    115.                 var videoLists = document.getElementsByClassName('el-scrollbar__view')[0];//视频目录
    116.                 let current_play_video = videoLists.getElementsByClassName('current_play')[0];//当前播放的视频单元
    117.                 let time_finish = current_play_video.getElementsByClassName('time_icofinish')[0];
    118.                 if(time_finish.hasAttribute('hidden')){//报错忽略...
    119.                 }else{
    120.                     if((new Date() - next) > 10000) {
    121.                         /* 播放完毕后 10 秒内不重复点击,防止“禁止跳课”提示刷屏 */
    122.                         document.querySelector("#nextBtn").click()
    123.                         next = new Date();
    124.                     } else if ($("video").prop("paused")) {
    125.                         $("#playButton").click();
    126.                     }
    127.                 }
    128.             }

    129.             if (!$(".stopAutoButton").length) {
    130.                 addDiv();
    131.             }
    132.         }
    133.         if (isAuto) {
    134.             window.repeatInterval = setInterval(repeat, 100);
    135.         }
    136.     });
    137. })(jQuery);
    复制代码
    1. // ==UserScript==
    2. // @name         智慧树2022/5/8更新破解
    3. // @namespace    http://tampermonkey.net/
    4. // @version      0.1
    5. // @description  try to take over the world!
    6. // @author       You
    7. // @match        *://*.zhihuishu.com/*
    8. // @grant        unsafeWindow
    9. // @run-at       document-start
    10. // ==/UserScript==

    11. (function() {
    12.     'use strict';
    13.     // 作业考试文本破解
    14.     unsafeWindow.Element.prototype.attachShadow = undefined;
    15.     // 异常脚本破解
    16.     unsafeWindow.Element.prototype._addEventListener = Element.prototype.addEventListener;
    17.     unsafeWindow.Element.prototype.addEventListener = function () {
    18.         const args = [...arguments];
    19.         const temp = args[1];
    20.         args[1] = function () {
    21.             const args2 = [...arguments];
    22.             args2[0] = new Proxy(args2[0], {
    23.                 get(target, p) {
    24.                     return p === 'isTrusted' ? true : target[p];
    25.                 }
    26.             });
    27.             return temp(...args2);
    28.         };
    29.         return this._addEventListener(...args);
    30.     };

    31.     // Your code here...
    32. })();
    复制代码
    回复

    使用道具 举报

  • TA的每日心情

    2022-5-29 12:32
  • 签到天数: 2 天

    [LV.1]初来乍到

    0

    主题

    4

    回帖

    6

    积分

    助理工程师

    积分
    6
    发表于 2022-5-10 17:17:29 | 显示全部楼层
    Nayuta 发表于 2022-5-10 17:16
    两个脚本配合使用

    十五倍速
    回复

    使用道具 举报

    该用户从未签到

    1

    主题

    3

    回帖

    6

    积分

    助理工程师

    积分
    6
    发表于 2022-5-13 22:26:49 | 显示全部楼层

    不会异常吗?15倍
    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    1

    回帖

    2

    积分

    助理工程师

    积分
    2
    发表于 2022-5-14 00:33:43 | 显示全部楼层
    Nayuta 发表于 2022-5-10 17:16
    两个脚本配合使用

    大佬,这个导入了无效
    回复

    使用道具 举报

    发表回复

    本版积分规则

    快速回复 返回顶部 返回列表