miles house.

Code stuff

javascript cheats and other stuff ive made for random pet sites:


Neopets scripts Pokeheroes scripts Pokefarm Q scripts GPX scripts

Mostly just stuff for my own reference here



How to turn this:
list
seperated
by
lines

into this

"list",
"seperated",
"by",
"lines",

str.replace(/\n/gmi, '",\n"')



p3d.in infinite scroll without lagging

for (var i = $('div .col-large-2').length - 30; i > 0; i--) { $('div .col-large-2')[i].remove();

how to return to your spot in the list if you close the window:

var epicInt = setInterval (function() {if (!document.body.textContent.includes("whatever model name you last saw")) {for (var i = $('div .col-large-2').length - 30; i > 0; i--) { $('div .col-large-2')[i].remove(); } } }, 900)