Display Team stats on Phonetool

try to take over the world!

目前為 2019-06-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Display Team stats on Phonetool
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  try to take over the world!
// @author       You
// @match        https://phonetool.amazon.com/users/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var el = document.getElementsByClassName("UserLinks")[0];
    var user = window.location.href.split("/").pop();
    var link = 'https://code.amazon.com/cr_stats/team-view/' + user + '?time=month';
    var htm = '<a href="' + link + '">Team Stats</a>';
    var div = document.createElement('span');
    div.className = "optional-wrapper";
    div.innerHTML = htm;
    el.firstElementChild.firstElementChild.firstElementChild.parentNode.appendChild(div);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址