Allow scripts to access cookies All
スクリプトによる Cookie へのアクセスを許可:をすべてにして 保存 しよう (保存ボタン忘れがち)

slack.user.js
// ==UserScript==
// @name Show Slack xoxd- cookie
// @namespace http://tampermonkey.net/
// @version 2026-07-02
// @description try to take over the world!
// @author You
// @match https://app.slack.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=slack.com
// @grant GM_cookie
// ==/UserScript==
setTimeout(async function() {
'use strict';
// Retrieve all cookies for the current domain
const cookies = await GM.cookie.list({name: 'd'})
console.log('GM_cookie', cookies, JSON.parse(localStorage.getItem('localConfig_v2')).teams);
}, 1000);