Greasy Fork

Greasy Fork is available in English.

ECUSTAI发送cookies

Get website cookies and generate a link to send them

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         ECUSTAI发送cookies
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Get website cookies and generate a link to send them
// @author       Your Name
// @match        *://ai.s.ecust.edu.cn/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 获取当前网站的 Cookie
    const cookies = encodeURIComponent(document.cookie); // 对 Cookie 进行编码

    // 生成链接
    const link = `https://ai.bestzyq.cn/cookies.php?cookies=${cookies}`;

    // 创建链接元素并添加到页面
    const linkElement = document.createElement('a');
    linkElement.href = link;
    linkElement.textContent = '点击这里发送 Cookies';
    linkElement.style.display = 'block'; // 让链接在新行显示
    linkElement.target = '_blank'; // 在新标签页打开链接

    // 将链接添加到页面的 body
    document.body.appendChild(linkElement);
})();