0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

httpOnlyクッキーをtampermonkeyで取得するには、Allow scripts to access cookiesをAllにして**保存**が必要【Slack xoxd- cookie】

0
Posted at

Allow scripts to access cookies All

スクリプトによる Cookie へのアクセスを許可:をすべてにして 保存 しよう (保存ボタン忘れがち)
image.png

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);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?