GetThecookie

Get the cookie of the current web page with one click, and automatically release it and set it on the clipboard, which can be directly pasted and used (the get button is located in the lower left corner of the page).

Autor
Techwb
Instalações hoje
3
Total de instalações
2.607
Avaliações
5 0 0
Versão
2.5.0
Criado
25/11/2022
Atualizado
09/12/2022
Licença
none
Aplicável a
Todos os sites

有网友提出了做成书签的需求,现将操作方法写出来供大家参考:

添加一个浏览器标签(书签),然后将网址改成以下代码,即可实现标签化一键获取当前页(网站)cookie,并自动放置于剪贴板上:
javascript:(function(){ var cookies = document.cookie; navigator.clipboard.writeText(cookies).then(function() { alert("Cookies已经放置到剪贴板上:\n " + cookies); }, function(err) { alert("不能复制该网站cookie到剪贴板: " + err); });})()

PS:注意!(仅针对书签脚本)

  • 浏览器可能弹出需要访问剪贴板权限,点击“允许”即可。
  • 如不想弹窗提示已复制cookie提示,可将alert的窗体提示代码去掉。



一键获取当前网页cookie的油猴插件,并且自动放置于剪切板,可直接粘贴使用(获取按钮位于页面左下角)。
点击会有windows弹窗提示,不想要弹窗可以自己在源代码注释掉: