- these are the calls used by the dexcom uploader app
- these are in no particular order!
User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0
GET
| ** | |
| * When you encounter a website that forces you to watch videos without | |
| * leaving focus or plays them very slowly, this set of code may help. | |
| * Your mileage may vary, so play around. | |
| * | |
| * First, set the right browser context in your console. | |
| * Easiest is to right click on an element in the UI, and inspect. | |
| * Alternatively, find it in the context dropdown under the `top` context. | |
| * Example, `contentRelay` | |
| */ |
| function markGithubFileViewed() { | |
| getFirstOldGithubUiViewedCheckbox = () => $('input[type="checkbox"].js-reviewed-checkbox:not([checked])'); | |
| getFirstNewGithubUiViewedCheckbox = () => $('button[aria-pressed="false"'); | |
| let firstMatchingElement = getFirstOldGithubUiViewedCheckbox() ?? getFirstNewGithubUiViewedCheckbox(); | |
| if (!firstMatchingElement) { | |
| console.error('No viewed checkbox found'); | |
| return; | |
| } | |
| firstMatchingElement.scrollIntoView(); | |
| setTimeout(() => firstMatchingElement.click(), /*Time to Read the code*/10); |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| </head> | |
| <body> | |
| <button id="test">Click me!</button> | |
| <button id="replace-button">Replace Click me!</button> | |
| </body> | |
| <script> | |
| { |
| <canvas height="720" width="1280" id="canvas"></canvas> | |
| <button id="snapshotBtn">snapshot</button> | |
| <script> | |
| var fragments = []; | |
| var frames = []; | |
| var ws = new WebSocket('ws://192.168.1.3:4001'); | |
| var canvas = document.getElementById('canvas'); | |
| var ctx = canvas.getContext('2d'); | |
| var reader = new FileReader(); |
| This is the title of the gist (It is first, since it starts with a space in the name) |