NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Wildberries unselect goods in cart // @namespace https://openuserjs.org/users/fodin // @version 0.1 // @description Снимает выделение со всех товаров в корзине на сайте Wildberries // @author fodin // @match https://www.wildberries.ru/* // @icon https://www.google.com/s2/favicons?sz=64&domain=wildberries.ru // @grant none // @updateURL https://openuserjs.org/meta/fodin/Wildberries_unselect_goods_in_cart.meta.js // @license MIT // ==/UserScript== (function () { 'use strict'; function clear() { if (window.location.href === 'https://www.wildberries.ru/lk/basket') { const checkBox = document.querySelectorAll('input[type="checkbox"][data-link="{:allIncluded():}"]'); if (checkBox.length === 1) { checkBox[0].click(); } } } navigation.addEventListener("navigate", function (event) { setTimeout(clear, 1000); }); })();