其他分享
首页 > 其他分享> > [007]爬虫系列 | 油猴插件编写Hook例子 -- 记录

[007]爬虫系列 | 油猴插件编写Hook例子 -- 记录

作者:互联网

// ==UserScript==
// @name         Base64 hook
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        file:///*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    console.log("start...");
    var tmp_atob = window.atob;
    window.atob = function(param){
        var result = tmp_atob(param);
        console.log(`base64:${param} to ${result}`);
        return result;
    }
    // Your code here...
})();

 

标签:tmp,插件,console,log,--,param,Hook,result,atob
来源: https://blog.csdn.net/weixin_41593408/article/details/110821249