Last active
          June 29, 2018 01:30 
        
      - 
      
 - 
        
Save jasoncodes/54b8abf94d445baee16fde3928ffad1e to your computer and use it in GitHub Desktop.  
    Expand GitHub Pull Requests
  
        
  
    
      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
    
  
  
    
  | Show outdated comments and large diffs on GitHub Pull Requests. | |
| Minified using http://chriszarate.github.io/bookmarkleter/. | 
  
    
      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
    
  
  
    
  | javascript:!function(){var%20t=0,e=function(){for(var%20n=document.querySelectorAll(%22.outdated-comment:not(.open)%20button.show-outdated-button%22),d=0;d%3Cn.length;++d)n[d].click();if(document.querySelector(%22.diff-progressive-loader%22))return%20void%20setTimeout(e,100);var%20i=document.querySelector(%22button.ajax-pagination-btn,%20button.load-diff-button%22);if(i)return%20i.disabled||(t+=1,o.textContent=%22Loading…%20(%22+t+%22)%22,i.click()),void%20setTimeout(e,100);document.body.removeChild(o)},o=document.createElement(%22div%22);o.style.position=%22fixed%22,o.style.top=0,o.style.background=%22rgba(192,%20192,%20192,%200.5)%22,o.style.color=%22rgba(0,%200,%200,%200.8)%22,o.style.padding=%222px%204px%22,o.textContent=%22Loading…%22,document.body.appendChild(o),e()}(); | 
  
    
      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
    
  
  
    
  | var count = 0; | |
| var tick = function() { | |
| var elements = document.querySelectorAll(".outdated-comment:not(.open) button.show-outdated-button"); | |
| for (var i = 0; i < elements.length; ++i) { | |
| elements[i].click(); | |
| } | |
| if (document.querySelector('.diff-progressive-loader')) { | |
| setTimeout(tick, 100); | |
| return; | |
| } | |
| var element = document.querySelector('button.ajax-pagination-btn, button.load-diff-button'); | |
| if (element) { | |
| if (!element.disabled) { | |
| count += 1; | |
| loading.textContent = "Loading… (" + count + ")"; | |
| element.click(); | |
| } | |
| setTimeout(tick, 100); | |
| return; | |
| } | |
| document.body.removeChild(loading); | |
| }; | |
| var loading = document.createElement('div'); | |
| loading.style.position = 'fixed'; | |
| loading.style.top = 0; | |
| loading.style.background = 'rgba(192, 192, 192, 0.5)'; | |
| loading.style.color = 'rgba(0, 0, 0, 0.8)' | |
| loading.style.padding = '2px 4px'; | |
| loading.textContent = 'Loading…'; | |
| document.body.appendChild(loading); | |
| tick(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment