Skip to content

Instantly share code, notes, and snippets.

@Dinir
Last active December 30, 2022 10:56
Show Gist options
  • Save Dinir/e319dd7b36a96df5853dbe5651f1aa95 to your computer and use it in GitHub Desktop.
Save Dinir/e319dd7b36a96df5853dbe5651f1aa95 to your computer and use it in GitHub Desktop.
Puts the two graphs in barometricpressure.app side by side.
// ==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==
(rules => {
const styleElm = document.createElement('style')
document.head.appendChild(styleElm)
const styleSheet = styleElm.sheet
for (let i = 0; i < rules.length; i++)
styleSheet.insertRule(rules[i])
})([
'main:first-of-type section:first-of-type > div > div:nth-of-type(3), main:first-of-type section:first-of-type > div > div:nth-of-type(5) {width: 50%;}',
'main:first-of-type section:first-of-type > div > div:nth-of-type(3) {float: right;}',
'main:first-of-type section:first-of-type > div > div:nth-of-type(5) {float: left;}',
'main:first-of-type section:first-of-type > div > div:nth-of-type(5) > div {padding-top: 0;}',
'div[data-highcharts-chart="0"] div.highcharts-container {width: 50%;}'
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment