Skip to content

Instantly share code, notes, and snippets.

@sergioska
Created June 3, 2020 07:20
Show Gist options
  • Save sergioska/fb26fcdb8c128fa1213a832cfa669ae7 to your computer and use it in GitHub Desktop.
Save sergioska/fb26fcdb8c128fa1213a832cfa669ae7 to your computer and use it in GitHub Desktop.
Tamper Monkey Script
window.onload = () => {
'use strict';
var times = 0;
var output = '';
var interval = setInterval(() => {
times += 1;
if (times === 5) {
clearInterval(interval);
scrollTo(0, 0);
var test = document.querySelectorAll('a[uid]');
for (var i = 0; i < test.length; i++) {
if (test[i].innerText !== '') {
output = output + test[i].innerText + '\n';
}
}
console.log(output);
return;
}
scrollBy(0, window.innerHeight+2000);
}, 2000);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment