您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes YMS loading mask
// ==UserScript== // @name Remove YMS Loading Mask // @namespace https://trans-logistics.amazon.com/yms/shipclerk/#/yard // @version 2024-02-12 // @description Removes YMS loading mask // @author Dallas Fischer // @match https://trans-logistics.amazon.com/yms/* // @icon https://www.google.com/s2/favicons?sz=64&domain=mozilla.org // @grant none // ==/UserScript== (async function() { 'use strict'; function waitForElm(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { observer.disconnect(); resolve(document.querySelector(selector)); } }); // If you get "parameter 1 is not of type 'Node'" error, see https://stackoverflow.com/a/77855838/492336 observer.observe(document.body, { childList: true, subtree: true }); }); } await waitForElm("#loadingMask") let backdrop = document.querySelector("#loadingMask").remove() // Your code here... })();