Last active
March 9, 2021 09:30
-
-
Save banqhsia/b08098ee8d049764b47fa75d4d42fef8 to your computer and use it in GitHub Desktop.
Hide GitHub pull request bot dependencies
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()%7Bquery%20%3D%20document.querySelector(%22input.form-control%23js-issues-search%22)%3B%0A%0Aquery.value%20%2B%3D%20%22-label%3Abot%20%22%0A%0Alabels%20%3D%20%5B...new%20Set(query.value.split(%22%20%22))%5D%0A%20%20.filter((label)%20%3D%3E%20%7B%0A%20%20return%20label%20!%3D%3D%20%22%22%0A%7D)%0A%0Aquery.value%20%3D%20labels.join(%22%20%22)%0A%0Adocument.querySelector(%22form.subnav-search%22).submit()%7D)() |
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
query = document.querySelector("input.form-control#js-issues-search"); | |
query.value += "-label:bot " | |
labels = [...new Set(query.value.split(" "))].filter((label) => { | |
return label !== "" | |
}) | |
query.value = labels.join(" ") | |
document.querySelector("form.subnav-search").submit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment