Skip to content

Instantly share code, notes, and snippets.

@harshithjvmi
Created October 17, 2012 06:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save harshithjvmi/3904099 to your computer and use it in GitHub Desktop.
Save harshithjvmi/3904099 to your computer and use it in GitHub Desktop.
Github code view expander
$("#js-repo-pjax-container, .frames > .frame-center").width($(document.body).width()-20);
@harshithjvmi
Copy link
Author

Use this code in your browser's JavaScript console prompt for the github repo pages while viewing the code. When you run this code the code-view expands to the current available width of the browser window. Will come in handy when looking into lengthy code. Will work until the html element's id or class names are intact (as mentioned in the above jquery function's css-selector string) on github.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment