Skip to content

Instantly share code, notes, and snippets.

View alanmtk's full-sized avatar

Alan Matkorski alanmtk

  • Buenos Aires, Argentina
View GitHub Profile
@alanmtk
alanmtk / pageFinder.cryptomines.js
Last active October 22, 2021 14:19
We have all suffered trying to get to a specific page in cryptomines marketplace. This code will take you to whatever page you want.
function goToLastPage() {
const links = [...document.querySelectorAll('.pagination li a')];
links[links.length - 2].click();
}
function goTo(page) {
const labels = [...document.querySelectorAll('.pagination a')].map(n => n.text);
if(!labels.includes(`${page}`)) {
document.querySelector('.previousBttn').click();