您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add button with link to tracking information for each shipments in client portal.
// ==UserScript== // @name WEDO - add tracking link // @namespace http://tampermonkey.net/ // @version 0.2 // @description Add button with link to tracking information for each shipments in client portal. // @author pleswi // @match https://portal.wedo.cz/cs/shipments/* // @icon https://www.google.com/s2/favicons?sz=64&domain=wedo.cz // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js // @grant none // @license MIT // ==/UserScript== /*jshint multistr: true */ var $ = jQuery.noConflict(true); (function() { 'use strict'; $(".print_labels").each(function (index, element) { // element == this var orderNumber = $(this).attr("data-order_number"); if (orderNumber != null && orderNumber != undefined) { var refNumber = $(this).parent().parent().children('td').eq(2).text(); $(this).parent().next('td') .append('<a class="button button-small list-icon" href="https://trace.wedo.cz/index.php?orderNumber='+orderNumber+'&customerNumber='+refNumber+'" target="_blank">\ <svg class="bi" width="24" height="24" fill="currentColor"><use xlink:href="/static/vendor/bootstrap-icons/bootstrap-icons.svg?v=1652105226#box-seam"></use></svg>' ) } }); })();