Apple Connect 通知服务器

try to take over the world!

// ==UserScript==
// @name         Apple Connect 通知服务器
// @namespace    http://tampermonkey.net/
// @version      0.1.4
// @description  try to take over the world!
// @author       HolmesZhao
// @match        *://appstoreconnect.apple.com/apps/1179683066/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    function addButton(name, marginLeft, fun) {
        var txt = document.createTextNode(name);
        var btn = document.createElement('button');
        btn.className = 'mmbutton';
        btn.style = "z-index: 9999; font-size: large; padding: 10px; background-color: white; position: fixed; top: 0pt; left: " + (marginLeft) + "px;";
        btn.onclick = fun;
        btn.appendChild(txt);
        document.body.appendChild(btn);
        return btn.offsetWidth + btn.offsetLeft;
    };
    
    function notiServer() {
        alert('通知成功!');
    }
    
    addButton("通知服务器提交审核了", screen.width / 3, notiServer);
})();