Skip to content

Instantly share code, notes, and snippets.

@sekrasoft
Created August 20, 2025 06:09
Show Gist options
  • Select an option

  • Save sekrasoft/db26ffbf101bb6caa0eef355c28fd67e to your computer and use it in GitHub Desktop.

Select an option

Save sekrasoft/db26ffbf101bb6caa0eef355c28fd67e to your computer and use it in GitHub Desktop.
Show full information @ Ozon tracking
// ==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