Skip to content

Instantly share code, notes, and snippets.

@broofa
Created July 8, 2011 13:36
Show Gist options
  • Select an option

  • Save broofa/1071842 to your computer and use it in GitHub Desktop.

Select an option

Save broofa/1071842 to your computer and use it in GitHub Desktop.
Differential Scrollifier Bookmarklet
== THE BOOKMARKLET ==
javascript: (function(){var a=function(s){return document.querySelectorAll(s)[0].style;},b=JX.copy;b(a('.differential-add-comment-panel h1'),{display:'none'});b(a('.differential-add-comment-panel'),{position:'fixed',bottom:'0px',width:'100%',zIndex:'100',overflow:'auto',maxHeight:'400px'});b(a('.differential-primary-pane'),{paddingBottom:'445px'});})()
== FORMATTED SOURCE ==
(function() {
var a = function(s) {
return document.querySelectorAll(s)[0].style;
}, b = JX.copy;
b(a('.differential-add-comment-panel h1'), {
display: 'none'
});
b(a('.differential-add-comment-panel'), {
position: 'fixed',
bottom: '0px',
width: '100%',
zIndex: '100',
overflow: 'auto',
maxHeight: '400px'
});
b(a('.differential-primary-pane'), {
paddingBottom: '445px'
});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment