Cookies与UserAgent获取 bởi 治电小白菜
辅助抓取网站登陆后有效Cookies和UserAgent
12 người dùng12 người dùng
Siêu dữ liệu mở rộng
Ảnh chụp màn hình
Về tiện ích mở rộng này
可通过右键获取当前页面的Cookies和UserAgent
也可通过主页面发送
也可通过主页面发送
window.parent.postMessage({type: 'tab', level: 'main'}, '*');, 来告知插件主页面ID, 这样在其他页面右键点击发送Cookies和UA到主页面时, 即可将Cookies和UserAgent发送给主页面, 主页面只需要通过mutationObserver监听 id 为 "cookie-block" 的DOM元素变化即可
const cookiesBlock = document.getElementById('cookie-block')
if (!cookiesBlock) return
const config = {
attributes: true,
childList: true,
subtree: true
}
const callback = function(mutationsList, observer) {
for (let mutation of mutationsList) {
if (mutation.type === 'childList') {
console.log(JSON.parse(cookiesBlock.innerText))
}
}
}
const observer = new MutationObserver(callback)
observer.observe(cookiesBlock, config)
Được xếp hạng 0 (bởi 1 người dùng)
Quyền hạn và dữ liệuTìm hiểu thêm
Quyền hạn bắt buộc:
- Hiển thị thông báo cho bạn
- Truy cập các thẻ trên trình duyệt
- Truy cập hoạt động của trình duyệt trong khi điều hướng
- Truy cập dữ liệu của bạn trên mọi trang web
Thêm thông tin
- Liên kết tiện ích
- Phiên bản
- 0.0.3
- Kích cỡ
- 19,5 KB
- Cập nhật gần nhất
- 6 năm trước (30 Thg 09 2019)
- Thể loại có liên quan
- Giấy phép
- Mozilla Public License 2.0
- Lịch sử các phiên bản
- Thêm vào bộ sưu tập