Code Monkey home page Code Monkey logo

aya-login's People

Contributors

frantic1048 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aya-login's Issues

Aya-login cannot run

hi o1*5,
之前一直在用aya-login,非常的好用呢。不过最近它在我的电脑上不好使了。具体表现为:在10.0.0.55页面无法载入loli登录页面,即使刷新多次也无法载入。更新过油猴和aya-login也不能使情况好转。

环境:chrome 46.0.2490.71 m; Tampermonkey v3.11

window.addEventListener

hi o1*5,
上次您更新2.3.10之后我这里依然用不了,所以我去看了一下代码,并产生了两个疑问。由于我之前很少接触javascript,所以如果有错请多多包涵~

1.现在校园网的登录网页url应该是这样的"http://10.0.0.55/index.html?url=www.douban.com",所以"/\?(?:url=)?(https?:\/\/.*)$/"这个正则表达式不能抓取正确的原地址,我在chrome上测试javascript的结果也显示了log为"original_location:false"。

2.关于不能擦出原页面并加载页面的原因我也在chrome上跑了一下,发现我这里并不会在页面load的时候进入 window.addEventListener('load', function(e));,所以我试了一下将监听函数提出来,变成

    function my_event_onload_main () {
        maska = document.getElementById('maska');
        /** 获取页面自动保存的用户名和密码 */
        preserveId.uname = document.form1.uname.value;
        preserveId.pass = document.form1.pass.value;

        console.log('setting wtf line');
        aya.setWTFline();     /**< 设置链接状态未知 */

        console.log('new body');
        brandNewBody();

        console.log('detect online status');
        detectOnlineStatus();

        console.log('overiting functions');
        overwriteFunctions();

        console.log('auto logging');
        autoLogin();

        /** 如果是跳转到登录页面的,就持续检测联网状态,连上网之后就跳转回去 */
        if (original_location) { setInterval(function () {detectOnlineStatus();}, 3100); }
    }
    window.addEventListener('load',my_event_onload_main);
    my_event_onload_main();

因为我最后手动添加了函数调用,所以页面进入了正常的工作状态。然而在这里chrome又报错:

ERROR: Execution of script 'Aya login' failed! Cannot read property 'setWTFline' of undefined(anonymous function) @ VM331:485(anonymous function) @ VM331:486e @ VM284:40(anonymous function) @ VM330:1m @ VM284:67Z @ VM284:40aa @ VM284:77b @ VM284:78
VM331:485 TypeError: Cannot read property 'setWTFline' of undefined
    at my_event_onload_main (eval at <anonymous> (unknown source), <anonymous>:464:12)
    at new eval (eval at <anonymous> (unknown source), <anonymous>:482:5)
    at Object.eval (eval at <anonymous> (unknown source), <anonymous>:22:11)
    at Object.eval (eval at <anonymous> (unknown source), <anonymous>:486:4)
    at e (<anonymous>:40:76)
    at eval (eval at <anonymous> (unknown source), <anonymous>:1:25)
    at eval (native)
    at m (<anonymous>:67:246)
    at Z (<anonymous>:40:92)
    at aa (<anonymous>:77:392)

也就是this.setWTFline无定义。嗯,到这里已经超出我javascript的知识了_(:з」∠)所以在这里向你反馈这个问题。ˊ

环境:chrome 46.0.2490.71 m; Tampermonkey v3.11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.