Giter Site home page Giter Site logo

Open link on a new tab about betterfox HOT 3 CLOSED

yokoffing avatar yokoffing commented on May 13, 2024
Open link on a new tab

from betterfox.

Comments (3)

yokoffing avatar yokoffing commented on May 13, 2024

Betterfox/Peskyfox.js

Lines 313 to 315 in 56fb226

/****************************************************************************
* SECTION: TAB BEHAVIOR *
****************************************************************************/

Betterfox/Peskyfox.js

Lines 328 to 361 in 6d07092

// PREF: control behavior of links that would normally open in a new window
// [NOTE] You can still right-click a link and open in a new window
// 3 (default) = in a new tab; pop-up windows are treated like regular tabs
// 2 = in a new window
// 1 = in the current tab
//user_pref("browser.link.open_newwindow", 3); // DEFAULT
// PREF: override <browser.link.open_newwindow> for external links
// Set if a different destination for external links is needed
// 3=Open in a new tab in the current window
// 2=Open in a new window
// 1=Open in the current tab/window
// -1=no overrides (default)
//user_pref("browser.link.open_newwindow.override.external", -1); // DEFAULT
// PREF: determine whether a link opens in the foreground or background on left-click
// [SETTINGS] Settings>General>Tabs>"When you open a link, image or media in a new tab, switch to it immediately"
// true(default) = opens new tabs by left-click in the background, leaving focus on the current tab;
// false = opens new tabs by left-click in the foreground, putting focus on the new tab;
// [NOTE] CTRL+SHIFT+CLICK will open new tabs in foreground (default); switching PREF to false will reverse this behavior
//user_pref("browser.tabs.loadInBackground", true); // DEFAULT
// [INACTIVE?] PREF: determines whether pages normally meant to open in a new window (such as
// target="_blank" or from an external program), but that have instead been loaded in a new tab
// true = Load the new tab in the background, leaving focus on the current tab
// false (default) = Load the new tab in the foreground, taking the focus from the current tab.
// [NOTE] Setting this preference to True will still bring the browser to the front when opening links from outside the browser.
//user_pref("browser.tabs.loadDivertedInBackground", false); // DEFAULT
// PREF: load bookmarks in the background when left-clicking in Bookmarks Menu
// user_pref("browser.tabs.loadBookmarksInBackground", true);
// PREF: load bookmarks in tabs, not separate windows
user_pref("browser.tabs.loadBookmarksInTabs", true);

Read above, then try the browser.tabs.loadInBackground pref. That should be sufficient, but you're welcome to tinker with prefs that are more restrictive like browser.link.open_newwindow.

from betterfox.

fabcard avatar fabcard commented on May 13, 2024

The command that worked was the browser.tabs.loadDivertedInBackground = true :)
Thank you.

from betterfox.

yokoffing avatar yokoffing commented on May 13, 2024

browser.tabs.loadDivertedInBackground

I don't think I've ever seen this used. Would you be able to share what website/programs showed a change in behavior for you?

Edit: "This pref takes effect when Firefox has diverted a new window to a new tab instead". Alright, makes more sense now.

from betterfox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.