Skip to content

Instantly share code, notes, and snippets.

@maxwellb
Last active December 10, 2024 22:01
Show Gist options
  • Save maxwellb/9c65a36fb60c1a5d1c0eb6fd549dc03f to your computer and use it in GitHub Desktop.
Save maxwellb/9c65a36fb60c1a5d1c0eb6fd549dc03f to your computer and use it in GitHub Desktop.
Bits and pieces
javascript:;(function(){Array.from(document.querySelectorAll(".mr-1.js-reviewed-checkbox")).filter(_=>!_.hasAttribute("checked")).forEach(c => { c.scrollIntoViewIfNeeded(); c.click(); })})();
javascript:;(function(){ext='.min.js';Array.from(document.querySelectorAll(`.mr-1.js-reviewed-checkbox[id$="${ext}-viewed-file"]`)).filter(_=>!_.hasAttribute("checked")).forEach(c => { c.scrollIntoViewIfNeeded(); c.click(); })})();
javascript:;(function(){prefix='';Array.from(document.querySelectorAll(`.mr-1.js-reviewed-checkbox[id^="${prefix}"]`)).filter(_=>!_.hasAttribute("checked")).forEach(c => { c.scrollIntoViewIfNeeded(); c.click(); })})();
javascript:;(function(){document.body.scrollIntoView();Array.from(document.querySelectorAll(".mr-1.js-reviewed-checkbox")).filter(_=>!_.hasAttribute("checked")).filter((_,i)=>i==0).forEach(c => { c.scrollIntoView(); })})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment