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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Techwb
Dziennych instalacji
1
Wszystkich instalacji
2 965
Oceny
5 0 0
Wersja
2.5.0
Utworzono
25-11-2022
Zaktualizowano
09-12-2022
Rozmiar
8,05 KB
Licencja
none
Dotyczy
Wszystkie strony

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

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