Amazon Cart for quotation

Save time and improve the presentation of your Amazon quotes. This script eliminates clutter and ads from the cart, allowing you to generate clean and professional quotes in seconds.

  1. // ==UserScript==
  2. // @name Amazon Cart for quotation
  3. // @name:es Carro de Amazon para cotización
  4. // @namespace https://gf.qytechs.cn/es/users/1435102-fcord
  5. // @author fcord
  6. // @version 0.2.2
  7. // @license MIT
  8. // @description Save time and improve the presentation of your Amazon quotes. This script eliminates clutter and ads from the cart, allowing you to generate clean and professional quotes in seconds.
  9. // @description:es Ahorra tiempo y mejora la presentación de tus cotizaciones de Amazon. Este script elimina la publicidad y el desorden del carrito, permitiéndote generar cotizaciones limpias y profesionales en segundos.
  10. // @include http*://www.amazon.cn/*
  11. // @include http*://www.amazon.in/*
  12. // @include http*://www.amazon.co.jp/*
  13. // @include http*://www.amazon.com.sg/*
  14. // @include http*://www.amazon.com.tr/*
  15. // @include http*://www.amazon.ae/*
  16. // @include http*://www.amazon.fr/*
  17. // @include http*://www.amazon.de/*
  18. // @include http*://www.amazon.it/*
  19. // @include http*://www.amazon.nl/*
  20. // @include http*://www.amazon.es/*
  21. // @include http*://www.amazon.co.uk/*
  22. // @include http*://www.amazon.ca/*
  23. // @include http*://www.amazon.com.mx/*
  24. // @include http*://www.amazon.com/*
  25. // @include http*://www.amazon.com.au/*
  26. // @include http*://www.amazon.com.br/*
  27. // @include http*://smile.amazon.com/*
  28. // @run-at document-body
  29. // @match https://www.amazon.*/cart/view.html*
  30. // @grant none
  31. // ==/UserScript==
  32.  
  33. (function() {
  34. 'use strict';
  35.  
  36. // Función para ocultar o mostrar elementos
  37. function toggleElements(hide) {
  38. const elements = [
  39. "#amzn-ss-wrap",
  40. "#sc-secondary-list",
  41. "#rhf",
  42. "#navFooter",
  43. "#sc-new-upsell",
  44. "#sc-rec-bottom",
  45. "#sc-rec-right",
  46. "#proceed-to-checkout-desktop-container",
  47. "#cart-important-message-box",
  48. "#sc-new-upsell",
  49. "#nav-AssociateStripe"
  50. ];
  51.  
  52. elements.forEach(selector => {
  53. const element = document.querySelector(selector);
  54. if (element) {
  55. element.style.display = hide ? "none" : "";
  56. }
  57. });
  58.  
  59. // Cambiar el texto del H2
  60. const header = document.querySelector("div#sc-active-items-header h2");
  61. if (header) {
  62. header.textContent = hide ? "Modo Cotización" : "Carrito de compras"; // Texto original
  63. }
  64. }
  65.  
  66. // Crea el botón
  67. const button = document.createElement("button");
  68. button.textContent = "Ocultar elementos";
  69. button.style.cssText = `
  70. background-color: #4CAF50; /* Verde moderno */
  71. border: none;
  72. color: white;
  73. padding: 10px 20px;
  74. margin-right: 10px;
  75. cursor: pointer;
  76. border-radius: 5px;
  77. font-family: sans-serif;
  78. font-size: 16px;
  79. transition: background-color 0.3s ease;
  80. `;
  81.  
  82. button.addEventListener("click", function() {
  83. const isHidden = this.textContent === "Ocultar elementos";
  84. toggleElements(isHidden);
  85. this.textContent = isHidden ? "Mostrar elementos" : "Ocultar elementos";
  86. // Cambiar el color del botón al hacer clic
  87. this.style.backgroundColor = isHidden ? "#007bff" : "#4CAF50"; // Azul/Verde
  88. });
  89.  
  90. // Encuentra el elemento div#sc-active-cart y añade el botón antes de él
  91. const activeCartDiv = document.querySelector("div#sc-active-cart");
  92. if (activeCartDiv) {
  93. activeCartDiv.parentNode.insertBefore(button, activeCartDiv);
  94. }
  95.  
  96. })();

QingJ © 2025

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