add safari script

This commit is contained in:
davidlo committed 2022-07-21 19:30:21 +08:00
1 parent 6ab5ed3d30
commit 2864252334
2 files changed
+21

No files matched your search

+9
View File
@@ -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}`;
+12
View File
@@ -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}`;