// ==UserScript== // @name postmsg // @namespace https://bbs.tampermonkey.net.cn/ // @version 0.1.0 // @description gp up down // @author wyz // @grant GM_xmlhttpRequest // @grant GM_notification // @grant GM_cookie // @grant GM_log // ==/UserScript== function postmsg(url,content){ GM_xmlhttpRequest({ url: url, method: "POST", data: `{"title":"服务脚本","url":"","content":"${content}"}`, responseType: "json", headers: { 'Content-Type': 'application/json', }, async onload(xhr) { console.log(xhr) console.log(xhr.response) } }); }