Skip to content

Instantly share code, notes, and snippets.

@RoootTheFox
Last active May 28, 2025 12:07
Show Gist options
  • Save RoootTheFox/9480ae8ab1429cf09f05ecbcfacf60d3 to your computer and use it in GitHub Desktop.
Save RoootTheFox/9480ae8ab1429cf09f05ecbcfacf60d3 to your computer and use it in GitHub Desktop.
bsky redirect skip
// ==UserScript==
// @name go.bsky.app skip
// @namespace https://rooot.gay/
// @version 2025-05-28
// @description gets rid of the go.bsky.app redirect slowdown c:
// @author rooot
// @match https://bsky.app/*
// @updateURL https://gist.github.com/RoootTheFox/9480ae8ab1429cf09f05ecbcfacf60d3/raw/8689ae91a49ab2b965497ea0509fc73773c5037b/bskyredirectskip.user.js
// @icon https://web-cdn.bsky.app/static/favicon.png
// @run-at document-start
// @grant unsafeWindow
// ==/UserScript==
console.log("patching window.open to remove go.bsky.app");
let _orig_open = window.open;
unsafeWindow.open = function() {
let args = [...arguments];
if (args.length > 0) {
let target = new URL(args[0]);
if (target.host == "go.bsky.app") {
let params = new URLSearchParams(target.search);
args[0] = params.get("u");
}
}
_orig_open.apply(null, args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment