Skip to content

Instantly share code, notes, and snippets.

@Dark000Soldier
Last active December 4, 2022 17:58
Show Gist options
  • Select an option

  • Save Dark000Soldier/651b7d9dd8d28bbf86a7cf0a2a906257 to your computer and use it in GitHub Desktop.

Select an option

Save Dark000Soldier/651b7d9dd8d28bbf86a7cf0a2a906257 to your computer and use it in GitHub Desktop.
fork form : asportnoy/open-youtube-app.user.js
// ==UserScript==
// @name Open Reddit App
// @version 1.0.2
// @author asportnoy
// @match *://*.reddit.com/*
// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-reddit-app.user.js
// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-reddit-app.user.js
// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/
// ==/UserScript==
if (window.location.pathname === '/redirect') return;
window.location.href = `reddit://${window.location.pathname.slice(1)}${
window.location.search
}${window.location.hash}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment