Skip to content

Instantly share code, notes, and snippets.

@Strikeskids
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Strikeskids/9967251 to your computer and use it in GitHub Desktop.
Save Strikeskids/9967251 to your computer and use it in GitHub Desktop.
// ==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