csdn 链接自动跳转油猴脚本 帆软自动登录脚本

更强悍的别人写的,可跳转多个url
Open the F**king URL Right Now

// ==UserScript==
// @name         CSDN-自动跳转链接
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       nongcunqq
// @match        https://link.csdn.net/*
// @icon         https://g.csdnimg.cn/static/logo/favicon32.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    closeLoginModal();
    var ci = setInterval(()=>{
        closeLoginModal();
    },2);
    setTimeout(()=>{
        clearInterval(ci);
    },3000);
    function closeLoginModal(){
        var btn = document.querySelector("a.loading-btn");
        if(btn){
            btn.click();
            clearInterval(ci);
        }
    }

})();

自动登录帆软

// ==UserScript==
// @name         自动登录帆软
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       nongcunqq
// @match        http://fbcbi.efoxconn.com/decision/login
// @icon         https://g.csdnimg.cn/static/logo/favicon32.ico
// @require      https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
   $(function () {
     closeLoginModal();
    var ci = setInterval(()=>{
        closeLoginModal();
    },200);
    setTimeout(()=>{
        clearInterval(ci);
    },16000);
    function closeLoginModal(){
        var btn = document.querySelectorAll("div.bi-basic-button");
         var username = document.querySelectorAll("input.bi-input");


        console.log('0')
        if(btn[3] && username[0]){
            window.οnlοad=function(){ alert('加载完毕');};
            console.log('1');
            console.log(username);
            console.log(btn);
             username[0].value='username';
            username[1].value = 'password';
            btn[3].click();
            clearInterval(ci);
        }
    }
   })

})();
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值