镜像网址:https://claudes.top
安装油猴脚本,更换seesionKey的值,然后打开网址即可使用。
// ==UserScript==
// @name claudeTokenLogin and Hide Toasts
// @namespace https://cntheai.com/course
// @version 1.2.0
// @description 使用预设 token 登录 claude 并隐藏所有toast通知
// @author 微信号:Sunoot
// @match https://claude.ai/*
// @match https://claude.asia/*
// @grant GM_addStyle
// @license GNU GPLv3
// @downloadURL https://update.greasyfork.org/scripts/489697/claudeTokenLogin.user.js
// @updateURL https://update.greasyfork.org/scripts/489697/claudeTokenLogin.meta.js
// ==/UserScript==
(function() {
'use strict';
var sessionKey = 'sk-ant-sid01-UdTgQ0YhAcZ7V_TODC0k90KHri1gmACTJYc0SPoXcxZCdTVlq3brR62WelU11gPszUVjbomqHsrcfryDhS5U-w--0lqXQAA';
function applySessionKey() {
var cookieValue = 'sessionKey=' + sessionKey + '; path=/';
document.cookie = cookieValue;
location.reload();
}
// 检查是否已经登录
if (!document.cookie.includes('sessionKey=' + sessionKey)) {
applySessionKey();
}
// 添加CSS来隐藏toast通知
GM_addStyle(`
.fixed.right-0.top-0.z-50 {
display: none !important;
}
`);
})();