commit afa96fed6de143bef4e672851f1bab653cb6adcc Author: Mike Rockwell Date: Wed Aug 13 14:37:27 2025 -0400 first commit diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e69de29 diff --git a/rosie/app.js b/rosie/app.js new file mode 100644 index 0000000..d1ed751 --- /dev/null +++ b/rosie/app.js @@ -0,0 +1,47 @@ +document.querySelector('#search-form').addEventListener('submit', (event) => { + event.preventDefault(); + console.log("Submit Triggered"); + const searchInput = document.querySelector("#search-field").value; + console.log(searchInput); + let queryPlus = searchInput.replace(/ /g, '+'); + console.log(queryPlus); + let queryUnderscore = searchInput.replace(/ /g, '_'); + console.log(queryUnderscore); + if (searchInput.startsWith("/")) { + console.log('Slash Command Triggered'); + if (searchInput.startsWith("/c")) { + let initialChargeSearch = "https://initialcharge.net/?s=" + queryPlus.replace('/c+', ''); + console.log(initialChargeSearch); + window.location.href = initialChargeSearch; + } + if (searchInput.startsWith("/i")) { + let invidiousSearch = "https://video.libertynode.org/search?q=" + queryPlus.replace('/i+', ''); + console.log(invidiousSearch); + window.location.href = invidiousSearch; + } + if (searchInput.startsWith("/o")) { + let odyseeSearch = "https://odysee.com/$/search?q=" + queryPlus.replace('/o+', ''); + console.log(odyseeSearch); + window.location.href = odyseeSearch; + } + if (searchInput.startsWith("/p")) { + let podcastSearch = "https://podcastindex.org/search?q=" + queryPlus.replace('/p+', ''); + console.log(podcastSearch); + window.location.href = podcastSearch; + } + if (searchInput.startsWith("/s")) { + let songSearch = "https://odesli.co/?q=" + queryPlus.replace('/s+', ''); + console.log(songSearch); + window.location.href = songSearch; + } + if (searchInput.startsWith("/t")) { + let tpbSearch = "https://thepiratebay.org/search.php?q=" + queryPlus.replace('/t+', ''); + console.log(tpbSearch); + window.location.href = tpbSearch; + } + } else { + let braveSearch = "https://search.brave.com/search?q=%s".replace('%s', queryPlus); + console.log(braveSearch); + window.location.href = braveSearch; + } +}) \ No newline at end of file diff --git a/rosie/index.html b/rosie/index.html new file mode 100644 index 0000000..949e31f --- /dev/null +++ b/rosie/index.html @@ -0,0 +1,27 @@ + + + + + + Rosie + + +
+ + +
+
+ Info + +
+ + +