Skip to content

Instantly share code, notes, and snippets.

@DavidBuchanan314
Last active July 5, 2023 05:21
Show Gist options
  • Save DavidBuchanan314/4f0cc29d356eca21a8ea01f2d84395f9 to your computer and use it in GitHub Desktop.
Save DavidBuchanan314/4f0cc29d356eca21a8ea01f2d84395f9 to your computer and use it in GitHub Desktop.
DEPRECATED - this doesn't do anything anymore, feeds work differently now
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bsky.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app
// @grant none
// ==/UserScript==
(window => {
'use strict';
let orig_URL = window.URL;
window.URL = function(url, base) {
let res = new orig_URL(url, base);
if (url == "https://bsky.social/xrpc/app.bsky.unspecced.getPopular") {
res.searchParams.set("includeNsfw", "true");
}
return res;
};
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment