Skip to content

Instantly share code, notes, and snippets.

@rohenaz
rohenaz / relay_dark_mode_styles.user.js
Created September 22, 2022 23:10
UserScript - RelayX.com Dark Mode
// ==UserScript==
// @name Dark Mode for RelayX.com
// @description Exactly what it sounds like.
// @match https://relayx.com/*
// @grant GM_addStyle
// @run-at document-start
// @version 0.0.1
// ==/UserScript==
GM_addStyle ( `
// ==UserScript==
// @name Remove clarify-box
// @author satchmo
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description This removes the propaganda box.
// @match https://www.youtube.com/*
// @match https://www.youtu.be/*
// @match https://youtube.com/*
// @match https://youtu.be/*
@rohenaz
rohenaz / bitcoin.conf
Last active May 16, 2020 16:09
Bitcoin SV node configuration example - for planaria + ubuntu
# location to store blockchain and other data.
datadir=/home/satchmo/.bitcoin
dbcache=4000
usecashaddr=0
# Must set txindex=1 so Bitcoin keeps the full index
txindex=1
# [rpc]
@rohenaz
rohenaz / youtube_remove_clarify.js
Last active May 11, 2019 17:47
Remove YouTube's political correctness banners
// ==UserScript==
// @name Youtube Remove political correctness banners
// @namespace https://metalens.allaboard.cash/
// @version 0.1
// @description remove political correctness banners
// @author Satchmo
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @match *://*.youtube.com/*
// @grant none
@rohenaz
rohenaz / stripParamsWorker.js
Created April 22, 2019 15:36
cloudflare worker - strip referral query parameters such as fbclid
/**
* Define regular expressions at top to have them precompiled.
*/
const urlRegex = new RegExp('^(refreshce|gclid|cx|ie|cof|siteurl|zanpid|origin|utm_[a-z]+|fbid|fbclid|mr:[A-z]+|ref(id|src))$');
addEventListener('fetch', event => {
event.passThroughOnException()
event.respondWith(handleRequest(event.request))
})
openapi: 3.0.1
info:
title: Delivery Dudes Vendor API
description: 'The vendor API provides information about Delivery Dudes vendor accounts, including order history. The endpoints documented here allow vendors to track their performance with Delivery Dudes.'
contact:
email: devteam@deliverydudes.com
version: 0.0.1
servers:
- url: https://api.deliverydudes.com
- url: https://api.devliverydudes.biz
@rohenaz
rohenaz / pre-commit-standard
Last active April 3, 2019 15:25
Pre-commit hook to automatically run standard
#!/bin/sh
# save as .git/hooks/pre-commit
# Run standard --fix before committing
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
@rohenaz
rohenaz / UserScript-YoursMuteList
Last active August 9, 2018 16:00
Hide posts by specific users on yours.org
// ==UserScript==
// @name User Mute List
// @namespace https://github.com/rohenaz
// @version 0.1
// @description Hide posts from specific users
// @author Satchmo
// @match https://www.yours.org/*
// @grant none
// ==/UserScript==
@rohenaz
rohenaz / UserScript-RedditNoPromoted.js
Last active October 4, 2023 15:54
UserScript - Remove Reddit Promoted Post
// ==UserScript==
// @name Reddit Hide Promoted Links (New Design)
// @namespace http://github.com/rohenaz
// @version 0.1
// @description remove promoted posts and advertisements
// @author Satchmo
// @match https://www.reddit.com/*
// @grant none
// ==/UserScript==
@rohenaz
rohenaz / UserScript-TwitterNoPromoted.js
Last active July 24, 2019 13:21
UserScript - Twitter no promoted tweets
// ==UserScript==
// @name Twitter No Promoted
// @namespace https://github.com/rohenaz
// @version 0.1
// @description remove promoted tweets
// @author Satchmo
// @match https://*.twitter.com/*
// @grant none
// ==/UserScript==