Skip to content

Instantly share code, notes, and snippets.

View malcolmocean's full-sized avatar

Malcolm Ocean malcolmocean

View GitHub Profile
@malcolmocean
malcolmocean / intend-old-montserrat-font.user.css
Created September 7, 2023 12:29
restore the old font to intend.do (from before the rebrand)
@-moz-document domain("intend.do") {
.ffmo, .btn, h1, h2, h3, h4, h5, .h5,
.navbar-nav > li > a, thead, .jumbotron,
.goal-name, .goal-terzukte, .goal-box .oneliner, .goal-box-code,
.goal-terzukte .editable-wrap input.editable-input,
.new-milestone-name, .outliney-box, .outliney-help,
.ticker, .cfp-hotkeys-key, .pp-quote-bubble,
.goal-box-container .goal-date, .goal-box-container .goal-privacy, .goal-box-container .goal-milestone
.nav-accomplishments.nav-tabs > li > a, blockquote.accomplishment-quote,
.timer-spare-durs, .countbox.v, .outcomes-empty-list-placeholder,
@malcolmocean
malcolmocean / chatgpt_bitch.user.js
Last active April 10, 2023 19:05
UserScript: Clarify precisely why ChatGPT won't answer questions
// ==UserScript==
// @name Clarify precisely why ChatGPT won't answer questions
// @namespace
// @version 0.1
// @description Finds and replaces text in specified elements on a webpage, and detects the appearance of new matching elements
// @match https://chat.openai.com/*
// @grant none
// @license MIT License
// ==/UserScript==
@malcolmocean
malcolmocean / fclips.js
Created January 15, 2023 04:54
node command-line script that uses ffmpeg to cut a video into clips in one command
#! /usr/bin/env node
// created by Malcolm Ocean (malcolmocean.com) mid-2021, published Jan 2023
// CC-BY-SA license
// call as fclips.js source.mp4 list.txt
// where list.txt contains lines like
// 59:36 to 1:00:53
// (millis allowed)
@malcolmocean
malcolmocean / twitter-focus-permalink-and-postonly.user.js
Created November 17, 2021 20:39
Twitter Focus Permalink and Postonly page userstyle
@malcolmocean
malcolmocean / twitter-no-moretweets-permalink.user.js
Created August 22, 2021 01:35
Destroy "?s=21" permalink urls
@malcolmocean
malcolmocean / twitter-post-only.user.css
Created May 5, 2021 23:02
Twitter Userstyle - Post Only
/* install this userstyle using eg the Stylus extension, then
* go to https://twitter.com/post/status/only
* to be able to tweet without getting sucked into the rest of twitter
*/
@-moz-document url("https://twitter.com/compose/tweet"), regexp(".*twitter.com.*/status/.*") {
header[role="banner"] {display:none}
div[aria-label="Back"] {display: none;}
div[data-testid="DMDrawer"] {display: none;}
main {margin-left: 30px;}
}
@malcolmocean
malcolmocean / twitter-timeline-ultraspaced.user.css
Last active September 1, 2024 21:03
Twitter timeline ultraspaced
@-moz-document url("https://x.com/home"), url("https://x.com/compose/post"),
url("https://twitter.com/home"), url("https://twitter.com/compose/tweet") {
div[aria-label="Timeline: Your Home Timeline"] > div > div article {
padding-bottom: 1000px;
}
}
@-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 / 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"
]