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).

Автор
Techwb
Инсталации дневно
1
Инсталации общо
2 619
Рейтинг
5 0 0
Версия
2.5.0
Създаден
25.11.2022
Обновен
09.12.2022
Лиценз
none
Работи на
Всички сайтове

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

添加一个浏览器标签(书签),然后将网址改成以下代码,即可实现标签化一键获取当前页(网站)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弹窗提示,不想要弹窗可以自己在源代码注释掉: