Created
May 25, 2022 19:29
-
-
Save iowillhoit/543393eefe5932b0a84cba2b7a2272ca to your computer and use it in GitHub Desktop.
A bookmarklet to toggle the dependabot author on GitHub PR results
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: | |
var input = document.getElementById('js-issues-search'); | |
var search = input.value; | |
var bot = '-author:app/dependabot'; | |
var newSearch = search.includes(bot) ? search.replace(bot, '') : `${search} ${bot}`; | |
input.value = newSearch; | |
var form = input.parentElement; | |
form.submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment