Skip to content

Instantly share code, notes, and snippets.

@Strikeskids
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save Strikeskids/7acd286e9e81547a5501 to your computer and use it in GitHub Desktop.

Select an option

Save Strikeskids/7acd286e9e81547a5501 to your computer and use it in GitHub Desktop.
(function() {
var form = document.querySelector('form[name=activity_select_form]')
var matches = document.location.href.match(/\/bids\/([0-9]*)/)
if (form && matches[1]) {
form.innerHTML += '<input type="hidden" name="bid" value="' + matches[1] + '" />'
form.action = 'https://iodine.tjhsst.edu/api/eighth/signup_activity'
form.target = '_blank'
form.addEventListener('submit', setTimeout.bind(null, window.history.back.bind(window.history), 1000))
document.querySelector('div.blurb').innerHTML += ' API Signup enabled.'
}
})()
{
"manifest_version": 2,
"name": "Iodine Eighth Signup Tool",
"content_scripts": [
{
"matches": ["https://iodine.tjhsst.edu/eighth/*/choose/*"],
"js": ["eighth.js"],
"run_at": "document_end"
}
],
"version": "0.0.6"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment