Skip to content

Commit ac0ace2

Browse files
committed
feat: v0.3
1 parent 8ffd620 commit ac0ace2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

Diff for: jquery-hook.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
// ==UserScript==
22
// @name jQuery Hook
3-
// @namespace https://github.com/CC11001100/crawler-js-hook-framework-public/tree/master/020-jQuery-hook
4-
// @version 0.2
3+
// @namespace https://github.com/CC11001100/jQuery-hook
4+
// @version 0.3
55
// @description 用于快速定位使用jQuery绑定到DOM元素上的事件的代码的真实位置,辅助逆向分析。
6-
// @document https://github.com/CC11001100/crawler-js-hook-framework-public/blob/master/020-jQuery-hook/README.md
6+
// @document https://github.com/CC11001100/jQuery-hook
77
// @author CC11001100
88
// @match *://*/*
99
// @run-at document-start
1010
// @grant none
1111
// ==/UserScript==
1212
(() => {
1313

14+
// 尽量唯一有区分度即可
1415
const globalUniqPrefix = "cc11001100";
1516

16-
// 在第一次设置jquery的时候添加Hook
17+
// 在第一次设置jquery的时候添加Hook,jQuery初始化的时候会添加一个名为$的全局变量
1718
Object.defineProperty(window, "$", {
1819
set: $ => {
1920

0 commit comments

Comments
 (0)