Created
February 10, 2012 23:59
-
-
Save wwood/1794237 to your computer and use it in GitHub Desktop.
(working!) add the escapenet ISP to the list of supported ISPs in the netusage Firefox plugin
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
'escapenet': { | |
name: 'EscapeNet', | |
process: [ | |
'POST https://www.esc.net.au/myaccount/myaccount_login.php Action=Run&Redirect=%2Fmyaccount%2Fadsl%2Fadsl_usage.php&username={USERNAME}&password={PASSWORD}&submit=Log+In', | |
[/Web access denied/, 'ERROR', /.*<td>([^<]+) \((\d+)Gb\).*\n.*usage is <\/td><td>(\d+) Mb of (\d+) Mb.*\n.*?Off-Peak Data<\/td><td>(\d+) Mb of (\d+) Mb.*\n.*?Rollover<\/td><td>(\d\d\/\d\d\/\d\d\d\d)/], | |
'GET https://www.esc.net.au/myaccount/myaccount_logout.php', | |
], | |
varsDisplay: { | |
'0,1': { | |
'NONE': '{0:1|planname} {0:7|enddate}', | |
'COLUMNHEADING': ['Peak', 'Off-peak'], | |
'Usage': ['{0:3|MB|usage} / {0:4|MB|usage-quota}', '{0:5|MB|usagepo} / {0:6|MB|usagepo-quota}'], | |
} | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment