diff --git a/Open_In_Spotify.js b/Open_In_Spotify.js new file mode 100644 index 0000000..3a0744d --- /dev/null +++ b/Open_In_Spotify.js @@ -0,0 +1,9 @@ +// ==UserScript== +// @name Open Spotify App +// @version 1.0.0 +// @author David +// @match *://*.spotify.com/* +// ==/UserScript== +window.location.href = `spotify://${window.location.pathname.slice(1)}${ + window.location.search +}${window.location.hash}`; \ No newline at end of file diff --git a/Open_In_Youtube.js b/Open_In_Youtube.js new file mode 100644 index 0000000..d245f32 --- /dev/null +++ b/Open_In_Youtube.js @@ -0,0 +1,12 @@ +// ==UserScript== +// @name Open YouTube App +// @version 1.0.0 +// @author asportnoy +// @match *://*.youtube.com/* +// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/ +// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/ +// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/ +// ==/UserScript== +window.location.href = `youtube://${window.location.pathname.slice(1)}${ + window.location.search +}${window.location.hash}`; \ No newline at end of file