Last active
August 14, 2019 16:15
-
-
Save spangenberg/a353d8bb9faffef348b4f94b548f2353 to your computer and use it in GitHub Desktop.
Remove vendor files from GitHub diff
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
(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); | |
})(); |
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
!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