mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-21 21:10:21 +08:00
猿人学第5题-
This commit is contained in:
parent
d21ce88eef
commit
5a1ffb9d51
@ -1,5 +1,9 @@
|
|||||||
## 知识点
|
## 知识点
|
||||||
|
|
||||||
|
hook cookie
|
||||||
|
|
||||||
|
Cookie之所以要新增一个包含固定字符串的判断是因为,cookie经常被修改,这样会断很多次,而我们只想让他断在固定cookie块被设置的时候,因此这么写
|
||||||
|
|
||||||
// 方案二 indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。
|
// 方案二 indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。
|
||||||
|
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
@ -26,3 +30,27 @@
|
|||||||
})
|
})
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
hook window
|
||||||
|
|
||||||
|
// ==UserScript==
|
||||||
|
// @name Hook Cookie
|
||||||
|
// @namespace http://tampermonkey.net/
|
||||||
|
// @version 0.1
|
||||||
|
// @description pass
|
||||||
|
// @author ayf
|
||||||
|
// @run-at document-start
|
||||||
|
// @match *://match.yuanrenxue.com/*
|
||||||
|
// @grant none
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
Object.defineProperty(window, "_$ss", {
|
||||||
|
set:function(val){
|
||||||
|
console.log(11111)
|
||||||
|
console.warn("hook _$ss", val)
|
||||||
|
debugger;
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user