Skip to content

Instantly share code, notes, and snippets.

@brisbanewebdeveloper
Last active November 4, 2015 09:43
Show Gist options
  • Save brisbanewebdeveloper/aafa565dc7da09ed909f to your computer and use it in GitHub Desktop.
Save brisbanewebdeveloper/aafa565dc7da09ed909f to your computer and use it in GitHub Desktop.
Enters your postcode automatically at Telstra Service Status page
// ==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