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

智慧树一进去就被检测脚本,有没有还能用的啊

[复制链接]
  • TA的每日心情
    开心
    2022-3-14 20:59
  • 签到天数: 1 天

    [LV.1]初来乍到

    2

    主题

    6

    回帖

    12

    积分

    助理工程师

    积分
    12
    发表于 2022-5-8 00:36:37 | 显示全部楼层 | 阅读模式
    悬赏1油猫币未解决

    微信图片_20220508003023.jpg
    如图,试了很多个脚本都不行

  • TA的每日心情
    开心
    2023-2-28 23:59
  • 签到天数: 191 天

    [LV.7]常住居民III

    637

    主题

    5196

    回帖

    6078

    积分

    管理员

    非物质文化遗产社会摇传承人

    积分
    6078

    荣誉开发者管理员油中2周年生态建设者喜迎中秋

    发表于 2022-5-8 07:57:11 | 显示全部楼层
    有一个istrusted劫持
    可以考虑上proxy过一下就可以了
    混的人。
    ------------------------------------------
    進撃!永遠の帝国の破壊虎---李恒道

    入驻了爱发电https://afdian.net/a/lihengdao666
    个人宣言:この世界で私に胜てる人とコードはまだ生まれていません。死ぬのが怖くなければ来てください。
    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    回帖

    4

    积分

    助理工程师

    积分
    4
    发表于 2022-5-8 14:01:15 | 显示全部楼层
    现在ocs的答题部分好像还能用,不过需要赞助
    https://bbs.tampermonkey.net.cn/ ... A%E6%85%A7%E6%A0%91
    刷课部分好像有点瑕疵,没试明白qwq
    希望大佬们早点更新
    回复

    使用道具 举报

  • TA的每日心情

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

    [LV.1]初来乍到

    0

    主题

    4

    回帖

    6

    积分

    助理工程师

    积分
    6
    发表于 2022-5-10 17:20:19 | 显示全部楼层
    半自动,两个脚本配合使用15倍速
    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);
    138. [code]// ==UserScript==
    139. // @name         智慧树2022/5/8更新破解
    140. // @namespace    http://tampermonkey.net/
    141. // @version      0.1
    142. // @description  try to take over the world!
    143. // @author       You
    144. // @match        *://*.zhihuishu.com/*
    145. // @grant        unsafeWindow
    146. // @run-at       document-start
    147. // ==/UserScript==

    148. (function() {
    149.     'use strict';
    150.     // 作业考试文本破解
    151.     unsafeWindow.Element.prototype.attachShadow = undefined;
    152.     // 异常脚本破解
    153.     unsafeWindow.Element.prototype._addEventListener = Element.prototype.addEventListener;
    154.     unsafeWindow.Element.prototype.addEventListener = function () {
    155.         const args = [...arguments];
    156.         const temp = args[1];
    157.         args[1] = function () {
    158.             const args2 = [...arguments];
    159.             args2[0] = new Proxy(args2[0], {
    160.                 get(target, p) {
    161.                     return p === 'isTrusted' ? true : target[p];
    162.                 }
    163.             });
    164.             return temp(...args2);
    165.         };
    166.         return this._addEventListener(...args);
    167.     };

    168.     // Your code here...
    169. })();
    复制代码
    [/code]
    回复

    使用道具 举报

    该用户从未签到

    1

    主题

    3

    回帖

    6

    积分

    助理工程师

    积分
    6
    发表于 2022-5-13 22:25:12 | 显示全部楼层
    Nayuta 发表于 2022-5-10 17:20
    半自动,两个脚本配合使用15倍速
    [/code]

    15倍数太快了吧
    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    2

    回帖

    2

    积分

    助理工程师

    积分
    2
    发表于 2022-5-14 15:28:16 | 显示全部楼层
    李恒道 发表于 2022-5-8 07:57
    有一个istrusted劫持
    可以考虑上proxy过一下就可以了

    如何上proxy大佬可以教下吗?
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2023-2-28 23:59
  • 签到天数: 191 天

    [LV.7]常住居民III

    637

    主题

    5196

    回帖

    6078

    积分

    管理员

    非物质文化遗产社会摇传承人

    积分
    6078

    荣誉开发者管理员油中2周年生态建设者喜迎中秋

    发表于 2022-5-14 15:35:03 | 显示全部楼层
    xjxxjx122 发表于 2022-5-14 15:28
    如何上proxy大佬可以教下吗?

    论坛ne-21的实现了
    哥哥可以看一下
    混的人。
    ------------------------------------------
    進撃!永遠の帝国の破壊虎---李恒道

    入驻了爱发电https://afdian.net/a/lihengdao666
    个人宣言:この世界で私に胜てる人とコードはまだ生まれていません。死ぬのが怖くなければ来てください。
    回复

    使用道具 举报

    该用户从未签到

    0

    主题

    2

    回帖

    2

    积分

    助理工程师

    积分
    2
    发表于 2022-5-14 15:42:57 | 显示全部楼层
    李恒道 发表于 2022-5-14 15:35
    论坛ne-21的实现了
    哥哥可以看一下

    在哪里,可以详细一点嘛?
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2023-2-28 23:59
  • 签到天数: 191 天

    [LV.7]常住居民III

    637

    主题

    5196

    回帖

    6078

    积分

    管理员

    非物质文化遗产社会摇传承人

    积分
    6078

    荣誉开发者管理员油中2周年生态建设者喜迎中秋

    发表于 2022-5-14 15:58:00 | 显示全部楼层
    混的人。
    ------------------------------------------
    進撃!永遠の帝国の破壊虎---李恒道

    入驻了爱发电https://afdian.net/a/lihengdao666
    个人宣言:この世界で私に胜てる人とコードはまだ生まれていません。死ぬのが怖くなければ来てください。
    回复

    使用道具 举报

    发表回复

    本版积分规则

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