Skip to content

Instantly share code, notes, and snippets.

View michaelhart's full-sized avatar

Michael Hart michaelhart

View GitHub Profile
@michaelhart
michaelhart / npmjs.com_to_repo_redirect.user.js
Last active June 17, 2022 03:12
Bye npmjs.com! Automatically redirects to the repository page after 3 seconds unless the cancel button is pressed in the toast. Click "Raw" to install in Tampermonkey.
// ==UserScript==
// @name Redirect from npmjs.com to repo
// @namespace https://gist.github.com/michaelhart/
// @version 0.3
// @description Bye npmjs.com! Automatically redirects to the repository page after 3 seconds unless the cancel button is pressed in the toast.
// @author Michael Hart
// @match https://www.npmjs.com/package/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @downloadURL https://gist.github.com/michaelhart/c04710899e6174ac4b1e262b8e019962/raw/npmjs.com_to_repo_redirect.user.js