Skip to content

Instantly share code, notes, and snippets.

@twolodzko
Last active September 9, 2020 19:20
Show Gist options
  • Save twolodzko/2e77eeab6f9c77f4bc0156101618883d to your computer and use it in GitHub Desktop.
Save twolodzko/2e77eeab6f9c77f4bc0156101618883d to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Redirect Jupyter notebooks from GitHub
// @namespace http://tampermonkey.net/
// @version 0.1
// @match github.com/*.ipynb
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.location.href = 'https://nbviewer.jupyter.org/github' + location.pathname;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment