Last active
April 20, 2020 14:11
-
-
Save theuves/a2df05879df1a473cba32194e4251480 to your computer and use it in GitHub Desktop.
Bookmarklet para facilitar as ações de "sudo" do GitHub.
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
// Transfer | |
javascript:(function () { | |
const repo = window.location.pathname.replace('/settings', '').substr(1); | |
const user = 'theuves-lixo'; | |
document.querySelector('#confirm_repository_name').value = repo; | |
document.querySelector('#confirm_new_owner').value = user; | |
document.querySelectorAll('[type=submit].btn-danger')[1].disabled = false | |
})(); | |
// Private/Public | |
javascript:(function () { | |
const repo = window.location.pathname.replace('/settings', '').substr(1); | |
document.querySelector('[name=verify]').value = repo; | |
document.querySelectorAll('[type=submit].btn-danger')[0].disabled = false; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment