Listens for postMessage events on chat.deepseek.com and logs them
当前为
// ==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);
});
})();