NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name OB/IB Dock Show 500 // @namespace http://tampermonkey.net/ // @version 1.0 // @description Adds Show 500 option, checks if its not there once a second even after internal page reset // @author Socialblurr // @match https://trans-logistics.amazon.com/ssp/dock/hrz/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function addExtraOption() { // Find the select element by name const selectEl = document.getElementsByName("dashboard_length")[0]; // Check if the extra option already exists const extraOption = selectEl.querySelector('option[value="500"]'); if (!extraOption) { // Create the new option element const optionEl = document.createElement("option"); optionEl.value = "500"; optionEl.text = "500"; // Add the new option element to the select element selectEl.add(optionEl); } } // Add the extra option when the page first loads addExtraOption(); // Set a timer to run the addExtraOption function every 30 seconds setInterval(addExtraOption, 1000); })();