討論 » 建立請求

Open not in container from containered tab in Firefox.

§
發表於:2023-10-02

Hi everybody. I am new to Scripts and everything. Maybe someone can help.

I have the firefox multi-account container addon installed and google is opened in its own container. I would like to open all results on which I click to open in a new tab but not in the google container. Is this possible?

I am running this script to open links from google in a new tab. Maybe this can be enhanced?

// ==UserScript==
// @name Google Suchergebnisse im neuen Tab öffnen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You

// @match https://www.google.de/*
// @match https://www.google.com/*

// @grant none
// ==/UserScript==

(function() {
'use strict';

document.querySelectorAll( 'a' ).forEach(
function( element , i ) {
element.setAttribute( 'target' , '_blank' );
}
);
})();

發表回覆

登入以回復