Rapid Web Navigation (NavGat) Script 04-01-2016, 03:31 PM
#1
Put the following code in your editor of choice (I use Atom/Sublime) and save as NavGat.html or whatever you want to name it, but make sure it ends in .html
Then open it in the web browser of your choosing and add it in your bookmarks bar.
I put 3 websites in already for reference and a blank case at the end. Change the first two #s to whatever you want to enter to redirect you to the site you want. Then change the last # to the URL. The purpose of this is so you don't have to continuously Ctrl+D every site and then browse through your hundreds of bookmarks to find the one you really want. You can just have a keyword and type it in to your NavGat prompt. Hope you find this helpful!
Then open it in the web browser of your choosing and add it in your bookmarks bar.
Code:
<script>
#Simple piece of code by SubZ3r0
var swtch = window.prompt("NavGat");
switch(swtch){
case "google":
case "Google":
case "g":
window.location.href = "https://www.google.com";
break;
case "gmail":
case "Gmail":
case "gm":
window.location.href = "https://mail.google.com/";
break;
case "yt":
case "YouTube":
case "youtube":
window.location.href = "https://youtube.com/";
break;
case "#":
case "#":
window.location.href = "#";
break;
}
</script>