Skip to content

Instantly share code, notes, and snippets.

@rf5860
rf5860 / BitBucketBranchNameFixer.user.js
Last active December 14, 2018 09:14
BitBucketBranchNameFixer.user.js
// ==UserScript==
// @name BitBucket BranchName Fixer
// @version 0.1
// @description Fix the branch name on BitBucket
// @author rjf89
// @match https://bitbucket.org/*/pull-requests/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
@rf5860
rf5860 / perlmonksReadabilityEnhancements.user.js
Last active October 19, 2021 03:53
[perlmonks.org Readability Enhancements] Make posts & code easier to read on perlmonks.org #UserScript
// ==UserScript==
// @name perlmonks.org Readability Enhancements
// @description Readability Enhancements for perlmonks.org
// @author rjf89
// @include http://perlmonks.org/*
// @include https://perlmonks.org/*
// @include http://*.perlmonks.org/*
// @include https://*.perlmonks.org/*
// @include http://www.perlmonks.org/*
// @include https://www.perlmonks.org/*
@rf5860
rf5860 / RESImageAutoExpand.user.js
Created February 28, 2019 17:51
RES Image Auto Expand UserScript
// ==UserScript==
// @name RES Image Auto Expand
// @author rjf89
// @namespace RESImageAutoExpand
// @description Automatically expands images in Reddit when using the RES plugin.
// @include https://reddit.com/r/*
// @include https://*.reddit.com/r/*
// @version 1.0
// ==/UserScript==
@rf5860
rf5860 / Azure Release Pipeline OneClickReleases.user.js
Last active September 21, 2020 06:50
Azure Release Pipeline OneClickReleases.user.js
// ==UserScript==
// @name OneClickReleases
// @version 0.1
// @description Make the Create release button in Azure Pipelines a one-click action.
// @author rjf89
// @match https://dev.azure.com/*/*/_release?*
// @match https://dev.azure.com/*/*/_releaseDefinition?*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Open In Steam
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Open In Steam adds a button to all Steam sites to open the page in Steam.
// @author rf5860
// @match /https:\/\/.*steam.*\.com\/.*/
// @match http*://steamcommunity.com/*
// @match http*://store.steampowered.com/*
// @icon https://www.google.com/s2/favicons?domain=steampowered.com
@rf5860
rf5860 / Fuzzy Bookmarks.ps1
Last active May 26, 2023 19:23
FZF for Firefox on Windows 10
# Colors seem to only work on Powershell 7
Function ffh() {
$Columns = [int]((get-host).ui.rawui.WindowSize.Width / 3)
$Separator ='{::}'
$History = "$env:APPDATA\Mozilla\Firefox\Profiles\momll7d2.default-release\places.sqlite"
$TempFile = New-TemporaryFile
$Query = "select substr(title, 1, $Columns), url FROM moz_places where url NOT LIKE '%google%search%' order by last_visit_date desc"
Copy-Item $History -Destination $TempFile
@(sqlite3 -separator "$Separator" "$TempFile" "$Query") |
ForEach-Object {
@rf5860
rf5860 / Copy to Clipboard.user.js
Last active January 26, 2023 23:44
Adds a button to copy quotes to the clipboard from Fandom sites.
// ==UserScript==
// @name VoiceLines to Clipboard
// @version 0.1
// @description Add a button to copy links for voicelines to the clipboard
// @author rjf89
// @match https://*.fandom.com/wiki/*/Quotes
// @match https://*.fandom.com/wiki/*/Voice_lines
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @icon https://static.wikia.nocookie.net/overwatch_gamepedia/images/2/2a/PI_Overwatch_Logo_White.png/revision/latest/scale-to-width-down/100?cb=20160706121419
// @grant GM_setClipboard
@rf5860
rf5860 / Fandom Wiki Auto Expander.user.js
Last active May 23, 2023 15:07
Fandom Wiki Auto Expander
// ==UserScript==
// @name Fandom Wiki Auto Expander
// @version 0.1
// @description Auto-expand collapsible elements on fandom wiki
// @author rjf89
// @match https://deadcells.fandom.com/wiki/*
// @icon https://static.wikia.nocookie.net/deadcells_gamepedia_en/images/4/4a/Site-favicon.ico/revision/latest?cb=20210601142619
// ==/UserScript==
(function() {
@rf5860
rf5860 / userChrome.css
Created May 26, 2023 19:33
FireFox UserChrome
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* https://www.dedoimedo.com/computers/firefox-change-ui-tutorial.html */
/* Place this file in ~/AppData/Roaming/Mozilla/Firefox/Profiles/<default profile/chrome/userChrome.css */
/* Move findbar to top left */
.browserContainer > findbar {
position: absolute;
top: -1px;
left: 0px;
contain: content;
border-radius: 0 0 var(--toolbarbutton-border-radius) var(--toolbarbutton-border-radius);
@rf5860
rf5860 / PathCompletion.ps1
Last active June 13, 2023 04:46
Powershell Wildcard Path Completion
# Script to try and extend the tab completion functionality in Powershell to work with partially completed directory names.
# E.g. `~/d/r/o` -> `C:\Users\User\dev\repo\others', `C:\U\U' -> `C:\User\User`
# Tries to return any existing results first, and only does partial completion if no resullts could be found
# Use at your own risk - this is flakey, and will probably break in a lot of cases
#
# ----------------
# Path Completion
# ----------------
function Get-CompletedPath {
param($pathToComplete)