zoukankan      html  css  js  c++  java
  • 屏蔽ewt的防刷课脚本

    众所周知,当你试图多开ewt的网课时,视频会自动暂停

    通过查看源码可知,判断你刷课的标准是检查客户端的Cookie

    // 读token Cookie 不解析的
    function GetToken(name) {
        var strArg = name + "=";
        var nArgLen = strArg.length;
        var nCookieLen = document.cookie.length;
        var nEnd;
        var i = 0;
        var j;
        while (i < nCookieLen) {
            j = i + nArgLen;
            if (document.cookie.substring(i, j) == strArg) {
                nEnd = document.cookie.indexOf(";", j);
                if (nEnd == -1) nEnd = document.cookie.length;
                if (document.cookie.substring(j, nEnd) == "") return null;
                return unescape(document.cookie.substring(j, nEnd));
            }
            i = document.cookie.indexOf(" ", i) + 1;
            if (i == 0) break;
        }
        return null;
    }
    

    单击“cookie”

    单击“cookie

    所以只要删除token就可屏蔽防刷课脚本了
    删除“token”

    删除“token”

    打开新的网课,此时被删token的页面就不会自动停止播放了

  • 相关阅读:
    flex-direction
    flex-grow
    Push API
    ServiceWorker.state
    Using Service Workers
    Promise.then
    Promise()
    Using promises
    node-rsa
    async.waterfall
  • 原文地址:https://www.cnblogs.com/obj-a/p/13580702.html
Copyright © 2011-2022 走看看