Skip to content

Instantly share code, notes, and snippets.

View malcolmocean's full-sized avatar

Malcolm Ocean malcolmocean

View GitHub Profile
@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 / Roam Custom DB Styles.css
Last active September 13, 2021 10:06
Malcolm's custom roam styles
/* If you copy this, keep the malcolmocean one and the metaroam one, as these are both public roams */
/* but change the other ones for your personal roam(s) */
@-moz-document url-prefix("https://roamresearch.com/#/app/metaroam") {
.roam-sidebar-content > .flex-h-box:first-child:after {
color: white;
padding-left: 10px;
}
.roam-topbar .flex-h-box > div:nth-child(2) {
padding-left: 30px;
}
@malcolmocean
malcolmocean / twitter-no-bother.user.js
Last active February 6, 2024 22:52
Twitter Userscript - no unread bothers in title & favicon
// ==UserScript==
// @name Twitter - no unread bothers in title & favicon
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Wanting to leave a tweet open for reference but the (1)
// in the title or the red dot in the favicon make you check
// notifications? This script removes both!
// @author @Malcolm_Ocean
// @match https://twitter.com/*
// @grant none
@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 / 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)
@malcolmocean
malcolmocean / Questions.xml
Created June 27, 2016 14:30
Modified Questions for the Credence Calibration Game (http://acritch.com/credence-game/)
<?xml version="1.0" encoding="utf-8"?>
<!-- for use with http://acritch.com/credence-game/ -->
<Questions>
<QuestionGenerator Used="y" Type="Sorted" Weight="1" QuestionText="Which US state had a higher population in 2010?" AdjacentWithin="-1" InfoPrefix="" InfoSuffix=" people">
<Answer Text="California" Value="37,253,956" />
<Answer Text="Texas" Value="25,145,561" />
<Answer Text="New York" Value="19,378,102" />
<Answer Text="Florida" Value="18,801,310" />
<Answer Text="Illinois" Value="12,830,632" />
<Answer Text="Pennsylvania" Value="12,702,379" />