Is there anyway to enter a javascript function in the console and have it persist after a page redirects?
I have to fill out a form several times that only differs by one field so I wrote some javascript to do it for me but I have to repaste it in every time it submits.
You can make a bookmarklet:
This will allow you to just click a button in chrome to apply your function.
Just create a bookmark that starts with
javascript:and includes your function, for example: