Skip to content

Instantly share code, notes, and snippets.

View rossinek's full-sized avatar

Artur Rosa rossinek

View GitHub Profile
@rossinek
rossinek / harvest-shortcuts.js
Created August 26, 2021 21:02
Harvest (time tracking) arrow navigation
// Browser extension
// - Firefox: https://addons.mozilla.org/pl/firefox/addon/shark-javascript-injector/
// - Other browsers (source code): https://github.com/rossinek/javascript-injector-webextension
// Options:
// - hosts: https://*.harvestapp.com/time*
// - uses shortcuts
const isVisible = (elem) => {
if (!elem) return true;
@rossinek
rossinek / github-notifications-shortcuts.js
Created August 26, 2021 21:00
Github notifications arrow navigation
// Browser extension
// - Firefox: https://addons.mozilla.org/pl/firefox/addon/shark-javascript-injector/
// - Other browsers (source code): https://github.com/rossinek/javascript-injector-webextension
// Options:
// - hosts: https://github.com/notifications*
// - uses shortcuts
const isVisible = (elem) => {
if (!elem) return true;
@rossinek
rossinek / anc-toggle.scpt
Created March 15, 2021 08:46
Toggle AirPods Pro active noise cancelling with apple script
set soundMenu to ""
set airPodsToggle to ""
set ancToggle to ""
set transparencyToggle to ""
tell application "System Events"
tell its application process "ControlCenter"
set menuBarItems to menu bar items of menu bar 1
repeat with mbi in menuBarItems
if name of mbi contains "Sound" then