分享一些自己写的油猴脚本

// ==UserScript==
// @name         cn.epubee.com解除下载时间限制
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://cn.epubee.com/files.aspx
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    isVip = 1;
})();
// ==UserScript==
// @name         自动填写百度盘密码
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://pan.baidu.com/share/*
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @grant GM_xmlhttpRequest
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var htmlHref = window.location.href;
    var index = htmlHref .lastIndexOf("=");
    var str = htmlHref.substring(index+1, htmlHref.length);
    GM_xmlhttpRequest({
        method: 'GET',
        url: 'https://ypsuperkey.meek.com.cn/api/v1/items/BDY-'+str+'?client_version=2018.12&callback=?',
        onload: function(res) {
            var code = JSON.parse(res.responseText).access_code;
            $(".QKKaIE").val(code);
            $(".g-button-right").click();
        }
    });
})();

嘿嘿,我把第二个脚本写成了谷歌浏览器插件,欢迎下载使用。

https://github.com/xyy55/chrome-plugin/releases

 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值