// ==UserScript== // @name GetThecookie // @name:zh-CN 一键获取网站cookie // @name:zh-TW 一键获取网站cookie // @name:zh-HK 一键获取网站cookie // @name:zh-ja ワンクリックでウェブサイトの Cookie を取得 // @namespace https://www.techwb.cn/177.html // @version 2.4.2 // @description 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). // @description:zh-CN 一键获取当前网页cookie,并且自动放置于剪切板,可直接粘贴使用(获取按钮位于页面左下角)。 // @description:zh-TW 一键获取当前网页cookie,并自动释放设置于剪切板,可直接粘贴粘贴使用(获取按钮位于页面左下角)。 // @description:zh-HK 一键获取当前网页cookie,并自动释放设置于剪切板,可直接粘贴粘贴使用(获取按钮位于页面左下角)。 // @description:ja 现在の Web ページの Cookie をワンクリックで取得でき、取得ボタンの位置は左下隅にあり、ボタンをクリックすると、现在のページの Cookie がクリップボードに置かれます. // @author Techwb.cn // @match http*://* // @include http*://* // @icon https://www.techwb.cn/logo.png // @grant GM_setClipboard // @license none // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Your code here... let Container = document.createElement("div"); Container.id = "getcookie"; Container.style.position = "fixed"; Container.style.color = "red"; // Container.style.right="0px" // 默认靠左边,靠右请去掉注释; Container.style.top = "90%"; // 垂直方向位置,可自定义; Container.style["z-index"] = "999999"; Container.innerHTML = `