Created
August 20, 2025 06:09
-
-
Save sekrasoft/db26ffbf101bb6caa0eef355c28fd67e to your computer and use it in GitHub Desktop.
Show full information @ Ozon tracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Show full information | |
| // @namespace sekrasoft | |
| // @version 1.0.0 | |
| // @description Show full information | |
| // @author SekraSoft | |
| // @match https://tracking.ozon.ru/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| console.log(1); | |
| window.addEventListener('load', function (event) { | |
| var n = 0; | |
| var i = setInterval(function attempt () { | |
| console.log('trying...'); | |
| [].slice.call(document.querySelectorAll('div[class*="button__content"]')) | |
| .filter(x=>x.textContent=='Показать больше') | |
| .slice(0,1) | |
| .forEach(function (x) { | |
| x.click(); | |
| clearInterval(i); | |
| }); | |
| if (++n > 20) clearInterval(i); | |
| }, 100); | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment