Created
October 18, 2011 01:58
-
-
Save jadell/1294431 to your computer and use it in GitHub Desktop.
Use Minimed's CareLinksite from Chrome.
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
// CareLink Linux | |
// version 0.0 | |
// | |
//-------------------------------------------------- | |
// | |
// This script allows users of Chrome on Linux to | |
// access the Minimed CareLink site at | |
// http://carelink.minimed.com | |
// | |
//-------------------------------------------------- | |
// | |
// ==UserScript== | |
// @name CareLink Linux | |
// @description Allow Linux users to use the Minimed CareLink website | |
// @include https://carelink.minimed.com/patient/entry.jsp | |
// @run-at document-end | |
// ==/UserScript== | |
function insertToDOM(code) { | |
var script = document.createElement('script'); | |
script.setAttribute("type", "text/javascript"); | |
script.textContent = code; | |
document.head.appendChild(script); | |
} | |
var interval = setInterval(function () { | |
if (document.readyState == 'complete') { | |
clearInterval(interval); | |
insertToDOM( | |
'window.clientInformation.userLanguage = clientInformation.language;' | |
+'bhawkTest();' | |
); | |
} | |
}, 100); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment