Commit 4b0e4fad authored by Daniele Santoro's avatar Daniele Santoro
Browse files

Initial commit

parents
<html>
<head>
<title>gitLabUserAdd bookmarklet</title>
</head>
<body>
<h3>Bookmarklet install</h3>
To install the bookmarklet save the following link to your bookmarks (don't follow it):
<a href="javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement('script');c.type='text/javascript';c.src='https://ajax.googleapis.com/ajax/libs/jquery/'+g+'/jquery.min.js';c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=='loaded'||d=='complete')){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,'1.3.2',function($,L){javascript:document.body.appendChild(document.createElement('script')).src='URL';void(0)});">gitLabUserAdd</a>
<br>
<ul>
<li>You can drag&drop it to your bookmarks toolbar.</li>
<li>You can right click and choose "Save in bookmarks"</li>
</ul>
</body>
</html>
//$("#s2id_autogen1").val("myfilter");
//$("#s2id_autogen1").trigger("focus");
var members = $(".group_member .cgray").map(function() {
return $(this).text();
}).get();
var users = $('.select2-results .user-username');
$.each(users, function(index, user) {
if ( (jQuery.inArray(user.textContent,members) != -1) ) {
console.log(user.textContent + ": user in group, removing.");
$(user).parent().parent().css("display","none");
}
});
\ No newline at end of file
var members=$(".group_member .cgray").map(function(){return $(this).text()}).get();var users=$(".select2-results .user-username");$.each(users,function(b,a){if((jQuery.inArray(a.textContent,members)!=-1)){console.log(a.textContent+": user in group, removing.");$(a).parent().parent().css("display","none")}});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment