Last active
August 29, 2015 14:07
-
-
Save Strikeskids/7acd286e9e81547a5501 to your computer and use it in GitHub Desktop.
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
| (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.' | |
| } | |
| })() |
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
| { | |
| "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