bookmarklets/GitLab/SwitchProfile.js
2022-11-24 15:36:33 +01:00

13 lines
390 B
JavaScript

// Switch GitLab Profile
(
function() {
user = prompt('Input Git User to switch to:');
link = window.location.href.split('/');
link[3] = user;
window.location.href = link.join('/');
}()
);
// Minified
(function(){user=prompt('Input Git User to switch to:');link=window.location.href.split('/');link[3]=user;window.location.href=link.join('/');}());