Skip to content

Instantly share code, notes, and snippets.

@spangenberg
Last active August 14, 2019 16:15
Show Gist options
  • Save spangenberg/a353d8bb9faffef348b4f94b548f2353 to your computer and use it in GitHub Desktop.
Save spangenberg/a353d8bb9faffef348b4f94b548f2353 to your computer and use it in GitHub Desktop.
Remove vendor files from GitHub diff
(function() {
Array.prototype.slice.call(document.querySelectorAll('.file-info a'))
.filter(el => el.getAttribute('title')
.includes('vendor'))
.map(el => el.closest('.file')
.remove());
setTimeout(arguments.callee, 100);
})();
!function(){Array.prototype.slice.call(document.querySelectorAll(".file-info a")).filter(e=>e.getAttribute("title").includes("vendor")).map(e=>e.closest(".file").remove()),setTimeout(arguments.callee,100)}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment