Skip to content

Instantly share code, notes, and snippets.

@drhuffman12
Created April 16, 2018 03:11
Show Gist options
  • Save drhuffman12/3e624e712c3b9439672c5c6d5129b232 to your computer and use it in GitHub Desktop.
Save drhuffman12/3e624e712c3b9439672c5c6d5129b232 to your computer and use it in GitHub Desktop.
Modify Gist Edit Textbox Height
// xpath: '//*[@id="gists"]/div[2]/div[2]/div[2]/div'
// selector: '#gists > div.js-gist-file > div.file.js-code-editor.container-preview.show-code > div.commit-create > div'
// reset to orig:
$('#gists > div.js-gist-file > div.file.js-code-editor.container-preview.show-code > div.commit-create > div').style.height = '352px'
// expand to 600px high:
$('#gists > div.js-gist-file > div.file.js-code-editor.container-preview.show-code > div.commit-create > div').style.height = '600px'
// expand to 900px high:
$('#gists > div.js-gist-file > div.file.js-code-editor.container-preview.show-code > div.commit-create > div').style.height = '900px'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment