copia cookie

copia i cookie della pagina negli appunti

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           copia cookie
// @author         figuccio
// @version        0.2
// @description    copia i cookie della pagina negli appunti
// @namespace      https://greatest.deepsurf.us/users/237458
// @match          *://*/*
// @icon           https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @grant          GM_setClipboard
// @noframes
// @grant          GM_addStyle
// @grant          GM_setValue
// @grant          GM_getValue
// @license        MIT
// ==/UserScript==
(function() {
 'use strict';
let Container = document.createElement('div');
Container.id = "get-cookie-current_url";
Container.title ="copia negli appunti";
Container.style.position="absolute"
Container.style.left="550px"
Container.style.top="0px"
Container.style['z-index']="99999999999"
Container.innerHTML =`<button id="but-get-cookie-current_url" style="position:absolute;background:green;color:red;">Copia cookie</button>`

document.body.appendChild(Container);
//////////////////////////////////////funzione alert
const button = document.getElementById('but-get-cookie-current_url');
button.addEventListener('click', function() {
  alert('copiato!');
});
 /////////////////////////////////////////////////////////////
var btn;
var current_cookies;
btn = document.getElementById('but-get-cookie-current_url');
        btn.onclick = function (){
            current_cookies=document.cookie;
            GM_setClipboard(current_cookies);
            return;
        };

})();