Last active
September 8, 2021 07:33
-
-
Save iamandrewluca/4184e0700e7c50a81e9c15daa63684cf to your computer and use it in GitHub Desktop.
Extended njt.vercel.app but with GitHub as default, and TypeScript Search #bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: void ((function(query) { | |
/* More bookmarklets at https://gist.github.com/iamandrewluca/61feacf07bc4f2f50e70f986c2e9b2d2 */ | |
const [packageName, destination = 'g'] = decodeURIComponent(query).split('+').join(' ').split(' '); | |
if (destination === 'ts') { | |
window.location.href = `https://www.typescriptlang.org/dt/search?search=${packageName}`; | |
} else { | |
window.location.href = `https://njt.vercel.app/jump?to=${packageName} ${destination}`; | |
} | |
})('%s')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment