Fixed it
This commit is contained in:
parent
13d1802054
commit
84b5305bac
|
@ -1,12 +1,12 @@
|
||||||
// Switch GitLab Profile
|
// Switch GitLab Profile
|
||||||
(
|
(
|
||||||
GitLabDomain = 'InputYourDomain';
|
function() {
|
||||||
function() {
|
GitLabDomain = 'InputYourDomain';
|
||||||
user = prompt('Input Git User to switch to:');
|
user = prompt('Input Git User to switch to:');
|
||||||
if (window.location.href.toLowerCase().includes(GitLabDomain) && user !== '') {
|
if (window.location.href.toLowerCase().includes(GitLabDomain) && user !== '') {
|
||||||
link = window.location.href.split('/');
|
link = window.location.href.split('/');
|
||||||
link[3] = user;
|
link[3] = user;
|
||||||
window.location.href = link.join('/');
|
window.location.href = link.join('/');
|
||||||
}else {
|
}else {
|
||||||
alert('Not on a GitLab-Site or no user given');
|
alert('Not on a GitLab-Site or no user given');
|
||||||
}
|
}
|
||||||
|
@ -14,4 +14,4 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
// Minified
|
// Minified
|
||||||
(GitLabDomain='InputYourDomain';function(){user = prompt('Input Git User to switch to:');if(window.location.href.toLowerCase().includes(GitLabDomain)&&user!==''){link=window.location.href.split('/');link[3]=user;window.location.href=link.join('/');}else{alert('Not on a GitLab-Site or no user given');}}());
|
(function(){GitLabDomain='InputYourDomain';user=prompt('Input Git User to switch to:');if(window.location.href.toLowerCase().includes(GitLabDomain)&&user!==''){link=window.location.href.split('/');link[3]=user;window.location.href=link.join('/');}else{alert('Not on a GitLab-Site or no user given');}}());
|
||||||
|
|
Loading…
Reference in a new issue