miles house.

Code stuff

messy nonsense page i should probably polish up

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


Neopets scripts
Pokeheroes scripts
Pokefarm Q scripts
GPX scripts

Make images/gifs shake using CSS

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)

capybara text fucker upper


var word = "CAPYBARA"; var limit = 20; var output = word; var tempOut = word; console.log(word); for (var n = 1; n < limit+1; n++) { for (var i = 0; i < word.length; i++) { var charIndex = Math.min(((n*2) + n*i) + i, tempOut.length); tempOut = tempOut.substring(0, charIndex) + word[i] + tempOut.substring(charIndex); } output = tempOut; console.log(output); }