This is just a summary of this very useful blog post.
Pons of round wind, your seat wind, ๐, ๐ , and ๐.
| // ==UserScript== | |
| // @name Double Column for Barometric Pressure App Graphs | |
| // @namespace dinir.works | |
| // @version 1.0.0 | |
| // @description Puts the two graphs in barometricpressure.app side by side. | |
| // @author Dinir Nertan | |
| // @include /^https:\/\/barometricpressure\.app\/results\?.*/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=barometricpressure.app | |
| // @grant none | |
| // ==/UserScript== |
| /* | |
| Go to your screenshot page, set view as Image Wall, | |
| press F12, then go to console to paste this code. | |
| The browser tab should be visible on the monitor. | |
| I highly recommend moving them to a corner where you can't see | |
| the screenshots as the page scrolls, as you won't see them ever again. | |
| When the page eventually refreshes and says an error occured, | |
| keep the page open until you see no more number changes on your profile. | |
| */ |
| /** | |
| * Get a query map based on a query string. | |
| * | |
| * The function will populate a map variable with key value pairs of the parameters. | |
| * | |
| * If there is more than one of the same key, the function will populate an array in the map with the multiple values within it. | |
| * | |
| * Forked from {@link https://gist.github.com/MatthewDaniels/388fa1e0c02613f103f00a504ed58c55 MatthewDaniels/parse-query-parameters-into-a-map.js}. | |
| * | |
| * @param {?string} [query=window.location.search] The query string - the question mark is optional |
| const replaceStorage = doubleStringifiedStorage => { | |
| // copy storage with `copy(JSON.stringify(JSON.stringify(window.localStorage)))` | |
| window.localStorage.clear() | |
| const imported = JSON.parse(doubleStringifiedStorage) | |
| for (const n in imported) { | |
| localStorage.setItem(n, imported[n]) | |
| } | |
| } |
| /* | |
| Size: Width 320, Height 400 | |
| Crop: Top 64, Bottom 278 | |
| */ | |
| body { background-color: rgba(0, 0, 0, 0); margin: 0px; auto; overflow: hidden; } | |
| /* transparent background */ | |
| .white-bg, .gray-bg, .breadcrumb { background-color: rgba(0, 0, 0, 0); } | |
| div.row:nth-child(4) div, .table-striped > tbody > tr:nth-of-type(2n+1) { | |
| background-color: rgba(0, 0, 0, 1); |
| /** | |
| * Convert HSV (0-360, 0-100, 0-100) to RGB (0-255 each) | |
| * @param {number[]} hsv array containing hue, saturation, and value | |
| * @returns {number[]} array containing value of each color | |
| * | |
| * @link https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB | |
| * @link https://www.desmos.com/calculator/jhx7p5idov | |
| */ | |
| function HSVToRGB (hsv) { | |
| // convert value range of saturation and value |
| #set( $MyName = "Dinir Nertan" ) | |
| #set( $MyTwitterHandle = "@DinirNertan" ) | |
| #set( $ThemeColor = "#65849f" ) | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>#[[$1Title$]]#</title> |
| class ErrorLogCollector { | |
| constructor() { | |
| /* | |
| By putting it in an array, the log variable can be copied by reference. | |
| And when attempted to display the whole array on a textarea | |
| it will only show the text. | |
| */ | |
| this.errorLog = [''] | |
| this.write = this.write.bind(this) |
| GIMP Palette | |
| Name: DNR-12x8 | |
| Columns: 8 | |
| # by Dinir Nertan using ColorBox | |
| # https://github.com/Dinir | |
| # https://www.colorbox.io/ | |
| # | |
| 0 0 0 #000000 | |
| 255 255 0 #ffff00 | |
| 255 0 255 #ff00ff |
This is just a summary of this very useful blog post.
Pons of round wind, your seat wind, ๐, ๐ , and ๐.