Greasy Fork is available in English.
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.
当前为
// ==UserScript==
// @name Amazon Cart for quotation
// @name:es Carro de Amazon para cotización
// @namespace http://greasyfork.icu/es/users/1435102-fcord
// @author fcord
// @version 0.0.3
// @license MIT
// @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.
// @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.
// @include http*://www.amazon.cn/*
// @include http*://www.amazon.in/*
// @include http*://www.amazon.co.jp/*
// @include http*://www.amazon.com.sg/*
// @include http*://www.amazon.com.tr/*
// @include http*://www.amazon.ae/*
// @include http*://www.amazon.fr/*
// @include http*://www.amazon.de/*
// @include http*://www.amazon.it/*
// @include http*://www.amazon.nl/*
// @include http*://www.amazon.es/*
// @include http*://www.amazon.co.uk/*
// @include http*://www.amazon.ca/*
// @include http*://www.amazon.com.mx/*
// @include http*://www.amazon.com/*
// @include http*://www.amazon.com.au/*
// @include http*://www.amazon.com.br/*
// @include http*://smile.amazon.com/*
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
// Select the div you want to toggle (modify the selector as needed)
let targetDiv = document.querySelector('div#proceed-to-checkout-desktop-container'); // Change selector to target a specific div
if (!targetDiv) return;
// Create the button
let toggleButton = document.createElement('button');
toggleButton.textContent = 'Hide Payment Button';
toggleButton.style.display = 'block';
toggleButton.style.marginTop = '10px';
// Insert the button after the div
targetDiv.parentNode.insertBefore(toggleButton, targetDiv.nextSibling);
// Add event listener to toggle visibility
toggleButton.addEventListener('click', function() {
if (targetDiv.style.display === 'none') {
targetDiv.style.display = 'block';
toggleButton.textContent = 'Hide Payment Button';
} else {
targetDiv.style.display = 'none';
toggleButton.textContent = 'Show Payment Button';
}
});
})();
new MutationObserver(function(mutationList, observer) {
// Revisa si el carrito ta ahí
var carritotahi = document.querySelector("div#sc-retail-cart-container");
if (carritotahi) {
// Borra SiteStripe
document.querySelectorAll('div#amzn-ss-wrap').forEach(function(element) {
element.remove();
});
// Borra guardados
document.querySelectorAll('div#sc-secondary-list').forEach(function(element) {
element.remove();
});
// Borra el historial
document.querySelectorAll('div#rhf').forEach(function(element) {
element.remove();
});
// Borra publicidad tarjeta
document.querySelectorAll('div#sc-new-upsell').forEach(function(element) {
element.remove();
});
// Borra el pie
document.querySelectorAll('div#navFooter').forEach(function(element) {
element.remove();
});
// Borra el button
document.querySelectorAll('div#sc-rec-bottom').forEach(function(element) {
element.remove();
});
}
}).observe(document.body, { childList: true, subtree: true });