Skip to content

Instantly share code, notes, and snippets.

View malcolmocean's full-sized avatar

Malcolm Ocean malcolmocean

View GitHub Profile
@malcolmocean
malcolmocean / fix_google_app_icons.user.js
Created October 27, 2020 22:54
Fix Godawful New Google app icons
// ==UserScript==
// @name Google - restore old favicons
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Google fucked up its icons. This unfucks them. See this tweet:
// https://twitter.com/Malcolm_Ocean/status/1316828432483979272
// @author @Malcolm_Ocean
// @match https://mail.google.com/*
// @match https://drive.google.com/*
// @match https://calendar.google.com/*
@malcolmocean
malcolmocean / stylus-2020-07-12-twitter.json
Created July 12, 2020 22:42
Malcolm Ocean distraction-reducing twitter styles
[
{
"name": "TweetOnly",
"enabled": true,
"sections": [
{
"code": "/*\ndiv[tabindex=\"0\"] {\n background: black;\n opacity: 1;\n}\n*/\n\ndiv[aria-modal=\"true\"] {\n outline: 1000px solid black;\n}",
"urls": [
"https://twitter.com/compose/tweet"
]
@malcolmocean
malcolmocean / meaningness-collapsible-toc.user.js
Created May 10, 2020 15:13
UserScript - Make Meaningness a little more like WorkFlowy
// ==UserScript==
// @name Collapsible Meaningness Table of Contents
// @namespace https://malcolmocean.com
// @version 0.1
// @description Make Meaningness a little more like WorkFlowy - MIT license, you do you
// @author @Malcolm_Ocean
// @match https://meaningness.com/
// @grant none
// ==/UserScript==
@malcolmocean
malcolmocean / twitter-add-onbeforeunload.user.js
Created April 18, 2020 23:05
Twitter UserScript - prevent accidentally closing tweetstorm drafts
// ==UserScript==
// @name Twitter - onbeforeunload for compose
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Have you ever lost a tweetstorm because you accidentally hit a hotkey to close a tab/window?
// This script adds the familiar "Leave site? Changes that you've made may not be saved." pop-up
// The text of that dialog is controlled by the browser, so it may vary, but the important part is a chance to confirm what you're doing.
// @author @Malcolm_Ocean
// @match https://twitter.com/*
// @grant none
@malcolmocean
malcolmocean / gellmann-amnesia-blocker.css
Created March 10, 2020 16:12
Gell-Mann Amnesia Blocker - remember which sites you don't trust
@-moz-document domain("dailymail.co.uk"), domain("nytimes.com") {
/* Source for "How do I know this site BSes"
Daily Mail - widely known to be a tabloid
NYT: https://twitter.com/paulg/status/1236975851255857152
*/
body:before {
position: fixed;
@malcolmocean
malcolmocean / quotetweet-notif-hack.js
Created July 29, 2019 17:23
Convert Twitter Notification "All" tab to a "QTs" tab
/** WHO: @Malcolm_Ocean
WHEN: 2019-07-29 @ 13:06
WHAT: See who's quoting you on Twitter by converting your All notification tab to show only QTs
This is mostly a proof of concept, because:
A) it's a little script, not a full-on userscript or browser extension
B) the ratio of other shit to QTs is so high that since it can only filter,
it must load & hide hundreds of other likes etc ...which makes it very slow
(so, in my experience, it's hard to get further back than a few hundred notifications)
(in fact I thiiiiiink at that point it actually restarts.)
@malcolmocean
malcolmocean / geoff-yed-tips
Created April 19, 2015 05:40
Geoff's tips for setting up yEd
From Geoff Anders, of Leverage Research (http://www.leverageresearch.org/)
For people doing goal factoring - or for people making any sort of box-and-arrow diagram - I recommended the program yEd. It is available here: http://www.yworks.com/en/products_yed_about.html
After you install it, I highly recommend setting up the defaults in the following way:
1. Open yEd.
2. Create a new document.
3. Click the white background; a small yellow square should appear on the canvas.
4. Click the small yellow square so as to select it.
@malcolmocean
malcolmocean / WorkflowyCompliceFormat
Created February 16, 2018 16:05
WorkflowyCompliceFormat userscript
// ==UserScript==
// @name WorkflowyCompliceFormat
// @description Stylizes complice-format tasks in workflowy with their appropriate Complice goal color.
// @author Malcolm Ocean
// adapted from WorkflowyStylableTags by Nigel Thorne and LukeMT
// @include http*://*workflowy.com/*
// @version 0.1
// ==/UserScript==
(function () {
@malcolmocean
malcolmocean / _ambient_quotes.md
Last active July 6, 2017 19:07
Malcolm's kindle highlights
@malcolmocean
malcolmocean / interval-worker.js
Last active April 28, 2017 14:40
Angular Worker-based Interval (to avoid Chrome background tab throttling)
var timers = {}
function fireInterval(id) {
this.postMessage({id: id})
}
var commands = {
setInterval: function W_setInterval(data) {
var time = parseInt(data.time || 0, 10)
timer = setInterval(fireInterval.bind(null, data.id), time)