Last active
December 31, 2017 21:03
-
-
Save DarkMatterMatt/badf3a61d743a098773e48150a4402e0 to your computer and use it in GitHub Desktop.
Auto Club selector for TaskPilot
This file contains 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 Auto Club selector for TaskPilot | |
// @namespace MattMoran | |
// @version 1.0.0 | |
// @description Automatically select your club | |
// @updateURL https://gist.github.com/DarkMatterMatt/badf3a61d743a098773e48150a4402e0/raw/ | |
// @author Matt Moran | |
// @copyright Matt Moran 2017 | |
// @match http://taskpilot.org/ | |
// ==/UserScript== | |
(function() { | |
"use strict"; | |
var myClub = "Aviation Sports (Auckland)"; | |
var clubElem = $("#Club"); | |
var myClubValue = clubElem.children("option:contains(" + myClub + ")").val(); | |
clubElem.val(myClubValue); | |
clubElem[0].form.submit(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment