Gitlab Batch Open Tabs

Batch Open Gitlab Search Results.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Gitlab Batch Open Tabs
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Batch Open Gitlab Search Results.
// @author       v4IIII
// @match        https://www.gitlab.com/
// @connect         www.gitlab.com
// @include         *://*gitlab.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
var c2=[];
var c0=document.getElementsByClassName('text-plain');
    console.log(c0);
for (var i=0;i<c0.length;i++){
    c2.push(c0[i].href);
    //var c1=c0[i].getAttribute('class');
    //if (c1==="v-align-middle"){c2.push(c0[i].href);};
/*  try{var c1=c0[i].firstChild.nextSibling.href;}catch(err){c1=null;}
  try{var c3=c0[i].firstChild.href;}catch(err){c3=null;}
      console.log(c1);
  console.log(c3);
  if(c1===undefined){}else{if(c1===null){}else{c2.push(c1);}}
  if(c3===undefined){}else{if(c3===null){}else{c2.push(c3);}}*/
};
console.log(c2);

function fm(a){
  let handle=window.open(a);
  handle.blur();
  window.focus();
};

for (i=0;i<c2.length;i++){
  fm(c2[i]);
}
    // Your code here...
})();