use*_*567 47 cookies google-chrome
我有什么方法可以在Chrome Developer工具中复制/编辑cookie吗?或者我需要为此安装自定义插件吗?
gdi*_*ble 29
跨浏览器解决方案:
另一种复制长cookie值的方法:
Cookie标头选项中提取cookie .例如: curl 'http://...' -H 'Cookie: session=...' ...
如果你有很多cookie并且不想安装任何插件,我创建了一个小脚本来避免一个一个复制cookie。
它仅在 Google Chrome 中进行了测试。
// Open the console in the developer tools
// Tab where you are getting the cookies from
// This block can be just copy and paste
let cookies = document.cookie;
cookies = cookies.split(";");
cookies = cookies.map(cookie => cookie.replace(" ", ""));
copy(cookies);
// Tab where you want to have the cookies
// This block cannot be copy and paste since there is no function to paste
const newCookies = // paste your cookies array here
newCookies.map(newCookie => {
document.cookie = newCookie;
})
Run Code Online (Sandbox Code Playgroud)
我对Google Chrome 使用了“ 编辑此Cookie”扩展程序,这非常好。
根据其文档:
EditThisCookie是一个cookie管理器。您可以添加,删除,编辑,搜索,保护和阻止Cookie!
| 归档时间: |
|
| 查看次数: |
56902 次 |
| 最近记录: |