DeepSeek Message Listener

Listens for postMessage events on chat.deepseek.com and logs them

As of 11. 05. 2025. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         DeepSeek Message Listener
// @description  Listens for postMessage events on chat.deepseek.com and logs them
// @match        https://chat.deepseek.com/*
// @version 0.0.1.20250511165540
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener('message', event => {
        // Security check (optional): verify the message origin
        // if (event.origin !== 'https://your-parent-domain.com') return;

        // Log the received message and its origin
        console.log('Received message from parent:', event.data, 'origin:', event.origin);
    });
})();