Skip to content

Instantly share code, notes, and snippets.

@scriptype
Last active December 31, 2016 18:05
Show Gist options
  • Save scriptype/0d1a331f54bb8aef48344599cb59a4d4 to your computer and use it in GitHub Desktop.
Save scriptype/0d1a331f54bb8aef48344599cb59a4d4 to your computer and use it in GitHub Desktop.
Toplist-as-a-db
var form = new FormData()
var unique = crypto.getRandomValues(new Int32Array(3)).join('-')
form.set('modulenter[titel]', 'db-entry 5')
form.set('modulenter[url]', `http://${unique}.com`)
form.set('modulenter[name]', 'dba')
form.set('modulenter[email]', '[email protected]')
form.set('email', 'ZmxhYQD3BQtfYwD4ZvjlYwLkYQZ4YwDfZGRkYvjmBQD2')
form.set('mode', 'addlink')
form.set('modulenter[text]', JSON.stringify({
nick: "scriptype",
message: "lorem"
}))
fetch('list.htm', {
method: 'POST',
body: form
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment