Skip to content

Instantly share code, notes, and snippets.

View ironblock's full-sized avatar
🚙
Nyoom

Corey Vixie ironblock

🚙
Nyoom
  • La Honda, CA
View GitHub Profile
@ironblock
ironblock / fill_out_form_random.js
Last active August 25, 2021 01:47
Fill out forms with random junk data when testing or developing things with long annoying forms
/**
* FILL OUT FORM WITH RANDOM DATA
*
* This bookmarklet makes a best effort to fill out a form with random junk data
* that probably can pass some pretty permissive validation. Not everything is
* currently implemented.
*
* It follows the these rules:
* <input>
* === "TEXT-LIKE" TYPES ===
@ironblock
ironblock / restore_copy_cut_paste.js
Last active August 9, 2021 17:24
Restore cut/copy/paste functionality on webpages that try to block it
/**
* RESTORE COPY/CUT/PASTE FUNCTIONALITY TO WEBPAGES
*
* Sometimes cut, copy, and paste are blocked by genius web developers or their
* super genius boss, who think that blocking these features actually works, as
* though a webpage was somehow an application running in "the cloud" that they
* have control over, rather than a jumped up text document running entirely on
* the user's machine.
*
* Worse, some think that it's somehow "more secure" if you can't paste a