Skip to content

Instantly share code, notes, and snippets.

@theuves
Last active April 20, 2020 14:11
Show Gist options
  • Save theuves/a2df05879df1a473cba32194e4251480 to your computer and use it in GitHub Desktop.
Save theuves/a2df05879df1a473cba32194e4251480 to your computer and use it in GitHub Desktop.
Bookmarklet para facilitar as ações de "sudo" do GitHub.
// 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