Affianca Due Tab

Affianca due tab nel browser

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Affianca Due Tab
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Affianca due tab nel browser
// @author       Magneto1
// @license      MIT
// @match        *://*/*
// @grant        GM_registerMenuCommand
// ==/UserScript==

(function() {
    'use strict';

    // Funzione per affiancare i tab
    function affiancaTab() {
        const urlToAffiancare = prompt('Inserisci l\'URL da affiancare:');
        if (urlToAffiancare) {
            window.open(urlToAffiancare, '_blank', 'width=800,height=600,left=0,top=0');
        } else {
            alert('Per favore, inserisci un URL valido.');
        }
    }

    // Aggiungi un comando al menu di Violentmonkey per affiancare i tab
    GM_registerMenuCommand("Affianca Tab", affiancaTab);
})();