Last active
August 9, 2021 12:44
-
-
Save aldenks/f0f0a5ea754bbe5feb2a to your computer and use it in GitHub Desktop.
Wide github diffs on demand
This file contains hidden or 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
/** | |
* Put this in a bookmark, click it when you want to make github pull request diffs extra wide! | |
* There's a million extensions that do this, but this is only on demand and small enough you | |
* you can understand it and trust it with access to your github. | |
*/ | |
javascript: document.body.classList.toggle('full-width'); |
Thanks for the tip @williamdenton. This also works well as a bookmarklet.
Content Security Policy (CSP) prevents using this as a Bookmarklet in Firefox (see this GitHub blog post), but it does function from the console.
@williamdenton niiiccceee! thx
Thanks @williamdenton and noted @kirenotneb. updated w/ the current code @williamdenton shared and renamed to widehub.js
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @williamdenton