Created
December 26, 2018 05:23
-
-
Save haotian-liu/b676f06bc508110b4b54f32ae3fa1594 to your computer and use it in GitHub Desktop.
Bookmarklet for 19 Fall admission results in 1.3acres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const form = document.createElement("form"); | |
form.setAttribute("method", "post"); | |
form.setAttribute("action", "https://www.1point3acres.com/bbs/forum.php?mod=forumdisplay&fid=82&filter=sortid&sortid=164&orderby=dateline"); | |
/* form.setAttribute("target", "view"); */ | |
const hiddenField = (name, value) => { | |
const field = document.createElement("input"); | |
field.setAttribute("type", "hidden"); | |
field.setAttribute("name", name); | |
field.setAttribute("value", value); | |
return field; | |
}; | |
for (let [key, value] of Object.entries({ | |
'formhash': '9e1d40fe', | |
'searchoption[3004][value]': '12', | |
'searchoption[3004][type]': 'radio', | |
'searchoption[3005][value]': '1', | |
'searchoption[3005][type]': 'radio', | |
'searchoption[3001][value]': '0', | |
'searchoption[3001][type]': 'radio', | |
'searchoption[3002][value]': '0', | |
'searchoption[3002][type]': 'radio', | |
'searchoption[3003][value]': '0', | |
'searchoption[3003][type]': 'radio', | |
'searchoption[3023][value]': '0', | |
'searchoption[3023][type]': 'radio', | |
'searchoption[3043][value]': '0', | |
'searchoption[3043][type]': 'radio', | |
'searchsortsubmit': '' | |
})) { | |
form.appendChild(hiddenField(key, value)); | |
} | |
document.body.appendChild(form); | |
/* window.open('', 'view'); */ | |
form.submit(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment