Last active
November 4, 2015 09:43
-
-
Save brisbanewebdeveloper/aafa565dc7da09ed909f to your computer and use it in GitHub Desktop.
Enters your postcode automatically at Telstra Service Status page
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 Enter postcode at Telstra Site | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description Enter your postcode automatically at Telstra Service Status page | |
// @author Hiro Nozu | |
// @match http://servicestatus.telstra.com/ | |
// @grant none | |
// ==/UserScript== | |
var myPostcode = '1234'; // Your postcode | |
function applyCustomABC() { | |
var button = $('#blackhawk_search_location_button'); | |
var inputBox = $('#blackhawk_search_location_textfield'); | |
if (button.length) { | |
inputBox.val(myPostcode).blur(); | |
setTimeout(function() { button.click(); }, 500); | |
} else { | |
setTimeout(applyCustomABC, 100); | |
} | |
} | |
applyCustomABC(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment