Greasy Fork is available in English.

亚马逊成本同步工具

插入产品成本,计算利润

// ==UserScript==
// @name         亚马逊成本同步工具
// @namespace    
// @version      0.11
// @description  插入产品成本,计算利润
// @author       Monty
// @match        https://www.baidu.com/*
// @icon         
// @grant        GM_xmlhttpRequest
// @license      MIT
// ==/UserScript==
(function() {
    'use strict';
    GM_xmlhttpRequest({
        method: "POST",
        url: "https://www.meiguodizhi.com/api/v1/dz",
        headers: {
            "content-type":"application/json"
         },
        data:{
            "city": "",
            "path": "/jp-address",
            "method": "refresh"
        },
        onload: function(response){
            console.log("请求成功");
            console.log(response.responseText);
            alert(response.response.data)
        },
         onerror: function(response){
          console.log("请求失败");
          alert("请求失败")
        }
    });
})();