Skip to content

Instantly share code, notes, and snippets.

View malcolmocean's full-sized avatar

Malcolm Ocean malcolmocean

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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 / 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/*
@-moz-document domain("twitter.com") {
body[style*='background'] {background: #012 !important;}
body[style*='background']:nth-child(2)::before {
content: "twitter will be here tomorrow\a\a🌱";
/*
content: "choose intent & scope before entering\a\a👁️";
content: "no twitter atm\a\a🚀\a\a ...coding!";
*/
color: white;
@malcolmocean
malcolmocean / twitter-timeline-ultraspaced.user.css
Last active March 14, 2021 19:19
Twitter timeline ultraspaced
@-moz-document url("https://twitter.com/home"), url("https://twitter.com/compose/tweet") {
div[aria-label="Timeline: Your Home Timeline"] > div > div article {
padding-bottom: 1000px;
}
}