Skip to content

Instantly share code, notes, and snippets.

View fallaciousreasoning's full-sized avatar

Jay Harris fallaciousreasoning

  • Queenstown, New Zealand
View GitHub Profile
@fallaciousreasoning
fallaciousreasoning / gear.goggle
Last active April 2, 2024 00:39
NZ Gear Goggle
! name: NZ Gear
! description: A goggle which finds gear available in NZ
! public: true
! author: fallaciousreasoning
! homepage: https://github.com/fallaciousreasoning
$discard
! NZ made gear
$site=southernlitepacks.co.nz,boost=3
@fallaciousreasoning
fallaciousreasoning / git-continue
Created January 12, 2024 00:49
Generic script for continuing the current git operation
#!/usr/bin/env bash
repo_path=$(git rev-parse --git-dir)
if [ $? -ne 0 ]; then
exit $?
fi
if [ -d "${repo_path}/rebase-merge" ]; then
git rebase --continue
@fallaciousreasoning
fallaciousreasoning / goodreads-setreaddates.js
Created December 23, 2021 10:51
A script which adds a button to Goodreads for setting the Read date to the shevled date.
// ==UserScript==
// @name Goodreads Set ReadDate
// @namespace Violentmonkey Scripts
// @match https://www.goodreads.com/review/list/*
// @grant none
// @version 1.0
// @author -
// @description 20/12/2021, 12:05:54 pm
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am fallaciousreasoning on github.
  • I am dntbrsnbl (https://keybase.io/dntbrsnbl) on keybase.
  • I have a public key ASB8pWtl1gPQdF0krk8VnM8zDpRk233l1XiCNnjRhih-iQo

To claim this, I am signing this object:

@fallaciousreasoning
fallaciousreasoning / mailto:outlook.com.js
Last active January 15, 2020 05:34
A ViolentMonkey/GreaseMonkey/TamperMonkey script for opening mailto: links in Outlook.com
// ==UserScript==
// @name Outlook mailto: Handler
// @namespace Violentmonkey Scripts
// @match https://outlook.live.com/*
// @grant none
// @version 0.0.2.20190821021306
// @updateUrl https://gist.githubusercontent.com/fallaciousreasoning/3d0928be6f26778548de2d84778c3bb8/raw/mailto:outlook.com.js
// @description Let's Outlook.com open mailto: links
// ==/UserScript==
@fallaciousreasoning
fallaciousreasoning / github-notification-badges.js
Last active November 18, 2019 23:13
A ViolentMonkey/TamperMonkey/GreaseMonkey script for setting unread notification badges for Github.com
// ==UserScript==
// @name GitHub Notification Badges
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// ==/UserScript==
//
const getNotificationsCount = async () => {
const response = await fetch('https://github.com/notifications');
@fallaciousreasoning
fallaciousreasoning / outlook-unread-email-badges.js
Last active November 18, 2019 23:12
A ViolentMonkey/TamperMonkey/GreaseMonkey script for setting unread counts on Outlook.com
// ==UserScript==
// @name Outlook Unread Badge
// @namespace Violentmonkey Scripts
// @match https://outlook.live.com/mail/*
// @grant none
// ==/UserScript==
const getUnreadCount = () => {
return document.querySelectorAll(`div[aria-label~='Unread']`).length;
}
@fallaciousreasoning
fallaciousreasoning / messenger-unread-badges.js
Last active November 18, 2019 23:11
Uses the experimental Badging API to Badge messenger.com when installed as a desktop PWA.
// ==UserScript==
// @name Messenger.com Unread Count
// @namespace Violentmonkey Scripts
// @match https://www.messenger.com/*
// @grant none
// ==/UserScript==
const getUnreadCount = () => {
return document.querySelectorAll('._1ht3').length;
}
@fallaciousreasoning
fallaciousreasoning / goodreads-sort-to-read-by-date-added.js
Created November 6, 2019 07:21
By default, Goodreads sorts the to read shelf by least recently added. This reverses that.
// ==UserScript==
// @name Goodreads: Sort To Read by most recently added.
// @namespace Violentmonkey Scripts
// @match https://www.goodreads.com/*
// @downloadURL
// @grant none
// ==/UserScript==
const getLinksToUpdate = () => {
// Get all links to the to-read shelf that don't specify a sort order.
@fallaciousreasoning
fallaciousreasoning / the-crag-trad-filter.js
Last active August 21, 2019 02:11
A helper script for the crag for showing/hiding trad routes. This adds a button "Show/Hide Trad Routes" to the start of the Routes table.
// ==UserScript==
// @name The Crag, Only Sport
// @description A script for filtering trad climbs on the crag.
// @locale en
// @namespace Violentmonkey Scripts
// @match https://www.thecrag.com/*
// @grant none
// ==/UserScript==
const storeValue = (key, value) => localStorage.setItem(key, value);
const getValue = (key) => {