Last active
August 29, 2015 13:58
-
-
Save Strikeskids/9967251 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
// ==UserScript== | |
// @name Fix Iodine | |
// @namespace http://www.strikeskids.com | |
// @version 0.05 | |
// @description Fixes iodine's annoying either period activities | |
// @match https://iodine.tjhsst.edu/eighth/vcp_schedule/choose/* | |
// @copyright 2014+, Strikeskids | |
// ==/UserScript== | |
$(".activityInfoInner input").each(function() { | |
if ($(this).val() !== "Change") | |
return; | |
var parent = $(this).parent() | |
var dataRow = $(this).parents(".activityInfo").prev(".activityRow") | |
var aid = dataRow.data("aid") | |
var newButton = $('<button/>', { | |
name: 'aid', | |
type: 'submit', | |
value: aid | |
}).append("Change") | |
$(this).before(newButton).remove() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment